• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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