After subscription has been renamed, PHP applications stop working properly. Errors with following text are reported into domain's error log (
PHP Warning: fopen(): open_basedir restriction in effect. File(/var/www/vhosts/newname.test/httpdocs/lib/config.php) is not within the allowed path(s): (/var/www/vhosts/oldname.test/httpdocs/:/tmp/) in /var/www/vhosts/newname.test/httpdocs/index.php on line 2
The problem affects only subscriptions which have PHP running as CGI or FastCGI application and is caused by error in the product.
The problem has been fixed in Parallels Plesk Panel 11.0.9.
Download archive, attached to this article, to the server, unzip it and move extracted script
/usr/local/psa/bin. Make it executable.
In Parallels Plesk Panel, on Tools & Settings > Event Manager create event handler for event "Default domain (the first domain added to a subscription/webspace) updated" and put
/usr/local/psa/bin/update_php_settings.shinto Command field.