how can i start and stop apache

From WebHostingNeeds.com
Jump to: navigation, search

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

or

service httpd stop

Start apache

/etc/init.d/httpd start

or

service httpd start


To see status of apache


service httpd status


If you run cPanel there is a restart script located at

/scripts/restartsrv

To restart Apache run

/scripts/restartsrv httpd