I would like to install PHP 5.4 with FPM on a 12.04 virtual machine. The popular PPA solution for installing PHP 5.4 doesn't seem to include the php5-fpm package.
What's the best way to install this version?
I would like to install PHP 5.4 with FPM on a 12.04 virtual machine. The popular PPA solution for installing PHP 5.4 doesn't seem to include the php5-fpm package.
What's the best way to install this version?
I will (ab)use already answered question: How do I install PHP 5.4.0?
You could use a ppa to stay up-to-date with php. I use :
https://launchpad.net/~ondrej/+archive/php5
It's now on 5.4. If you want use this ppa do this:
ppa:ondrej/php5 (Click here for instructions on using PPAs.)
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get upgrade
If you don't have add-apt-repository binary do the following:
sudo apt-get install python-software-properties
For more, see the already answered question mentioned in the top.
If your system is 32 bit (old computers):
Go to this thread and select the latest version. Then download the file there is on the Downloadable files section
If your system is 64 bit (the most common by now):
Go to this thread and select the latest version. Then download the file there is on the Downloadable files section
Installing PHP from terminal:
Enter the following command:
sudo apt-get install php5-fpm
Compile your self:
In this web page you will found the download link with the packages.
Then you have to compile and install.
More information about the LAMP installation on Ubuntu 12.04
apt-get install php5-fpm
will install php5-fpm in 5.4 flavor. What's output ofapt-cache policy php5-fpm
? – oerdnj Apr 28 '13 at 07:43apt-get update && apt-get upgrade
already. – Seth Jeremi Malaki Apr 28 '13 at 07:48sudo apt-get install php5-common=5.4.23-1+sury.org~precise+1
thensudo apt-get install php5-fpm=5.4.23-1+sury.org~precise+1
to install/upgrade php5-fpm to php 5.4. (Got the hint from @oerdnj asking the output ofapt-cache policy php5-fpm
.) – notacouch Dec 16 '13 at 16:35