Follow this quick receipe to use PHP-FPM as a FastCGI back-end for nginx.
Next, create a php-fpm.inc file with the following content. You will include this snippet in the server configuration files later.
Next, edit your site.conf file and make sure you have the following in the “server” section:
If you changed the configuration file, reload nginx"s config with
Look at this article for more information.