Report this

What is the reason for this report?

Apache 2.4 with php5-fpm

Posted on April 24, 2014

I’ve spent so many hours trying to make the following setup: Apache v2.4 php-fpm to work, but without any success. I am using fully updated Ubuntu Server 14.04 TLS.

Most of the tutorials online are for nginx with php-fpm or Apache 2.2, but I know things have changed.



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!

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.

Thanks for this. Worked like a charm for my very first attempt.

You may also need to switch from the apache MPM non-threaded module mpm_prefork to a threaded one.

a2dismod mpm_prefork

then

a2enmod mpm_worker or a2enmod mpm_event

If it’s not installed:

apt-get install apache2-mpm-worker or apt-get install apache2-mpm-event

@richard-mckenna was right! Must first disable mod_php before use these settings… damn, it took me hours until find this comment to save me from lost more time.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.