Remove PHP's open_basedir restriction in Plesk

If you have an open_basedir restriction that is causing issues with a domain, you can remove the restriction easily. First, put the following text in /home/httpd/vhosts/[domain]/conf/vhost.conf:

<Directory /home/httpd/vhosts/[domain]/httpdocs>
php_admin_value open_basedir none
</Directory>

If there was already a vhost.conf in the directory, then just reload Apache. Otherwise, run the magic wand:

/usr/local/psa/admin/bin/websrvmng -av

Then reload Apache:

/etc/init.d/httpd reload

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2007/05/23/remove-php-open_basedir-restriction-in-plesk/ .
© Major Hayden 2010.

3 Comments   »

  • AprilFloyd says:

    I have tried this but the restriction has not removed. any ideas

  • aarts says:

    What if it is a shared server? The hosting company will not allow you to change this value, you can not even access de conf directory for your domain.

    Is there any way around?

    Thanks.

  • Thank you very much. This worked for me – which cannot be said about the original How-To of Parallels:

    http://kb.parallels.com/article_41_432_en.html

    The only thing I had to replace is the last line of code, since my apache was located differently:

    /etc/init.d/apache2 reload

RSS feed for comments on this post , TrackBack URI

Leave a Reply