• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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