Suggest : php4cgi + php5cgi both with each php.ini

Avenueduweb

Verified User
Joined
Jun 8, 2004
Messages
122
Hello everybody,

I've changed my config today and I've installed succesfully custombuild with php4cgi and php5cgi, but when i've installed them, they are the same php.ini. So I've changed that in /etc/httpd/conf/extra/httpd-suphp.conf :

Code:
suPHP_ConfigPath /usr/local/etc/php5/cgi/

By :

Code:
suPHP_ConfigPath /usr/local/suphp/etc/

The real path of suphp.conf.

Now, php4cgi use /usr/local/etc/php4/cgi/php.ini and php5cgi use /usr/local/etc/php5/cgi/php.ini.

And with that, the php.ini configured by the users run.

Example :

One user want to register global at on.

In .htaccess, he write :

Code:
suPHP_ConfigPath /home/user/domains/domain.com/public_html

And he create a file php.ini in public_html with that inside :

Code:
register_globals=on

And it's run.

Bye.
 
I still have no opinion on it.

P.S.
Code:
[FONT=monospace]
[/FONT]suPHP_ConfigPath /usr/local/suphp/etc/

Is the same as no suPHP_ConfigPath at all :)
 
Back
Top