Solved

Where can I find the PHP5 RPM for RHEL 5?

Posted on 2008-10-21
13
5,744 Views
Last Modified: 2013-12-16
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.
0
Comment
Question by:stavrama
13 Comments
 
LVL 17

Assisted Solution

by:owensleftfoot
owensleftfoot earned 100 total points
ID: 22765057
0
 
LVL 3

Assisted Solution

by:ricardoelena
ricardoelena earned 100 total points
ID: 22768415
You can download PHP 5 SRPM from official redhat site or centos site
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/
rpm --rebuild filename.src.rpm
cd /usr/src/redhat/RPM/

rpm -iv filename.rpm
0
 
LVL 2

Author Comment

by:stavrama
ID: 22810725
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.
0
 
LVL 2

Author Comment

by:stavrama
ID: 22848617
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
0
 
LVL 2

Author Comment

by:stavrama
ID: 22919638
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?
0
 
LVL 16

Expert Comment

by:GUEEN
ID: 22923511
What about just using yum to install it via console?

yum install php
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 2

Author Comment

by:stavrama
ID: 22929589
I have done this already but i get the same error:

"Error: Missing Dependency: httpd-mmn = 20051115 is needed by package php"
0
 
LVL 16

Expert Comment

by:GUEEN
ID: 22930122
How about

yum update

yum install httpd


0
 
LVL 16

Expert Comment

by:GUEEN
ID: 22930131
Hold on - first find out if it is installed

 yum list installed httpd
0
 
LVL 2

Author Comment

by:stavrama
ID: 22938408
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]#
.
0
 
LVL 16

Accepted Solution

by:
GUEEN earned 300 total points
ID: 22938924
Perhaps you need this update?
http://rhn.redhat.com/errata/RHBA-2008-0360.html
0
 
LVL 2

Author Closing Comment

by:stavrama
ID: 31508171
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 :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now