• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Question resolve the open_basedir restriction

Could you please be more specific? What exact problem do you have and how it can be reproduced? What sort of error messages do you have?
 
I have rename a subscription. But when i try ton connect to the website after the rename i have this...
Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/oldwebsitename/httpdocs/) is not within the allowed path(s): (/var/www/vhosts/newwebsitename/:/tmp/) in /var/www/vhosts/newwebsitenamem/httpdocs/
 
Did you wait until the Apache restart interval has expired and Apache was restarted?

If the error still exists after the Apache restart, execute this command on your console:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain DOMAIN.TLD
(replace DOMAIN.TLD with your new website name). This will re-create the virtual host configuration files and restart the webserver for the new settings to take effect.
 
If the previous suggestion does not work, check your software whether the old domain name is hardcoded in a configuration file. It is not necessarily a wrong Plesk configuration, it can also be that a file_exist() function is pointing to the old website name, because in your script the old website name has not been updated to the new website name.
 
Back
Top