Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: httpd -k remove locks up |
|
Author |
|
jmichae3
Joined: 26 Nov 2014 Posts: 7
|
Posted: Sat 06 Aug '16 19:34 Post subject: httpd -k remove locks up |
|
|
httpd -k remove locks up
also, <Directory "${ServerDirectory}/manual"> doesn't expand that variable name properly. makes a big mess.
2.4.18 vista 32 |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 07 Aug '16 1:30 Post subject: |
|
|
'remove' is not a command it understands, when I try it Apache just starts like it would from a command prompt. Looks like nothing is happening but the server responds to requests. Just the cursor in the console sits there blinking is normal.
Code: | -k restart : tell running Apache to do a graceful restart
-k stop|shutdown : tell running Apache to shutdown
-k install : install an Apache service
-k config : change startup Options of an Apache service
-k uninstall : uninstall an Apache service |
Try -k uninstall
As for ${ServerDirectory}, works for me. Did you define it before trying to use it?
Code: | Define ServerDirectory "C:/Apache24"
ServerRoot "${ServerDirectory}"
DocumentRoot "${ServerDirectory}/htdocs"
<Directory "${ServerDirectory}/htdocs">
...
</Directory> |
|
|
Back to top |
|
jmichae3
Joined: 26 Nov 2014 Posts: 7
|
Posted: Sun 07 Aug '16 6:25 Post subject: |
|
|
looks like the var expansion bug got fixed. thanks for the verify. |
|
Back to top |
|
jmichae3
Joined: 26 Nov 2014 Posts: 7
|
Posted: Tue 09 Aug '16 9:07 Post subject: |
|
|
so if it's an unrecognized command what do you do? you reject it with an error message.
otherwise, the user assumes the program's hung when instead it's happily serving up http instead.
I fail to understand your logic...
by the way, could -k install also perform a start? that's usually the next thing that's done anyway, yes? you could put out a pool for that if this bbcode has support for polls. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 10 Aug '16 3:21 Post subject: |
|
|
jmichae3 wrote: | so if it's an unrecognized command what do you do? you reject it with an error message. |
OK, I agree in some part because an argument can be made that it breaks the principals of least surprise, you just did. So file a bug report, check first if one already exists and if it does chime in on it instead.
No, "-k install" will not start the server, it just installs the Windows Service. Right after it you use "-k start" or 'net start apache2.4' or with Apachemonitor or the Services Windows in Administrator Tools.
I see I missed this when I copy and pasted that list which by the way you can see the entire list of switches with 'httpd -h'.
Code: | -k start : tell Apache to start |
|
|
Back to top |
|
jmichae3
Joined: 26 Nov 2014 Posts: 7
|
Posted: Fri 26 Aug '16 1:09 Post subject: |
|
|
that wasn't a request for more help. it was a suggestion for an apache modification. sorry for not making this more clear.
to install and start, to stop and uninstall should be integrated into install and uninstall.
saves the admin a step. maybe it makes for a bad admin habits, but maybe it sets the pace for other server programs like mysql, SMTP servers, ftp servers to do the same. |
|
Back to top |
|
|
|
|
|
|