Report this

What is the reason for this report?

How to upgrade PHP to v5.5 in Ubuntu 12.04

Posted on September 22, 2013

I saw that Zend Opcode is now baked into PHP 5.5 so am keen to apgrade my Virtualmin / LAMP install.

Is this relatively easy and how do I go about it (remembering I’m a greenhorn to command line Linux / VPS)

Thanks for helping.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

I followed the instructions at http://askubuntu.com/a/109544 and the only hiccup I found was that by default PHP was disabled in user home directories, where my document root happened to be. Commenting out that block in /etc/apache2/mods-available/php5.conf fixed it for me.

I was able to update to PHP 5.5 following the instructions on http://askubuntu.com/a/109544. But by upgrading to Apache 2.4, the config file got overwritten. And I didn’t know what to change to keep it working.

Luckily, I took a Snapshot before upgrading and then I restored from Snapshot. So everything’s back to normal now.

Take a look at this post: <a href=“http://askubuntu.com/a/109544”>http://askubuntu.com/a/109544</a> <br> <br>Give it a shot and let me know how it goes.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.