Check web server and PHP-FPM status
Check whether Nginx or Apache is running and list all loaded PHP-FPM services along with their current status.
BASH
(systemctl is-active nginx || true) && \
(systemctl is-active apache2 || true) && \
(systemctl list-units --type=service --all 'php*-fpm.service' --no-pager)
Useful for quickly identifying the web server and PHP-FPM versions running on a Linux server.