• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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