Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

updating php to 5.2 on redhat 5.3

Posted on 2009-05-07
20
Medium Priority
?
1,016 Views
Last Modified: 2013-12-06
I have redhat 5.3 enterprise installed. I need to update PHP to 5.2.0.

Can someone walk me through this? I am very new so step by step would be nice :)

Thanks!
0
Comment
Question by:nrizk07
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 8
  • 3
20 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24326970
Hi,

Currently RHEL / Centos 5 suppports 5.1.x. But Remi release have 5.2 functionality. Here's a link that explains. It is simple.

http://bluhaloit.wordpress.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/

But my own experience tells me after finishing the installation it is is always a good idea to get rid of the old relase files. Use a command like that:

rpm -qa | grep php | grep "5.1.6"

Once you make sure only the necessary filaes are displayed execute this:

rpm -qa | grep php | grep "5.1.6"  | xargs rpm -ev

This will prevent further repo conflicts.

Cheers,
K.
0
 

Author Comment

by:nrizk07
ID: 24327020
I tried that site but when trying to get the "remi" second rpm i get 404 "not found"
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 2000 total points
ID: 24327539
Hi,

The file has been obsoletd the new version is here:

http://rpms.famillecollet.com/el5.i386/remi-release-5-7.el5.remi.noarch.rpm

If you had point your browser to :
http://rpms.famillecollet.com/el5.i386

This would give you a list. When ou locaret the remi you'd get the latest version :)

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:nrizk07
ID: 24327926
Getting a strange error now when I do the rpm -Uvh command..

says:
package epel-release-5-3.noarch (which is newer than epel-release-5-2.noarch) is already installed...

??
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24329690
It means that a newer version of epel is already installed. So you won't need to downgrade it.
Go ahead to continue the installation where you were left off. These instructions I've posted earlier are simply guidelines for the steps to follow. They just won't need to give you exact same results. Bewcause it is not very easy to keep them updated all the time where any component could be updated by authors at any time. For now as you've seen remi is newer and apparently epel too. These rpms simply install repo files in to your repository list  (i.e., under /etc/yum.repos.d and necessary modifications to your /etc/yumconf). Note the noarch prefix. It means that the contents is simply config files or other non-binary stuff.
0
 

Author Comment

by:nrizk07
ID: 24329866
Quick question how do i know this didn't messup my current repository (updates through RHN redhat network)??

0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24329985
Ok they just modify so that PHP is brought from remi repo not the updates repo of RHN. This is how repos are currently running. If you want to check just do a yum update :)
also you can check the contents of the files located in /etc/yum.repos.d/
0
 

Expert Comment

by:wownetwork
ID: 24396597
I am gettting an error:

warning
[root@****** ~]# rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
warning: remi-release-5-7.el5.remi.noarch.rpm: Header V4 DSA signature: NOKEY, key ID 00f97f56
warning: epel-release-5-2.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
error: Failed dependencies:
        yum is needed by remi-release-5-7.el5.remi.noarch

What I did was this:

Step 1: #wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm

Step 2: #wget http://rpms.famillecollet.com/el5.i386/remi-release-5-7.el5.remi.noarch.rpm

I have:
Linux
PHP Version:  5.1.6
Web Server:  Apache/2.2.6 (Fedora)
Database Version:  5.0.22

Thanks.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24396659
It says you need the yum package first. Please  install yum first.
0
 

Expert Comment

by:wownetwork
ID: 24396672
Oops. Forgot to mention.

How do you install yum.  My bad.  I am no expert, but I follow steps very good.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24396686
0
 

Expert Comment

by:wownetwork
ID: 24396736
In the first line it says:
If you are using fedora you don't have to install it, it is part of fedora itself.

Web Server:  Apache/2.2.6 (Fedora)

I read on, is YUM something I turn on?
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24397338
Yeah but for some reason it seems that you're system is missing yum. In fact yum is the default installation package for RedHAT EL 5 and Fedora. I was very surprised to see that your system is missing it.

will you do:

rpm -qa | grep yum

0
 

Expert Comment

by:wownetwork
ID: 24397480
returns nothing...
0
 

Expert Comment

by:wownetwork
ID: 24397488
Maybe b/c this is a VPS and I am using a company to HOST my domain.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24397669
You can istall it easily using the link I provided.

0
 

Expert Comment

by:wownetwork
ID: 24398181
I followed it and I get this:

[root@****** ~]# wget http://yum.baseurl.org/download/3.2/yum-3.2.0-1.src.rpm
--12:37:56--  http://yum.baseurl.org/download/3.2/yum-3.2.0-1.src.rpm
Resolving yum.baseurl.org... 140.211.167.207
Connecting to yum.baseurl.org|140.211.167.207|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 296761 (290K) [application/x-rpm]
Saving to: `yum-3.2.0-1.src.rpm'

100%[=============================================================>] 296,761      489K/s   in 0.6s

12:37:57 (489 KB/s) - `yum-3.2.0-1.src.rpm' saved [296761/296761]

[root@****** ~]# rpm -ivh yup*
error: File not found by glob: yup*
[root@****** ~]# rpm -ivh yum*
warning: yum-3.2.0-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 69886cc7
error: cannot create %sourcedir /usr/src/redhat/SOURCES

Also the website says rpm -ivh yup* >> should this be yum?  I tried both anyways still got the above problem....
0
 

Expert Comment

by:wownetwork
ID: 24425024
Hi the problem is I don't have YUM installed on my VPS.
I use Network Solutions >> They gave me a little help today:

Install Yum dependencies:
"      http://download.fedoraproject.org/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/python-elementtree-1.2.6-5.x86_64.rpm 
"      http://download.fedoraproject.org/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/python-sqlite-1.1.7-1.2.1.x86_64.rpm 
"      http://download.fedoraproject.org/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/rpm-python-4.4.2-32.x86_64.rpm 
"      http://download.fedoraproject.org/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/python-urlgrabber-2.9.9-2.noarch.rpm 
"      http://download.fedoraproject.org/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/yum-metadata-parser-1.0-8.fc6.x86_64.rpm 

then install yum:
"      http://download.fedoraproject.org/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/yum-3.0-6.noarch.rpm 

Yet each one of these links are BROKEN?  Secondly they take 48 hours to get back to me.
Does anyone have any advice?  Yum Dependencies????

Again, here is my VPS info:
Linux
PHP Version:  5.1.6
Web Server:  Apache/2.2.6 (Fedora)
Database Version:  5.0.22
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24425219
Hi,

The problem here is you're trying to install yum sources. This will require all the source stanza to be present. If I were you I'd change my VPS provider for starters. It is meaningless to give a bare system without yum..  After I've learnt that you're using a VPS service I've procured a VPS service. It is very cheap and the Provide CentOS it is all for 19.95/month. It is here:
http://www.ultrahosting.com/

If you still want to stay with them here's my requests from you:

Will you please post here the contents of your /etc/redhat-relase

I want to make sure if yr really using RHEL 5.3 or CentOS (free community supported version of RHEL)

0
 

Expert Comment

by:wownetwork
ID: 24425274
Great! I will pass it on to Network Solutions and vent my frustration on your behalf as well :)

/etc/redhat-relase:
Fedora Core release 6 (Zod)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question