Re: upgrading php from 4.1.2 to 4.3.4
Joe Orton <[email protected]> Tue, 10 Feb 2004 15:46:23 +0000
| Newsgroups | gmane.linux.redhat.stronghold |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 10, 2004 at 01:18:47PM -0000, Maclure, Scott wrote: > Hi Joe, > > Thanks for the response! I forgot to mention that I'm running stronghold on > a solaris box, not a redhat dist :) (not my choice). > > Normally you can upgrade php without recompiling apache by just using the: > > --with-apxs=/path-to-apache/bin/apxs > > flag when building php, assuming apache has been built with the > "--enable-module=so" flag (which I believe stronghold 4 does) then modifying > httpd.conf to have : > > LoadModule php4_module libexec/libphp4.so > and AddType etc etc to get php running. > > Now the last 2 issues for me is: > 1) The fact that the libphp4.so module is currently in > "..stronghold/lib/modules/1.3" rather than "stronghold/libexec", and > 2) That stronghold doesn't use a php.ini file, rather another file > "/conf/php4.conf" which I'm worried about. The PHP "make install" should set everything up correctly if you point it at the Stronghold bin/apxs script, since apxs knows the correct place to copy the module, and the correct LoadModule line to use. The php4.conf supplied with Stronghold just has some default PHP configuration settings like php.ini, you don't have to use these with a custom-compiled PHP. Just make sure you have a LoadModule line for libphp4.so and a: AddType application/x-httpd-php .php in httpd.conf somewhere after installing PHP. Regards, joe