How can I install apache and php5-fpm?

June 26, 2013 8k views
Hi. How can I install a LAMP stack, Apache, MySQL, and php, with php5-fpm on ubuntu?
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
Have another answer? Share your knowledge.