LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2001, 12:40 AM   #1
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
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
 
Old 08-23-2001, 01:14 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
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.
 
Old 08-25-2001, 06:26 PM   #3
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I found the answer.

/usr/local/apache/bin/apachectl restart

or

/etc/init.d/httpd restart
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache fails to restart nde Linux - Newbie 7 09-13-2005 04:26 PM
how do i apache restart? einstien Linux - General 3 03-30-2005 01:22 PM
Apache can't restart Serbulent Linux - Enterprise 2 03-16-2005 02:29 AM
using shell_exec to restart apache? fuelinjection Linux - General 1 07-08-2004 12:24 PM
remote restart apache sim Linux - Software 1 06-11-2002 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration