Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP 4 - Linux Red Hat Enterprise 5

Posted on 2009-05-10
4
Medium Priority
?
958 Views
Last Modified: 2013-12-13
Hi All,
I installed Red Hat Enterprise 5 for our webserver.
I need to install PHP version 4 for our web server as it does not support version 5.
Where do i get PHP 4 supported by Red Hat Enterprise 5?

Thank you
0
Comment
Question by:c00kie88
[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
  • 2
4 Comments
 
LVL 2

Expert Comment

by:lavinpj1
ID: 24352214
PHP4 is EOL and should not be used. Why does the server not support PHP5, surely it can be compiled from source?

Phil
0
 
LVL 2

Accepted Solution

by:
jccs0519 earned 750 total points
ID: 24358811
Yea, you should be able to recompile from sources.

http://www.php.net/manual/en/install.unix.apache2.php

I'm running RedHat 8, RedHat Enterprise Linux 3 and I have both php4 and php5 version running before.
0
 

Author Comment

by:c00kie88
ID: 24360787
Hi all,

Just spoken to the web developer, apparently it's not possible to convert our coding to be compatible to PHP 5 as a lot of work will be required.
Is there any PHP 4 rpm that i can find that compatible with Red Hat Enterprise 5?
0
 
LVL 2

Expert Comment

by:jccs0519
ID: 24553770
You probably won't find any php4 rpm for RHEL5, but if you have support contract w/ Redhat you might ask them to see if they have it.  If not, then just get the php4 sources from php.net and follow this link http://www.php.net/manual/en/install.unix.apache2.php

to compile from sources.  The instruction is for php5, but php4 is pretty similar as I remember.

Depending on the how the RHEL5 pre-installed apache2 is configured, you may need to install a new version of apache in /usr/local/apache2.  May seems hard, but if you follow the instruction, it's not bad.   Here is very simplified instruction but should give you a guideline.

1. Download Apache2 (may need Apache 1, depending on the php4 requirement)
2. Unpack and configue, make, install
3. Download php4 (http://us3.php.net/get/php-4.4.9.tar.gz/from/a/mirror)
4. Unpack and configure,make, install based on the apache installation you just compiled
5. Disable stocked apache server on RHEL5
6. Start apache in /usr/local/apache2 then move your site to the new apache location, then you're done.

Another wild idea is run whatever server version you have on top of RHEL5 inside a virtualization.  If your server is powerful enough, you probably won't suffer much in performance, even if you suffer a little performance hit, but you gain in compatibility of your php codes.  You can use VirtualBox, it's free.

That being said, I'm pretty sure you can compile php4 on RHEL5.  Google and found this: http://blog.stuartherbert.com/php/2007/04/04/getting-php-4-running-on-redhat-enterprise-linux-5/
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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 a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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