computerminds/parrot — pull request #69 by darthsteven (2014-08-08 08:20:19+00:00)
Title: Use PHP FPM

If we use PHP FPM instead of mod_php in Apache we get:

* Ability to run the PHP process as a different user
* Ability to run multiple versions of PHP (maybe?)
* Better separation of concerns
* A less familiar setup, but one that we probably need to get comfortable with

A little todo list:

- [ ] Install the relevant PHP-FPM package
- [ ] Change the Apache config to use mpm worker.
- [ ] Change the vhost template to use PHP-FPM
- [ ] Configure FPM to run as the same user as the host OS.
- [ ] Make sure timeouts are large enough to debug etc.
- [ ] Stress test the server
- [ ] Document this