Upgrade to PHP 5.4

5 posts / 0 new
Last post
#1 Tue, 12/03/2013 - 08:25
Lisandro1987

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

Tue, 12/03/2013 - 10:18
andreychek

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

Tue, 12/03/2013 - 11:19
Lisandro1987

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

Tue, 12/03/2013 - 12:14
andreychek

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

Wed, 12/04/2013 - 09:43
Lisandro1987

Thanks again. Greetings!

Topic locked