The Nginx webiste has both [https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/#connecting-nginx-to-php-fpm examples for PHP-FPM] and a [https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/ Nginx recipe to serve MediaWiki]
== Measure twice, cut once ==
Always test your configuration file for syntax errors with <code>nginx -t</code> before restarting nginx.
== Debugging ==
While working with nginx, if you use option <code>-V</code> then you get the full configuration of the current install (this from a local virtual machine):