LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-06-2004, 10:06 AM   #1
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Rep: Reputation: 15
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…

Suggestions?
 
Old 07-06-2004, 03:44 PM   #2
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-06-2004, 06:55 PM   #3
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
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?
 
Old 07-06-2004, 08:23 PM   #4
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-06-2004, 09:54 PM   #5
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
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?
 
Old 07-06-2004, 11:36 PM   #6
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-07-2004, 08:51 AM   #7
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ID10T_error Beware, as you install newer rpms on an older distro, you can sometimes get caught up in a dependency struggle. [/B]
I'd like to upgrade the OS, but that will mean a move away from RH because I can't afford RH Enterprise, and Fedora is not stable for production...
 
Old 07-07-2004, 09:39 AM   #8
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems after upgrading php and apache :( sys7em Slackware 3 09-08-2005 12:46 AM
Upgrading php in deb stable..., Is this gonna mess everything up? heelNtoin Debian 3 08-02-2004 09:19 PM
Upgrading Apache/PHP on Redhat 9 Djelibeybi Linux - Software 3 07-06-2004 01:09 PM
apache install disrupting secure website access? edsmithers Linux - Networking 3 04-23-2004 05:43 PM
upgrading apache & php on RH9 FunkFlex Linux - Software 0 04-28-2003 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration