how to stop apache from ssh?

weber

Verified User
Joined
Sep 18, 2009
Messages
12
D/A has some problem. so how to sopt and start apaceh from SSH?
where is apache located?
 
...how to sopt and start apaceh from SSH?
To start/stop Apache 2, enter:
Code:
# /etc/init.d/apache2 stop
# /etc/init.d/apache2 start

To start/stop Debian-Ubuntu / RHEL / CentOS / Fedora based Apache server, enter:
Code:
# service httpd stop
# service httpd start
If you don't remember where is your Apache installation folder, issue the following command to find it out.
Code:
find . -name apache
 
Last edited:
thanks

but i just want to stop and start apache only... not too much
 
They already gave you the command:

/etc/init.d/httpd restart

If it doesnt start then look in the error log /var/log/httpd/error_log
 
Back
Top