How can I install apache and php5-fpm?

Posted June 26, 2013 9.4k views
Hi. How can I install a LAMP stack, Apache, MySQL, and php, with php5-fpm on ubuntu?

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.

Submit an Answer
3 answers

You need to enable Multiverse repository first. Copy paste the whole text in your terminal as root.

echo -e "deb $(lsb_release -cs) main restricted multiverse\ndeb-src $(lsb_release -cs) main restricted multiverse" | sudo tee -a /etc/apt/sources.list > /dev/null
Thx, this works for me, with a little modifications in the vhost config.

AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host -pass-header Authorization