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 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

2 Answers 2

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 http://www.dotdeb.org/ repository by doing this: sudo echo "deb http://php53.dotdeb.org 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

 
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.