Where can I find the PHP5 RPM for RHEL 5?

Hello experts,

Can anyone plz tell me from where i can download php5 for rhel 5? I went to http://www.php.net/downloads.php and download the source code from there but i couldnt unzip it. I searched then the red hat site for a php download and couldnt find anything either. Can anyone be kind enough to give me a link to download it and instructions if necessary?

Thanx in advance.
Who is Participating?
GUEENConnect With a Mentor Commented:
Perhaps you need this update?
Ricardo ElenaConnect With a Mentor Manager, US OperationsCommented:
You can download PHP 5 SRPM from official redhat site or centos site
rpm --rebuild filename.src.rpm
cd /usr/src/redhat/RPM/

rpm -iv filename.rpm
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

stavramaAuthor Commented:
I downloaded the rpm for php but when i try to install it, it says  that i miss specific packages. Those are:

1) httpd
2) httpd-mmn
3) libgmp.so.3
4) php-cli
5) php-common

I havent managed to find httpd-mmn and libgmp. However whenever i try to install the other 3 packages then it says that some other packages are missing. For example when i try to install httpd then i get this error message:

warning: httpd-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        libapr-1.so.0 is needed by httpd-2.2.3-6.el5.i386
        libaprutil-1.so.0 is needed by httpd-2.2.3-6.el5.i386

Can anyone help and tell me what i need to do in order to solve this and install php? Do i need to go and download one by one every package that ask me to do? I have seen this happening one more time when i tried to install oracle but i found a solution there when i installed 1 single package and all the dependencies were gone.
stavramaAuthor Commented:
I still fail to find libgmp and httpd-mmn packages. Can anyone  send me a link with those 2 plz. I remind that i need it for rhel 5
stavramaAuthor Commented:
So far i have installed httpd,  libgmp, php common and php cli. I only miss httpd-mmn in order to install the php package. However i can run now a php script. How is this possible since i haven't installed yet the php rpm? And what is happening with httpd-mmn? I thought that after the installation of httpd, that dependency would have been sorted out.
If i install now the php rpm with --nodeps will it be ok?
What about just using yum to install it via console?

yum install php
stavramaAuthor Commented:
I have done this already but i get the same error:

"Error: Missing Dependency: httpd-mmn = 20051115 is needed by package php"
How about

yum update

yum install httpd

Hold on - first find out if it is installed

 yum list installed httpd
stavramaAuthor Commented:
For the last command you posted i get the following results:

[root@localhost tmp]# yum list installed httpd
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
[root@localhost tmp]#
stavramaAuthor Commented:
It appears that i can do my job with the packages php-common and php-cli since i dont need the html version of php. Thanx a lot for your help :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.