LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do I restart Apache? (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-restart-apache-5745/)

360 08-23-2001 12:40 AM

How do I restart Apache?
 
I'm working on a new server where the Apahce files are in a different directory than my old server.
I use to be able to restart apache with:
/usr/local/apache/bin/apchectl restart

Apache conf file is located at /etc/httpd/conf/httpd.conf
Sever root is /etc/httpd instead of /usr/local/apache

Thanks

mcleodnine 08-23-2001 01:14 AM

Well from your post I can't tell if apache won't start because you can't find apachectl or because apachectl kraps out when it can't find the serverroot.

Have a look at the logs and see what's causing the error. Which distro are you using?

Not too sure if server root in /etc/httpd is such a good idea. Nobody goes near my /etc!!! "You grep'd /etc!!! No soup for you!"

You could try
Code:

find / -name apachectl
to see where it lives.

360 08-25-2001 06:26 PM

I found the answer.

/usr/local/apache/bin/apachectl restart

or

/etc/init.d/httpd restart


All times are GMT -5. The time now is 03:30 PM.