Hullo List, I installed php-4.2.1 last week by downloading and configuring the tarball, using the - - with - options. The system is still using the old version, however: php-4.0.6. Because I've upgraded postgresql using apt-get to v7.2.1 I needed to recompile php, you see, and so thought I may as well grab the latest version whilst I was at it. How does the system know which of the php's to use? If I brutally remove the v4.0.6 directory I assume php won't work at all. I feel like I've gone back a year in time, all this newbie fumbling about. Does my question make any sense at all? Thanks, Jenny.
On Tue, 23 Jul 2002 09:20:21 +0100 Jenny_Hopkins@toby-churchill.com wrote:
I installed php-4.2.1 last week by downloading and configuring the tarball, using the - - with - options. The system is still using the old version, however: php-4.0.6.
PHP should install and overwrite whatever previous version is installed, assuming that version 4.0.6 is installed in it's default directory and that you've ensured that the right module is loaded within httpd.conf. Look for the relavent LoadModule php4_module to find out where PHP has been installed and compare that with what you've just compiled.
Because I've upgraded postgresql using apt-get to v7.2.1 I needed to recompile php, you see, and so thought I may as well grab the latest version whilst I was at it.
The latest version is now 4.2.2 thanks to a security hole discovered within versions 4.2.0 and 4.2.1, so you'd better go and grab that version and install that instead :)
How does the system know which of the php's to use?
Via httpd.conf and the LoadModule php4_module line.
If I brutally remove the v4.0.6 directory I assume php won't work at > all.
Probably because httpd.conf has been told explicity to load the PHP module from that directory. The PHP 4 make script should update the httpd.conf file for you if it can get access to it. Ensure that you've built PHP with the --with-apxs option and explicity declare where your apxs binary is and you shouldn't have any problems.
I feel like I've gone back a year in time, all this newbie fumbling about. Does my question make any sense at all?
Absolutely it does - and it's quite a common problem.
Regards,
Martyn