Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

root can't restart apache??

Status
Not open for further replies.

clemrock

Programmer
Joined
May 20, 2004
Messages
118
Location
US
Logged in as root, I was trying to restart apache w/ the usual:

apachectl -k graceful

and: apachectl -k restart

I also tried this: service httpd restart

in all attempts, I recieved ther "command not found" error

Weird, and I used this command yesterday too.

Clem C
 

The directory that apachectl is in has to be in root's path. Or else use the full path to the program.
 
What system are you running apache on? If it's linux, I don't think you need to use the "-k". If your using Win32, then I think the executible is apache not apachectl. And as ericbrunson suggested, apache's /bin directory must be in your path.

 
if you're under linux apachectl restart will work just fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top