Upgrade to PHP 5.4

Hi all!

What is the correct way to upgrade to PHP 5.4 using Virtualmin?

I have Ubuntu 12.04.

Regards

Howdy,

There unfortunately isn’t a recommended way to upgrade to a different PHP version.

We always recommend using the PHP version that comes with your Linux distribution.

Ubuntu 12.04 comes with PHP 5.3.10.

If you want a newer PHP version, my recommendation would be to wait for the next Ubuntu LTS release, which is Ubuntu 14.04, set to be released in April 2014.

Currently, it appears that it will come with PHP 5.5.3.

While there are alternate ways to install newer PHP versions on Ubuntu 12.04, it involves using third party repositories. We don’t recommend that, as it often causes problems.

-Eric

Thanks so much for your reply. When you said ‘While there are alternate ways to install newer PHP versions on Ubuntu 12.04, it involves using third party repositories’, are you saying this?:

sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get upgrade

We don’t have any specific instructions for how to install PHP from a third party repository (as it’s something we recommend against)… what you described above may work, but you’d need to experiment.

-Eric

Thanks again. Greetings!