• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

open_basedir | vhost.conf ignored

E

erikober

Guest
Hello.
Excuse my newbiness, but having open_basedir struggles with a script.

Created vhost.conf inside var/www/vhosts/mydomain.com/conf directory which holds this:

php_admin_value open_basedir none

saved.

reconfigured webserver:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mydomain.com

rebooted server.

checking phpinfo on domain still seeing:

/var/www/vhosts/mydomain.com/httpdocs:/tmp

which is what is stated in the include file.

I went back and double checked include file and this line does exist at bottom:

Include /var/www/vhosts/mydomain.com/conf/vhost.conf

The vhost.conf file seems as though it's getting ignored setting the new value. Am I missing a step somewhere?

Thanks very much for your time.
 
For anyone else, just needed to add the additional format to the conf file:

<Directory /var/www/vhosts/mydomain.com/httpdocs>
php_admin_value open_basedir none
</Directory>
 
Back
Top