• 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.

Vhost.conf not working as intended

G

GSteer

Guest
Hi,

I have a modified vhost.conf file to try and allow php to access the /private folder for running scripts.

<Directory /var/www/vhosts/*domain*/httpdocs>
php_admin_value open_basedir none
</Directory>

<Directory /var/www/vhosts/*domain*/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/*domin*/httpdocs:/var/www/vhosts/*domain*/private"
</Directory>

But I still get the following error:

Warning: main(): open_basedir restriction in effect. File(../private/test.php) is not within the allowed path(s): (/var/www/vhosts/*domain*/httpdocs:/var/www/vhosts/*domain*/private) in /var/www/vhosts/*domain*/httpdocs/index.php on line 3
 
Sorry if you've already done so, but did you run /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<domain_name>

Also did you then restart apache? (e.g. service httpd restart in a redhat-type linux flavour)
 
Back
Top