HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   howto safemode off + basedir on ? (http://www.howtoforge.com/forums/showthread.php?t=49879)

radim_h 6th November 2010 12:35

howto safemode off + basedir on ?
 
When i uncheck safemode for site , which means safemode = off
then also basedir directives as
php_admin_value open_basedir /var/www/webXXX/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/webXXX/phptmp/
php_admin_value session.save_path /var/www/webXXX/phptmp/
are gone from apache config file...
.
What should i change to have basedir directives in Vhosts_ispconfig.conf when safemode is Off as default

Eg
php_admin_flag safe_mode Off
php_admin_value open_basedir /var/www/webXXX/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/webXXX/phptmp/
php_admin_value session.save_path /var/www/webXXX/phptmp/

I tried to find it somewhere in templates in /root/ispconfig/isp/conf but haven't find

Now i'm solving situatuon by adding basedir directive in Apache config field in ISPC, but i'd like to turn safemode off for all sites (about 250), so this is bad solution

Any hint please ??

necromncr 7th November 2010 11:21

What you're looking for is file vhost.conf.master in /root/ispconfig/isp/conf directory.

Note however, basedir is not the silver bullet, it can cause quite some nasty issues with /tmp dir (which I hope you have noexec mounted).

I myself went on into setfacl-ing all directories and files to include www-data user (for debian).

radim_h 7th November 2010 11:31

Yes, but what to modify in
In root/ispconfig/isp/conf/vhost.conf.master ?
there is just {PHP}
so where is the conf file for {PHP} ?


can you write more about noexec mounting of /tmp please ?
i'm using debian also

falko 7th November 2010 20:54

It's in the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.


All times are GMT +2. The time now is 04:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.