• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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