Quote:
Originally Posted by kaplan71
Hi there --
I am running an OpenSuSE 10.2 server with Apache 2.2.3 and PHP 5.2.0. The latter two are from the bundled packages that came with the operating system. I need to upgrade PHP to version 5.2.6 due to a vulnerability in the aforementioned build.
I have downloaded the source code for version 5.2.6 from the PHP website. When doing the upgrade, can I simply go through the compile and make process with the code, or should I remove the bundled package first, and then install from source? Also, when doing the upgrade either way, is it better to stop the Apache server or is that not necessary? Thanks.
|
First thing I'd try to do is to see if I could find the updated packages in a repository, and upgrade through YAST. If not, I'd most certainly remove (uninstall), the existing packages, and do a 'clean' install from source. Afterwards, you'll have to bounce your apache service, to get it to pick up the new version.
Be warned though...this can be tricky, as some things can depend on PHP, and if the location of the executable/libraries changes any, things will break. If this is a production server, I'd consider building a brand new box with the latest 11.x build, and run them parallel, to make sure your stuff works. Do the cutover later, when you can plan an outage. If your company can't do a whole new server, get them to spring for some new hard drives at least. Take out the old one(s), set them aside, and do a clean install there, when you can schedule an outage. Keep a safety net.