We help IT Professionals succeed at work.

PHP Installation on RH 6.2

kaku75
kaku75 asked
on
Medium Priority
212 Views
Last Modified: 2010-04-21
I am now trying to install php 4.04 on redhat linux server. for this I have downloaded the required rpm that is php-4.0.4pl1-9.rpm from redhat.com

During the installation it gives me error:

error: failed dependencies:
        libdb-3.1.so   is needed by php-4.0.4pl1-9
        libgd.so.1.8   is needed by php-4.0.4pl1-9
        libc.so.6(GLIBC_2.2)   is needed by php-4.0.4pl1-9
        libresolv.so.2(GLIBC_2.2)   is needed by php-4.0.4pl1-9

for this I have downloaded the required rpms that is db3-3.1.17-7.i386.html, gd-1.8.3-7.i386.html and glibc-2.2.2-10.i386.html.

Now on trying the installation of glibc-2.2.2-10.i386.html, I am again getting dependencies problem.

So pls guide me if it is possible to install php4 on rh6.2 or not?

If yes, whats the easiest and quickest way to do so?

regards,
kaka

Comment
Watch Question

Commented:
For sure, you can install PHP4 on Redhat 6.2.

The better solution : don't use RPM, it's more convenient.

Download the lastest source code from http://www.php.net

And follow the installation guide

Commented:
Yes, I agree that the source code method is best, when it comes to PHP, especially when you are trying to re-configure an older system. There are plenty of configuration choices that allow you to specify the locations of libraries, etc...

Are you at all familiar with compiling Unix software from source? I have to ask this question before I start giving advice, so I understand at what level to start providing details. (IOW -- can we cut to the chase?)

Also, one thing to remember: you may have installed these libraries, rather than *upgrading* the existing libraries (what you really want). Did you do the rpm -i or the rpm -U command when you installed them? For example, the new GLIBC library may be sitting there on your system, but the kernel is still using the old one, since you did an install, not an upgrade. See http://kb.redhat.com/view.php?eid=143 for an explanation of RPM.

Author

Commented:
thanks alot :-)

Explore More ContentExplore courses, solutions, and other research materials related to this topic.