Upgrading PHP without disrupting stable Apache 2.0 install
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Upgrading PHP without disrupting stable Apache 2.0 install
I’m looking for a tutorial on UPGRADING from PHP 4.2.2 to the latest stable version, on a RH9 system running Apache 2.0.
The guide for installing at PHP.net is pretty clear, but it’s not an upgrade guide, it describes a fresh install. I don’t want to disrupt my current Apache config which is working just fine. Don’t want to blow things up and have lots of down time and so on…
you shouldn't even have to recompile apache, just possibly change a shared module path in httpd.conf, but I would make a copy of httpd.conf just in case you do end up having to reinstall apache. do a graceful restart and you should be good to go.
Originally posted by ID10T_error you shouldn't even have to recompile apache, just possibly change a shared module path in httpd.conf, but I would make a copy of httpd.conf just in case you do end up having to reinstall apache. do a graceful restart and you should be good to go.
Another possible path:
RedHat has a habbit of putting things in non-standard places, and I hear that going from an RPM install to a source install is problematic.
I can get ahold of the RPM for php 4.3.7. Would this be a better way?
If you are already using RH's builds then probably, personally, I like to compile everything myself. If I was you, I would scrap it all and build it myself, and then transfer the existing httpd.conf. Wouldn't have too much down time, but then again, I tend to be anal about compiling myself.
Originally posted by ID10T_error If you are already using RH's builds then probably, personally, I like to compile everything myself. If I was you, I would scrap it all and build it myself, and then transfer the existing httpd.conf. Wouldn't have too much down time, but then again, I tend to be anal about compiling myself.
Hmmm. Yes. Actually, thinking about it if I can bring up a test box to test it out on before I toast my live box. But, take a look at this and tell me what you think:
Quote:
[root@localhost php]# rpm -U --test php-4.3.7-4.i386.rpm
error: Failed dependencies:
httpd-mmn = 20020903 is needed by php-4.3.7-4
libaspell.so.15 is needed by php-4.3.7-4
libc.so.6(GLIBC_2.3.4) is needed by php-4.3.7-4
libdb-4.2.so is needed by php-4.3.7-4
libpspell.so.15 is needed by php-4.3.7-4
php-pear is needed by php-4.3.7-4
php = 4.2.2-17 is needed by (installed) php-imap-4.2.2-17
php = 4.2.2-17 is needed by (installed) php-ldap-4.2.2-17
php = 4.2.2-17 is needed by (installed) php-mysql-4.2.2-17
Other than the php-imap / ldap / mysql, do I need to upgrade these other things to make php 4.3.7 work? I could go with an earlyer version,
Quote:
[root@localhost php]# rpm -U --test php-4.3.4-1.1.i386.rpm
error: Failed dependencies:
httpd-mmn = 20020903 is needed by php-4.3.4-1.1
php = 4.2.2-17 is needed by (installed) php-imap-4.2.2-17
php = 4.2.2-17 is needed by (installed) php-ldap-4.2.2-17
php = 4.2.2-17 is needed by (installed) php-mysql-4.2.2-17
But what is
Quote:
httpd-mmn = 20020903 is needed by php-4.3.4-1.1
I assume it's Apache, but how do I know what version it's looking for?
Those are all the upgrades you will need to make. Download each one and install before you can install php. httpd-mmn is apache. I believe the number after is the CVE (common vulnerabilities and exposures) number 2003-0903 and any version after that update is fine, I could be wrong though. Either way just download an up to date apache rpm and you should be good to go. I suggest you look into getting apt-get and letting it do the dependendies work for you. Might make your life a little easier. Beware, as you install newer rpms on an older distro, you can sometimes get caught up in a dependency struggle.
By no means am I saying reinstall the latest distro, just take note that the older the distro, the more dependencies will be found and I know I have ended up chasing my tail a few times trying to get all of the dependencies resolved, but that is a small price to pay for compatibility and security.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.