#1  
Old 22nd September 2007, 14:49
Cirox Cirox is offline
Member
 
Join Date: Mar 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default custom php.ini via suphp

I installed ispconfig with suphp support like described in howto. I need a special php.ini file for every vhost. So i had to set:

suPHP_ConfigPath /var/www/webX/etc

in the vhost.

Now the question is, how to setup automaticly this directive to every apache config vhost file when a web is created? I know ispconfig had to copy the php.ini file and change some values für every web, like open_basedir for example?

How can i prevent ispconfig from overwriting my directive when put "suPHP_ConfigPath /var/www/webX/etc" in apache directives field of the website? I think the path is: "/etc/apache2/vhosts/Vhosts_ispconfig.conf"
Reply With Quote
Sponsored Links
  #2  
Old 22nd September 2007, 16:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,597 Times in 4,407 Posts
Default

ISPConfig did not overwrite values that you added in the apache directives field. It is the purpose of this field to insert values into the vhost that does not get overwritten.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd September 2007, 18:51
Cirox Cirox is offline
Member
 
Join Date: Mar 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok, my misunderstanding. So i look for a way to fill the master php.ini with variables und to copy a custom php.ini to each dir when a new web is created. Is this possible? Perhaps some feature for future relases?
Reply With Quote
  #4  
Old 23rd September 2007, 13:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,597 Times in 4,407 Posts
 
Default

Quote:
Is this possible?
You can add your code to copy the php.ini file and replace the variables in the function make_vhost in the file /root/ispconfig/scripts/lib/config.lib.php

Quote:
Perhaps some feature for future relases?
Yes. I planned to add such a function in a future release.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
suPHP file permission catalyst General 14 7th March 2010 02:16
suPHP -couldn't create child process error tipsy HOWTO-Related Questions 10 26th November 2007 01:56
suPHP and suPHP_ConfigPath Physio Installation/Configuration 1 29th July 2007 20:42
suPHP in custom Debian package pjdevries Tips/Tricks/Mods 21 19th July 2007 12:45
Big issue with suPHP ddelbia General 13 23rd June 2006 13:44


All times are GMT +2. The time now is 20:17.


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