focuz
Verified User
Today i did a da installation like i always do. But i noticed some changes where made to the default apache config. You how have suphp support statements in there.
Which is a good thing ofcourse.
But there is one problem with it.
I use both php4 & php5 at the same time using suphp.
the config for php4 is located in /etc/php4/cgi/php.ini and for php5 it's /etc/php5/cgi/php.ini.
In your default /etc/httpd/conf/httpd.conf you have a line "suPHP_ConfigPath /usr/local/etc/php5/cgi".
This line will direct both php4 & php5 to one the same php.ini file. There are statement in php.ini (like the ionCube loader) that differ per php version.
The solution to this problem is simpel: leave this line out of the httpd.conf.
when you compile php ./configure it with --with-config-file-path=/etc/php5/cgi, which ofcourse will differ per php version.
My 2 cents
Thanks,
Sam Terburg
REDUNIX - Internet Diensten
Which is a good thing ofcourse.
But there is one problem with it.
I use both php4 & php5 at the same time using suphp.
the config for php4 is located in /etc/php4/cgi/php.ini and for php5 it's /etc/php5/cgi/php.ini.
In your default /etc/httpd/conf/httpd.conf you have a line "suPHP_ConfigPath /usr/local/etc/php5/cgi".
This line will direct both php4 & php5 to one the same php.ini file. There are statement in php.ini (like the ionCube loader) that differ per php version.
The solution to this problem is simpel: leave this line out of the httpd.conf.
when you compile php ./configure it with --with-config-file-path=/etc/php5/cgi, which ofcourse will differ per php version.
My 2 cents
Thanks,
Sam Terburg
REDUNIX - Internet Diensten