• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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