Disable Open_basedir in Plesk

This page explain the disabling of Open_basedir (disable open_basedir) for any domain. Sometime we need to run our test site before go live through symlinks by server ip address like http://server-ip-address/test-site.com.

When open_basedir enabled for the domain then the above steps will show an 500 error so either there is a need to add one more location in open_basedir or disable completely for that domain.

Disable open_basedir using command line

Plesk panel customize their apache/nginx configuration files so we cannot change configuration files directly as they will overwrite when reconfigure apache or restart it will automatically delete that configuration.When you open http configuration for any domain you will see commented lines at the top.

#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/linuxtweaks.in/conf/vhost.conf

Ablout LinuxTweaks

Welcome to Linuxtweaks – the blog contains a lot of useful information for Linux System administrator ,newbies who are going to start there career as Linux System admin and also for linux desktop users. We basically share what we are getting issue on daily bases.We started this blog on November 2014 because we wanted to keep our knowledge on one place for future uses and also for sharing our knowledge with others on the basic of Linux technologies.