PDA

View Full Version : Suggest : php4cgi + php5cgi both with each php.ini



Avenueduweb
08-09-2007, 03:57 PM
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 :


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

By :


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 :


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

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


register_globals=on

And it's run.

Bye.

smtalk
11-04-2007, 04:21 AM
I still have no opinion on it.

P.S.


suPHP_ConfigPath /usr/local/suphp/etc/


Is the same as no suPHP_ConfigPath at all :)