I just installed Ubuntu server 14.04, I need to migrate my site from old server Ubuntu 10.04 (which has php 5.3) to the new server,

but currently when i install php using

`apt-get install php` 

i found the installed version is "PHP 5.5", how can i install 5.3?

If it is n't possible, what is the previous possible version of Ubuntu i should downgrade to be compatible with "PHP 5.3"?


I can think of 2 different options:

  1. try the solutions posted in this topic

  2. compile from source, although I wouldn't recommend this because you'll have to recompile after every security update

Btw, have you tried the site under PHP 5.5? Because if everything works well I can't think of any logical reason to downgrade.


you can use this repository:

sudo add-apt-repository ppa:eugenesan/ppa

sudo apt-get update

sudo apt-get install php5

  • 3
    This won't work - it's overridden by the software version in Ubuntu. – Thomas Ward Feb 29 '16 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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