Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install php4 to run a specific module that is no longer compatible with php5. I'm running ubuntu server 11.04 64bit. And as I expected the php4 packages are no longer available. Does anyone have a source for installing php4?

PS. Before anyone posts saying php5 is better "BLAH BLAH BLAH" I need php4 for a very specific reason and comments explaining the reasons why I should be using php5 over php4 are not helpful.

share|improve this question
up vote 5 down vote accepted

Just compile the source from the php site, you don need special ubuntu source code. I have literally just done it on a Ubuntu 11.04 VPS to check it was that easy. I had to install one extr package "flex"

tar zxf php-4.4.9.tar.gz
cd php-4.4.9/
sudo make install

I didnt make the apache module, I haven't looked into that. It was a 32bit VPS I cant imagine it would not be as easy on 64bit.

share|improve this answer
and what about the libapache-mod-php4 ? – linuxatico Apr 28 at 9:42

You can get older releases from

share|improve this answer
Im looking for a ubuntu source I would like to avoid manually compiling it if possible – Zen_silence May 15 '11 at 19:13

I'd figure you're going to find it difficult to get hold of a prepackaged php4 release for Ubuntu 11.04 (Natty) and may have to consider manual compiling.

However... I am not sure how successful this may be but you could try the package which was released for Ubuntu 6.06 (Dapper).


If there is any possibility to get updated version of the module you're trying to run for php5 then go with that. Although it does sound as though you've already looked.

share|improve this answer

Your Answer


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.