GICT knowledge base
How can I start and stop apache?
Published
The standard start/stop scripts are located in /etc/init.d or for older linux versions /etc/rc.d/init.d.
Stop apache: /etc/init.d/httpd stop
Start apache: /etc/init.d/httpd start
If you run cPanel there is a restart script located at /scripts/restartsrv.
To restart Apache run /scripts/restartsrv httpd If you have an /admin folder apache can be restarted by running /admin/res httpd
Related guides
How to Restrict an SSH Key to One Command
Restrict an SSH key to one command with authorized_keys options. Protect the command and check that unwanted shell and forwarding access are denied.
Linux and CommandsSelf-Hosted Video Processing With FFmpeg: A Practical Guide
Learn how to self-host video processing on a VPS using FFmpeg, with practical commands for conversion, compression, thumbnails, and automated workflows.
Linux and CommandsHow to use nohup: Commands in Linux That Survive Terminal Closes
Keep commands running after you close the terminal. nohup examples with wget, Python, rsync, and Docker on any VPS.
Linux and CommandsHow to Fix “Too Many Open Files” Error on Linux Servers
Learn how to fix the "Too Many Open Files" error on Linux servers by understanding file descriptors, adjusting limits, and diagnosing leaks effectively.
