clodagh Posted February 17, 2009 Share Posted February 17, 2009 I have to restart the apache server after some configuration changes I've been told to run the dos command usr/sbin/apachectl -k graceful alternatively without the -k from the root (C:/>) this gives a specified path not found error. Any ideas, is it that vista has these directories located somewhere else or I am making some silly mistake somewhere. This is doing my head in so any help would be appreciated Quote Link to comment Share on other sites More sharing options...
Mchl Posted February 17, 2009 Share Posted February 17, 2009 The path you got (usr/sbin/) would work for linux You must use the directory where Apache is installed on your machine instead. Quote Link to comment Share on other sites More sharing options...
Maq Posted February 17, 2009 Share Posted February 17, 2009 Can you tell us what exact command you're running and what kind of server apache is located on? Quote Link to comment Share on other sites More sharing options...
clodagh Posted February 17, 2009 Author Share Posted February 17, 2009 yeah I thought that its location is C:/xampp/apache/bin but is the cmd window it would not let me cd \bin said path not specified for Maq the exact command I was running was c:/usr/sbin/apachectl -k graceful and I don't know how to find out what kind of server apache is running on, downloaded xampp and it did all that crack for me. Quote Link to comment Share on other sites More sharing options...
Mchl Posted February 17, 2009 Share Posted February 17, 2009 Doesn't xampp come with some kind of control panel for restarting apache? Anyway c:/xampp/apache/bin/apachectl -k graceful might work... although I am not sure if windows Apache is controlled same way as Linux Apache Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 17, 2009 Share Posted February 17, 2009 usr/sbin is for linux only. Windows wont be able to understand that command. To restart Apache use the XAMPP Control Panel. Should be accessible via the taskbar EDIT: Alternatively restart the Apache server via the Windows Services windows> Type services.msc at start menu andf ind the Apache service and click restart. Quote Link to comment Share on other sites More sharing options...
clodagh Posted February 17, 2009 Author Share Posted February 17, 2009 it does, but when i tried to stop it through the control panel, it gave an error -1 busy Gave that a go, still nada...confusticating! Quote Link to comment Share on other sites More sharing options...
clodagh Posted February 17, 2009 Author Share Posted February 17, 2009 wildteen88, you're a legend, did it through windows services...didn't see that part of you post at first. Sound buddy Quote Link to comment Share on other sites More sharing options...
corbin Posted February 17, 2009 Share Posted February 17, 2009 net stop apache net start apache If you want to do it in the CL. Or /path/to/httpd -k restart Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.