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

jackc

Verified User
Joined
Jan 19, 2007
Messages
346
in httpd-suphp.conf

Code:
<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
 
seems comment out
Code:
suPHP_ConfigPath /usr/local/etc/php5/cgi/

will make it work, but not sure...
 
Thanks, i think it's the same as comment out suPHP_ConfigPath.
 
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.
 
Back
Top