Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have been trying to downgrade the php version from php 5.4 to php 5.3. I tried removing php5, purging php5 and then reinstalling using "apt-get install php5=5.3.6-13ubuntu3.6", but it did not help, I get a message saying "E: Version '5.3.10-1ubuntu3.3' for 'php5' was not found". Is there a way I can install php 5.3.10 in ubuntu 12.04?

I am using amazon ec2 instances,

share|improve this question

if you get the reply that some version was not found, it probably wasn't in the repository.

try doing apt-cache search php5 to see what versions are available.

Otherwise, if there is no package available, you could add the repository by doing this: sudo echo "deb stable all" >> /etc/apt/sources.list. Then another apt-get update and then you should have a php5.3 package available.

share|improve this answer

For instance, apt-cache policy displays the priorities of package sources as well as those of individual packages. Another example is apt-cache dumpavail which displays the headers of all available versions of all packages. apt-cache pkgnames displays the list of all the packages which appear at least once in the cache.

if you need 5.3.10 you also can compile it as cgi from sources or find deb package using google then you need download it and install using dpkg -i $PACKAGENAME

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.