Commands to Start/Stop or Restart Apache Server on CentOS

Commands to Start/Stop or Restart Apache Server on CentOS

By: ZebraHost

Commands for CentOS 7 and Newer

Start: sytstemctl start httpd.service

Stop: systemctl stop httpd.service

Restart: systemctl restart httpd.service

Commands for Older Versions of CentOS

Start: service httpd start

Stop: service httpd stop

Restart: service httpd restart