LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2004, 06:41 AM   #1
CrazyMAzeY
LQ Newbie
 
Registered: Jun 2004
Location: UK
Posts: 16

Rep: Reputation: 0
Question HOW TO UPGRADE PHP to PHP 4.3




i'm running Apache version 2.0.40
Mysql 4.0.20
Php 4.2.2
on REDHAT 9 Shrike

I need Php 4.3 installed

I have searched and tried everything.

Please Could Someone Help me with a guide on how to upgrade php

as its driving me mad.

 
Old 07-05-2004, 07:39 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: HOW TO UPGRADE PHP to PHP 4.3

Quote:
Originally posted by CrazyMAzeY


i'm running Apache version 2.0.40
Mysql 4.0.20
Php 4.2.2
on REDHAT 9 Shrike

I need Php 4.3 installed

I have searched and tried everything.

Please Could Someone Help me with a guide on how to upgrade php

as its driving me mad.

Since you're on RH, I take it you have PHP 4.2.2 rpm installed. Simply download the latest rpm from PHP site and

rpm -Uvh [ PACKAGE ]


If for some reason you can't obtain PHP 4.3 rpm then uninstall 4.2.2 (rpm -e [PACKAGE]. Download source for 4.3, configure, make, build and install.
 
Old 07-05-2004, 08:51 AM   #3
CrazyMAzeY
LQ Newbie
 
Registered: Jun 2004
Location: UK
Posts: 16

Original Poster
Rep: Reputation: 0
i dowloaded all the rpms i thought i might need.
1st - Are they the right rpms



[root@crazymazeysvip phprpms]# ls
php-4.3.2-7.ent.i386.rpm
php-mysql-4.3.2-7.ent.i386.rpm
php-imap-4.3.2-7.ent.i386.rpm
php-odbc-4.3.2-7.ent.i386.rpm
php-ldap-4.3.2-7.ent.i386.rpm

tried to install php-4.3.2-7.ent.i386.rpm got this

[root@crazymazeysvip phprpms]# rpm -Uvh php-4.3.2-7.ent.i386.rpm

warning: php-4.3.2-7.ent.i386.rpm: V3 DSA signature: NOKEY, key ID 897da07a
error: Failed dependencies:
httpd-mmn = 20020903 is needed by php-4.3.2-7.ent
libdb-4.1.so is needed by php-4.3.2-7.ent
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-mysql-4.2.2-17
[root@crazymazeysvip phprpms]#


hope ya dont mind but i'm very new to this and hope i'm not asking to much
step by step.



Last edited by CrazyMAzeY; 07-05-2004 at 08:56 AM.
 
Old 07-05-2004, 02:07 PM   #4
CrazyMAzeY
LQ Newbie
 
Registered: Jun 2004
Location: UK
Posts: 16

Original Poster
Rep: Reputation: 0
anyone got any ideas what i need to do ?
 
Old 07-05-2004, 02:31 PM   #5
boreo
Member
 
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
You need to install all of the packages that is asking you for, go to www.rpmfind.net and look for all of them
httpd-mmn
libdb-4.1.so
php = 4.2.2-17
php = 4.2.2-17

Download them, install them and try to install php again.. When I used to use RH I used to use apt-get to install my rpms, is pretty easy and you don't have to worry about dependency problems because it will install everything you need.
 
Old 07-06-2004, 03:56 AM   #6
CrazyMAzeY
LQ Newbie
 
Registered: Jun 2004
Location: UK
Posts: 16

Original Poster
Rep: Reputation: 0
php 4.2.2 is already installed and

i tried apt-get

[root@crazymazeysvip root]# apt-get install libdb-4.1.so
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package libdb-4.1.so
[root@crazymazeysvip root]# apt-get install httpd-mmm
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package httpd-mmm
[root@crazymazeysvip root]#

what do i do now ?


 
Old 07-06-2004, 02:58 PM   #7
boreo
Member
 
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
Did you try to get the rpms from www.rpmfind.net?
Try that, apt-get do not have all the rpms around just the one on the database you are using.
 
Old 07-18-2004, 11:28 PM   #8
netboy_541
Member
 
Registered: Jul 2003
Location: Hamilton, OH
Distribution: Redhat 9, SuSE 10.1 & 10.2, Kubuntu
Posts: 173

Rep: Reputation: 30
apt-get is completely worthless if you already have php 4.22 installed, because it says you don't need anything newer.

I know, i need 4.3.8 and the damn thing won't get me out of dependency hell.


if anyone has any ideas other than recompiling from source, let me know!

Thanks
 
Old 08-30-2004, 07:05 PM   #9
Blisk
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Rep: Reputation: 0
I did the same thing.
Have installed redhat 9
php 4.2.2
httpd 2.0.40

And get in to hell of independices.

There is no rpms with php 4.3.8 for redhat 9.
because it is impossible to find
this two libraries

httpd-mmn
libdb-4.1.so

Is there someone already finded a solution how to upgrade PHP?
 
Old 09-10-2004, 09:20 PM   #10
netboy_541
Member
 
Registered: Jul 2003
Location: Hamilton, OH
Distribution: Redhat 9, SuSE 10.1 & 10.2, Kubuntu
Posts: 173

Rep: Reputation: 30
I finally said to hell with it and upgraded to fedora core 2.

I took the cowards way out... LOL
 
Old 09-11-2004, 04:45 AM   #11
Blisk
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Rep: Reputation: 0
Yep I decide to do it right now.
I have too many problems with upgrading redhat 9
So in fev minutes I am going to install a fedora core 2.
It works great.
 
Old 09-11-2004, 07:29 AM   #12
netboy_541
Member
 
Registered: Jul 2003
Location: Hamilton, OH
Distribution: Redhat 9, SuSE 10.1 & 10.2, Kubuntu
Posts: 173

Rep: Reputation: 30
yup -- then install apt-get, set up a cron job to update the machine automagically, and forget about it.

LONG LIVE LINUX! =)


Visit one of my linux boxes -- http://grover.interactnetworks.net
 
Old 09-12-2004, 03:19 PM   #13
Blisk
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Rep: Reputation: 0
Yep that's what i like.

But anybody knows a quick tutorial for fedora, to make sednmail to relay, I mean enable pop3 with requiring autentication??
 
Old 10-09-2004, 12:21 PM   #14
ajbird
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
i dont get this at all - its nuts!

so you need to install a so you try but you require b

so get you get b but it needs a to install - this is madness

and this is meant to be a viable opperating system for the masses one day?

hmmm

has anyone out there managed to upgrade from php4.2.2 to 4.3.x????

i would love to know if it pos

thanks

andy
 
Old 10-09-2004, 03:04 PM   #15
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Yeah -- welcome to RPM hell, I've been there myself, and usually I just wind up compiling from source. Compiling PHP from source is really not very hard -- I've done it several times and never had any problems. There's a nice walk through of how to do it on the PHP Web site if you run into difficulty. You might also want to look at checkinstall so you can build yourself an RPM. Another idea is to directly try the source RPM for PHP 4.3 and try using rpmbuild, so it will build against the library versions you have installed -- it may work for you, it may not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Upgrade z_darius Mandriva 3 03-29-2005 08:10 AM
Upgrade PHP objorkum Slackware 5 03-25-2005 02:14 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-18-2004 12:10 AM
upgrade php from 4.3.2 to 5 pelegk2 Linux - Software 1 10-10-2004 10:37 AM
PHP upgrade Damiand Linux - Newbie 0 06-07-2004 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration