Apache and Nginx for Web Projects

Apache and Nginx are among the most common web servers in web projects. The examples cover a quick start for configuration, PHP-FPM integration, and logs.

Apache with VirtualHost and PHP-FPM

apache
bash

Nginx with PHP-FPM

nginx

Follow logs

bash

Logs contain requests, redirects, status codes, and web server error messages.

Key points

  • DocumentRoot or root points to the public directory
  • PHP-FPM usually runs over a socket or TCP
  • Modules and includes define server behavior
  • Separate logs make analysis easier

See also

Hosted in 🇩🇪 by

manitu
© 2026  |  Armin Kunkel  |  Author, Software Developer, Lecturer, Computer Scientist  |  Karlsruhe