Ugrade from PHP Version 5.3.10 to PHP Version 5.4 or higher

Posted August 20, 2013 12.9k views
Hello Just install LAMP 12.04 LTS and I would like to upgrade the PHP version of the LAMP droplet. Can someone help? I tried with this tutorial but not working at DigitalOcean Ubuntu srevers. Regards Jacques

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
6 answers
@Pablo: That is for CentOS.

You should use ondrej's repo:

What part isn't working?

Your link ( ) you are sharing is the exact same link I was trying as well.


Yes, I know. Have you tried it? It should work perfectly. Do you get any errors?
Hi. I upgraded from php 5.3 to 5.4 and 5.5 using the steps in the link (Ubuntu 12.04). The virtual hosts stop working, all the domains point back to /var/www instead of their corresponding location. So I had to restore my snapshot back to 5.3.
I think it happens because apache get updated to 2.4 when installing php 5.4+ there are some changes in the configuration between the apache2.2 and 2.4 :)