Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a LAMP server with Ubuntu 9.10, Apache 2, Mysql 5 and PHP5. I want to disable PHP5 and use only PHP4. Can anyone explain how to do this?

I'm doing this because I need to simulate an environment similar to a legacy lamp server.

thanks

share|improve this question

2 Answers 2

up vote 3 down vote accepted

There are no PHP4 package in Ubuntu 9.10.

I guess you could download the PHP4 source from http://www.php.net/releases/ and compile it yourself.

Myself I would download the still supported Ubuntu 6.06, which does have PHP4 packages, and install it in a virtual machine. That way I could play around with old stuff without causing conflicts with my current system. You can find Ubuntu 6.06 iso files at http://releases.ubuntu.com/6.06/

share|improve this answer

You could add the repos for an older version and install the PHP4 package, similar to what andol says.

share|improve this answer
    
How sure are you about that working in this case? (Myself I'm somewhat sceptic, considering the packages involved, the age of them, etc.) –  andol Mar 7 '10 at 1:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.