apachectl on centos code example
Example 1: centos stop apache
systemctl restart httpd.service
systemctl start httpd.service
systemctl stop httpd.service
Example 2: check if apache new config is running centos
To check Apache new configuration run this command line:
apachectl configtest