Skip to main content

PHP & Nginx

Install PHP and Nginx and tune them for predictable performance. Set sensible worker counts and limits, route through Cloudflare and verify correct client IP logging.

Note: This module is being worked on. Below is the lesson plan you can expect.

  • Installing Nginx from OS packages
  • Installing PHP from OS packages
  • Understanding your PHP and Nginx configuration layout
  • Updating Nginx and PHP configuration
  • Mapping your domain name and routing securely via Cloudflare
  • Reviewing your configuration with phpinfo()
  • Ensuring the real forwarded visitor IPs are logged in Nginx
  • Updating logrotate to cover PHP and Nginx logs

Next module: MariaDB