Disabling open_basedir in plesk

Plesk handle things differently then Cpanel. If you will make any custom change in plesk configuration files then they will revert to original after some specific period of time.

To disable open_basedir in plesk for some specific domain, it requires to make a vhost.conf file.

  1. Go to /var/www/vhosts/your_domain.com/conf
  2. Make a file name vhost.conf
  3. Paste the following code in it
  4.  

    <Directory /var/www/vhosts/your_domain/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>

     

  5. Save file
  6. Reset configuration for domain
  7. In the end, restart apache
Please follow and like us:
About shk

shk is a DevOps engineer with more than 12 years of experience in different organizations. He enthusiastic about learning new technologies and shares his knowledge through his blogs.

Comments

  1. I found this as a setting directly in the admin side logged in as the global admin.

    Search for “open_basedir” and you should see an option to tweak each domain.

Comment Policy:

Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.

*

*

Previous Post:
Next Post: