• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Vhost.conf not working as intended

G

GSteer

Guest
Hi,

I have a modified vhost.conf file to try and allow php to access the /private folder for running scripts.

<Directory /var/www/vhosts/*domain*/httpdocs>
php_admin_value open_basedir none
</Directory>

<Directory /var/www/vhosts/*domain*/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/*domin*/httpdocs:/var/www/vhosts/*domain*/private"
</Directory>

But I still get the following error:

Warning: main(): open_basedir restriction in effect. File(../private/test.php) is not within the allowed path(s): (/var/www/vhosts/*domain*/httpdocs:/var/www/vhosts/*domain*/private) in /var/www/vhosts/*domain*/httpdocs/index.php on line 3
 
Sorry if you've already done so, but did you run /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<domain_name>

Also did you then restart apache? (e.g. service httpd restart in a redhat-type linux flavour)
 
Back
Top