This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
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.
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?:
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.
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!