PDA

View Full Version : when php4 and php5 both built as cgi, they use the same php.ini



jackc
08-30-2007, 10:06 PM
in httpd-suphp.conf



<IfModule mod_suphp.c>
AddHandler x-httpd-php4 .php4
AddHandler x-httpd-php5 .inc .php .php3 .php5 .phtml
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php4
suPHP_AddHandler x-httpd-php5
</Location>
</IfModule>


php4 and php5 are both use php.ini in /usr/local/etc/php5/cgi/, how do I make them use their own php.ini?

thx

jackc
08-30-2007, 10:11 PM
seems comment out


suPHP_ConfigPath /usr/local/etc/php5/cgi/


will make it work, but not sure...

Avenueduweb
09-04-2007, 05:07 PM
php4 and php5 are both use php.ini in /usr/local/etc/php5/cgi/, how do I make them use their own php.ini?

thx

Hello,

Read that, i had got the same problem and I found a solution :

http://www.directadmin.com/forum/showthread.php?t=20508

Bye.

jackc
09-05-2007, 04:10 AM
Thanks, i think it's the same as comment out suPHP_ConfigPath.

zEitEr
07-30-2008, 03:55 AM
If commented out, user can redefine suPHP_ConfigPath in his .htaccess file and use suPHP without any limits. So it's not the best way to solve the problem.