LAMP on Ubuntu 14.04 with Apache Event MPM : 'libapache2-mod-fastcgi' has no installation candidate

Posted April 17, 2015 13.1k views
UbuntuApacheLAMP Stack

I’ve had some recent performance trouble with my LAMP servers. After some digging I found this answer:

This worked perfectly, improving performance considerably on my older LAMP servers built in January 2015 and earlier. But an error when attempting to install the required packages on more recent LAMP droplet ( Built March 10 2015, Apache 2.4.7 ).

I ran:

sudo apt-get install libapache2-mod-fastcgi php5-fpm apache2-mpm-event

and got :

Package libapache2-mod-fastcgi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libapache2-mod-fastcgi' has no installation candidate

It would be great to get apache event mpm working on my newer droplets. Any help would be appreciated.

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

The libapache2-mod-fastcgi package is in the Ubuntu multiverse repository. You will need to update your sources.list to ensure that the multiverse repository is enabled and then do an apt-get update before attempting the install. More information is available here.

[:crit] [pid 13230:tid 139997275240320] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.

How do I recompile PHP to be threadsafe?