I thought I upgraded to PHP 5.3.8 but...
I'm running Debian (Lenny) with PHP 5.3.3-0 which was installed via apt. I wanted to upgrade to 5.3.8 for security so I downloaded the latest version and manually ran the usual:
configure make make test make install After doing that, my info.php* script still says that I'm running 5.3.3-0. Anybody know what I'm missing here? |
Hi,
Since you used a plain ./configure (without a --prefix option), php is installed under the default /usr/local. So if you want to run the new binary you should use: Code:
/usr/local/bin/php Regards |
You probably want to run PHP as an apache module? So you need a share object file libphp5.so that is ready to go with your apache.
1. install apxs2 (apache extension management) sudo apt-get install apache2-prefork-dev 2. reconfigure your php ./configure --with-apxs2=/usr/bin/apxs2 then make + install + restart the server. |
Quote:
|
Thanks guys. The apache2 mods available folder has php5.load which already contains:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so I guess I will have to follow j-ray's instructions. However, I'm surprised that the current installation works as a module since apxs2 is apparently not installed yet. I don't see any reference in my apache configuration files to a php binary, only the socket. EDIT In any case, I did as j-ray suggested. The only hiccup was a debian and ubuntu specific problem with apxs2 where it insists that there be existing LoadModule statements in httpd.conf . I was able to work around it by forcing make to ignore the error. Thanks again! |
Quote:
Humans, me included, have often problems not seeing the woods for the trees ;-) |
All times are GMT -5. The time now is 01:39 AM. |