ubuntu check if apache is running code example
Example 1: apache2 status
sudo systemctl status apache2
Example 2: check if apache syntax correct ubuntu
apache2ctl configtest
sudo systemctl status apache2
apache2ctl configtest