Page 1 of 1

How can i disable open_basedir settings.

Posted: Thu Oct 26, 2017 4:45 am
by Akalanka
How can i disable open_basedir settings to install my php script.

i tried to disable open_basedir with php.ini .but it didn't changed .

My current vestacp information :
PHP 7
Centos 7.3

This has been discussed many a times if you cared to search
https://www.google.com/search?q=vestacp+open_basedir

TIP**
in your /home/vestauser/conf/web/apache2.conf file you need to comment this line or adjust access to directories as needed.

Code: Select all

php_admin_value open_basedir ...

Re: How can i disable open_basedir settings.

Posted: Fri Oct 27, 2017 8:21 pm
by beef
you can edit the template files that are used to create apache2.conf and sapache2.conf here

Code: Select all

/usr/local/vesta/data/templates/web/apache2/default.tpl
/usr/local/vesta/data/templates/web/apache2/default.stpl
rebuild the user profile afterwards via the dashboard to automatically update already created config files

Re: How can i disable open_basedir settings.

Posted: Fri Nov 03, 2017 8:42 am
by Akalanka
So the issue was fixed:

The file to edit was:
/home/admin/conf/web/httpd.conf
And I had to comment php_admin_value open_basedir “none” to
php_admin_value open_basedir /home/admin/web/xxx.com/public_html:/home/admin/tmp

Save and restart your apache web server using
service httpd restart

Re: How can i disable open_basedir settings.

Posted: Mon Nov 06, 2017 4:15 am
by plutocrat
Note that your changes will disappear if you ever rebuild the web config. To make the changes permanent you need to also edit the template files that are used to rebuild the config as suggested above.

Even better, copy the templates to new files, edit those, and then select the template from the control panel.