![]() |
Where is the httpd -S command
I have a Debian Etch distribution.
My "Apache Cookbook" (O'Reilly, December, 2007) tells me that "It is particularly instructive to run httpd -S and observe the virtual host configuration as Apache understands it" However, when I type-in the command, I am told "-bash: httpd: command not found" which is particularly uninstructive. I've had a good rummage around in my server but I can't pin-point exactly where this command is? Thanks to anyone who can help. |
I assume that Apache is installed....
Did you try running the command as root (First do "su -", so that you get root's environment) Try this in a terminal (as root) Code:
find / -name "*httpd*" (may take a while)Code:
man httpd |
Try
Code:
apache2 -V |
Thanks for the quick responses.
find / -name "*httpd*" Code:
/etc/apache2/httpd.confCode:
No manual entry for httpdCode:
Server version: Apache/2.2.3My /etc/apt/sources.list looks like this (if it's of any use) Code:
# debian etch i386 port defaults |
http://httpd.apache.org/docs/2.2/
This describes the option you are talking about, but also says that "httpd" is not the normal way to start the daemon. In your output from find, there seem to be some manuals. but no "httpd" command. I've never used Apache, so we've pretty much hit the wall as far as getting help from me....... |
RedHat changed Apache's name to "httpd". Debian didn't, so you won't find an httpd binary. I don't use Apache either, but doesn't apache2 -S work?
|
@AlucardZero : That did the trick! Thanks
|
apache2 -S wont work in Ubuntu
you will get this error: apache2: bad user name ${APACHE_RUN_USER} use this instead: apache2ctl - S |
I'm using Ubuntu11.10
In Ubuntu you can use the command:
apache2 -l to show compiled in modules. |
| All times are GMT -5. The time now is 05:53 AM. |