peaceman
04-25-2001, 01:28 AM
I just got WHM and CPANEL for my server. And it seems as though each time I add a few domains, I somehow manage to break the APACHE server. Can anyone tell me how to restart apache via WHM or some other way. I when tto the "RESTART SERVICES" section on WHM and clicked on the restart Apache link, but it still show up as failed.
Thanks
DHWWnet
04-25-2001, 01:46 AM
Try to ssh to the server and restart apache from there
/init.d/httpd.init stop
/init.d/httpd.init start
cimshimy
04-27-2001, 12:26 AM
You could manually restart it.. i'm pretty sure you apache is located in /usr/local/apache, so:
/usr/local/apache/bin/apachectl stop - stops it
/usr/local/apache/bin/apachectl start - starts it
/usr/local/apache/bin/apachectl graceful - gracefully restarts it (basically just a reload, won't work if you install new modules, etc)
/usr/local/apache/bin/apachectl restart - stops and starts it
Andrew
/etc/rc.d/init.d/httpd restart
WaffenSS
04-27-2001, 07:45 PM
/usr/local/apache/bin/httpd restart
WaffenSS
04-27-2001, 07:47 PM
peaceman if you click on Restart Apache and it fails then even manually its possible for it not work.
Make sure you don't have any errors in httpd.conf file or any other.Restart it like the above people talled you if something is wrong with apache then it will tell you the error.
webfors
04-29-2001, 09:50 AM
Check your apache configuration file (httpd.conf) by doing the following:
/usr/local/apache/bin/apachectl configtest
This will verify your httpd.conf for any syntax or structural errors and give you a report. This should let you know what's wrong.