Nginx, Apache & PHP
Identify the web stack, validate scoped configuration changes and diagnose routing, PHP and gateway errors.
How do I identify the web server and PHP runtime on a Linux server?
Identify active Nginx, Apache and PHP-FPM services, compare listeners with installed binaries and avoid confusing CLI PHP with web PHP.
Read the answer Nginx, Apache & PHPHow do I test and reload Nginx configuration safely?
Validate Nginx configuration before reloading it, preserve existing workers during a successful reload and confirm the intended website response.
Read the answer Nginx, Apache & PHPHow do I test and reload Apache on Ubuntu or a RHEL-family server?
Validate Apache configuration using the correct distribution wrapper, reload the intended service and verify its active sites afterwards.
Read the answer Nginx, Apache & PHPHow do I check which Apache virtual host serves a domain?
Inspect Apache virtual-host mappings and test a domain against a selected server IP while preserving the hostname used for HTTPS validation.
Read the answer Nginx, Apache & PHPHow do I diagnose a 403 Forbidden response on a server?
Investigate 403 errors by matching the request with web-server logs, file traversal permissions, index settings and intentional access rules.
Read the answer Nginx, Apache & PHPHow do I diagnose a 404 response when a file or application route should exist?
Trace a 404 to the correct virtual host, document root or application router, checking exact paths and case without broad rewrite changes.
Read the answer Nginx, Apache & PHPHow do I diagnose a PHP website returning HTTP 500?
Correlate a PHP 500 response with server and application logs, lint the changed file and verify the web runtime without exposing error details.
Read the answer Nginx, Apache & PHPHow do I diagnose a 502 Bad Gateway response from Nginx?
Investigate Nginx 502 responses by checking the configured upstream, listener, protocol and recent errors before restarting unrelated services.
Read the answer Nginx, Apache & PHPHow do I diagnose a 504 Gateway Timeout on a server?
Separate proxy connection timeouts from slow application responses, compare request timing and investigate dependencies before changing timeout limits.
Read the answer Nginx, Apache & PHPHow do I check PHP-FPM service and socket health?
Identify the PHP-FPM instance serving a website and inspect its unit, logs and listening socket without assuming a PHP version or service name.
Read the answerNo matching question in this topic. Try a shorter phrase or search all server questions.
