• 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

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