• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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