Article ID: 115838, created on Mar 27, 2013, last review on May 10, 2014

  • Applies to:
  • Plesk 10.x for Linux


After subscription has been renamed, PHP applications stop working properly. Errors with following text are reported into domain's error log (/var/www/vhosts/domain/statistics/logs/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.


  1. Download archive, attached to this article, to the server, unzip it and move extracted script to /usr/local/psa/bin. Make it executable.

  2. 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/ into Command field.


dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838

Email subscription for changes to this article
Save as PDF