Runbooks
How to Start and Stop Apache
Quick reference for starting, stopping, and restarting Apache (httpd) on standard Linux and cPanel servers.
#linux#apache#cpanel#sysadmin
Standard init scripts
On most Linux servers, the start/stop scripts live in /etc/init.d (or /etc/rc.d/init.d on older systems):
# Stop Apache
/etc/init.d/httpd stop
# Start Apache
/etc/init.d/httpd start
On cPanel/WHM servers
cPanel wraps service restarts through its own script, which handles cPanel-specific hooks that a plain service command would skip:
/scripts/restartsrv httpd
If an /admin folder exists on the box, Apache can also be restarted via:
/admin/res httpd
Modern systemd equivalent
Most current distros (AlmaLinux, RHEL 8+, Ubuntu 16.04+) use systemctl instead of the old init scripts:
systemctl stop httpd
systemctl start httpd
systemctl restart httpd
systemctl status httpd
Use /scripts/restartsrv httpd on cPanel boxes specifically — it re-checks config sanity and updates cPanel's service-tracking state, which a raw systemctl restart does not do.