How to add php to a linux (ubuntu) server already running nginx + gunicorn + django

Finglish asked:

I have been running a django app on nginx using gunicorn on Ubuntu (now version 12.04) for some time now, and have been pleased with the results. My issue is that I have inherited a php site which I want to run on the same server.

Can anyone give me some advice on what might be the best way to add php to my server setup?

My answer:


  1. sudo apt-get install php-fpm
  2. Set up your new virtual host.
  3. Enjoy.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.