Web Hosting Talk







View Full Version : update php - no result


sparkle
04-29-2002, 05:33 AM
Im trying to recompile php.

no matter what i try though it phpinfo still shows the previous install.

make clean
./configure
make
make install

no result. anyone had this problem before and how to solve it?

technoart
04-29-2002, 05:47 AM
What method are you using to "show" the version?

Create a file, with this in it:

<?
echo phpinfo()
?>

and called it something like, phpinfo.php, and then view it with your Web browser.

If you're typing "php -v" from a terminal window, your only going to get the version of the BINARY version of PHP that's installed on your box, and if you don't recompile PHP as a binary, yes -- you'll have the OLD (binary) version of PHP still living on your box, likely in /usr/bin or /usr/bin/local as a file "php".

sparkle
04-29-2002, 05:54 AM
using phpinfo.php to view through a web browser.

technoart
04-29-2002, 05:58 AM
Then likely your config or make, is dying before it completes...

You get any msgs of problems when you do config or make?


And, ... it's a good idea to do a "make clean" first... then config, make, make install...

sparkle
04-29-2002, 06:05 AM
no not getting any errors....

i do a make clean first and then the rest but no changes take place! got me stumped!

wondering if i should re do apache?

technoart
04-29-2002, 06:12 AM
you are stopping and restarting Apache, I take it... after you finish compiling PHP, and then checking the ver.?

sparkle
04-29-2002, 06:14 AM
yes :)

technoart
04-29-2002, 06:32 AM
You must be using a config option that's installing the new PHP dso modules in the wrong place then... check what's in your module dir from where you compiled PHP with the modules that Apache is loading (you can probably tell where Apache is looking for it's modules by looking at its httpd.conf file) and see if the dates/size match.

sparkle
04-29-2002, 07:25 AM
well there is a modules directory where i unpacked the tar.gz file but that is empty and there is not a modules directory where at /usr/local/lib/php where it is compiled to.

am i missing something here?

libexec has libphp4.so

freakysid
04-29-2002, 09:17 AM
Originally posted by sparkle
Im trying to recompile php.

no matter what i try though it phpinfo still shows the previous install.

make clean
./configure
make
make install

no result. anyone had this problem before and how to solve it?

Your configure command is looking a bit bare. As was mentioned, that isn't going to compile a DSO module pf php, but just the stand alone binary. Look at the output of phpinfo() to see the configure command that was used last time php was compiled as an apache DSO and use that. It should contain:

--with-apxs

or possibly:

--with-apxs=/path/to/apache/bin/apxs

Your configure command will no doubt want to have a few more options thrown in there as well such as --with-mysql for mysql support, and so on.

sparkle
04-29-2002, 02:12 PM
actually i used

./configure --with-mysql --with-apache=../apache_1.3.24

SI-Chris
04-29-2002, 08:15 PM
Originally posted by sparkle
libexec has libphp4.so
Is it the new version or old? Trying copying the new libphp4.so over by hand (it should be somewhere in the directory that the php source is in, I can't remember exactly where).

sparkle
04-30-2002, 06:51 AM
thanks for everyones help....i loaded apachetoolbox and recompiled apache and php....ended up with a new version of php!