Question

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

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

https://www.digitalocean.com/community/questions/lamp-on-ubuntu-14-04-with-apache-event-mpm?answer=16934

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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?

This comment has been deleted