switch off open_basedir across all domains in a plesk server

I have a client who wants to turn off open_basedir as he using cross domain includes.  I have recommend against doing this for security reason but he has insisted.

I was initially looking at modifying the ./conf/vhost.conf file for each domain and adding the open_basedir config but found a quicker way.

add a file called. /etc/httpd/conf.d/zzz_turn_off_open_basedir.conf

and add these lines to it.

[sourcecode]<DirectoryMatch /var/www/vhosts/(.*)/httpdocs/>
php_admin_value open_basedir none
</DirectoryMatch>[/sourcecode]

Save it and restart apache.

 

Thanks to

http://rackerhacker.com/2007/06/30/remove-all-open_basedir-restrictions-in-plesk/

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.