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

How do i change open_basedir?

clinton4

Regular Pleskian
Hi,

I'am running Plesk 9.5.4 on a CentOS 5 (final) box.

Now, how can i change (set to none) the open_basedir ?

I have tried to create a vhost.conf file in the conf folder and restarted httpd.

This is what i have tried in the vhost.conf file:

<Directory /srv/www/vhosts/domain.com/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</IfModule>
</Directory>

and:

<Directory /var/www/vhosts/domain.com/httpdocs>
php_admin_flag engine on
php_admin_value open_basedir none
</Directory>

but when i echo out phpinfo i get this in open_basedir:
Local Value: /var/www/vhosts/domain.com/httpdocs:/tmp
Master value: no value
 
Argh! Is it not possible to contact Parallels with a question like this without having to pay $75 USD ?
 
Working Config in Plesk 9.x

This config worked for me in Plesk 9.x. You may need to create a vhost.conf if doesn't exist. Hope this helps.

/srv/www/vhosts/domain.com/conf # cat vhost.conf
<Directory /srv/www/vhosts/domain.com/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</IfModule>
Options +Includes -ExecCGI
</Directory>

cd /usr/local/psa/admin/sbin
# ./websrvmng --reconfigure-vhost --vhost-name=domain.com
 
Back
Top