Question: how php-fpm works with nginx?
Answer: Install Nginx. You can either install Nginx from source, or install it using the package management tool that comes with your distro. ...  Install PHP5-FPM. ...  Add PHP Configuration to Nginx. ...  Set listen Parameter in php5-fpm www. ...  Restart the Nginx and PHP5-FPM and Test it.