view apache status code example
Example 1: apache2 status
sudo systemctl status apache2
Example 2: check if apache new config is running centos
To check Apache new configuration run this command line:
apachectl configtest
sudo systemctl status apache2
To check Apache new configuration run this command line:
apachectl configtest