Turn off open_basedir on Plesk site.

Here’s a quick bit of apache config that can be placed in the conf/vhost.conf file of a Plesk site to turn off the open_basedir restrictions:

<Directory  /var/www/vhosts/somedomain.com/httpdocs>
        php_admin_flag engine on
        php_admin_value open_basedir none
</Directory>
  • Mike

    For server wide changes you can edit this file:

    /usr/local/psa/admin/conf/templates/default/service/php.php

    Then reload all.

    This is plesks template file so when it rebuilds the config files, it uses this.

  • http://reliablepenguin.com Lee Blakely

    Mike … great alternative for making the same change server wide.

blog comments powered by Disqus