Martyn Drake wrote:
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.
I think it was originally not installed in the default directory and still isn't. I created a directory for them. under /. Perhaps why it all went wrong?
OK - I found the new php4 directory, and also put the absolute paths for the psql.so etc libs into php.ini, and now I get the correct version and postgres support with the <?phpinfo> command. Excellent! Many thanks! Just one thing - php -v is still showing 4.0.6, even though I changed the php4lib.so module line in httpd.conf.
The latest version is now 4.2.2 .........
Thanks, grabbed that one now.
This leads me to a further question for the debianites: - if I had used apt-get install php4 instead of compiling it myself, how would I have passed the configure-with options to php?
Thanks Martyn, that has been driving me mad for days. Jenny.