Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th November 2010, 12:35
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 404
Thanks: 33
Thanked 23 Times in 18 Posts
Send a message via ICQ to radim_h
Default 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 ??

Last edited by radim_h; 6th November 2010 at 18:18.
Reply With Quote
Sponsored Links
  #2  
Old 7th November 2010, 11:21
necromncr necromncr is offline
Junior Member
 
Join Date: Jul 2008
Posts: 9
Thanks: 1
Thanked 6 Times in 3 Posts
Default

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).
Reply With Quote
  #3  
Old 7th November 2010, 11:31
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 404
Thanks: 33
Thanked 23 Times in 18 Posts
Send a message via ICQ to radim_h
Default

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

Last edited by radim_h; 7th November 2010 at 11:34.
Reply With Quote
  #4  
Old 7th November 2010, 20:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

It's in the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos Postfix/MySQL/Courier HowTo issues... sfunk1x HOWTO-Related Questions 1 24th September 2009 07:46
Which XEN howto is recommended for webhosting? Hans HOWTO-Related Questions 2 29th June 2009 18:23
Group-office howto, problems with remote smtp-auth CyD HOWTO-Related Questions 1 1st April 2009 20:44
Howto: Set Up A Loadbalanced High-Availability Apache Cluster PeterBiggerstaff HOWTO-Related Questions 7 13th April 2007 16:13
HowTo Add Mailfiltering to the Falko howto Postfix Guide rockwilda HOWTO-Related Questions 15 20th October 2006 15:40


All times are GMT +2. The time now is 06:50.


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