Version specific suPHP_ConfigPath

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,143
Location
GMT +7.00
Hello,

Currently when using suPHP and 2 versions of PHP (both as suPHP), we have globally specified php.ini:

e.g.

Code:
suPHP_ConfigPath /usr/local/php53/lib/

in /etc/httpd/conf/extra/httpd-suphp.conf

I'd suggest that you remove the line from the file and move it into:

virtual_host2.conf
virtual_host2_secure.conf
virtual_host2_secure_sub.conf
virtual_host2_sub.conf


the following way:

Code:
|*if SUPHP="1"|
                suPHP_Engine |PHP|
                suPHP_ConfigPath /usr/local/php|PHP1_RELEASE|/lib/
                suPHP_UserGroup |USER| |GROUP|
|*endif|

this way we will have a corresponding to a PHP version php.ini with its build extensions. And suphp won't try to load extensions for PHP 5.3 if we switch to use 5.4, 5.5 or other.
 
Hello,

Currently when using suPHP and 2 versions of PHP (both as suPHP), we have globally specified php.ini:

e.g.

Code:
suPHP_ConfigPath /usr/local/php53/lib/

in /etc/httpd/conf/extra/httpd-suphp.conf

I'd suggest that you remove the line from the file and move it into:

virtual_host2.conf
virtual_host2_secure.conf
virtual_host2_secure_sub.conf
virtual_host2_sub.conf


the following way:

Code:
|*if SUPHP="1"|
                suPHP_Engine |PHP|
                suPHP_ConfigPath /usr/local/php|PHP1_RELEASE|/lib/
                suPHP_UserGroup |USER| |GROUP|
|*endif|

this way we will have a corresponding to a PHP version php.ini with its build extensions. And suphp won't try to load extensions for PHP 5.3 if we switch to use 5.4, 5.5 or other.

Do we need to do it for every account one by one? or it will apply changes on all accounts?
Where is the path for that 4 config files?
 
Back
Top