Page 1 of 1

Detecting Apache version on Linux FC2

Posted: Mon Nov 15, 2004 4:55 am
by anjanesh
How to figure out the version of Apache installed in FC2 ?
php --version and mysql --version gives the version number, but
apache --version
httpd --version
gives bash: httpd: command not found.
Any idea on how to find it ?
Thanks

Posted: Mon Nov 15, 2004 7:55 am
by Weirdan
usually httpd is installed in sbin directories (in one of them) which aren't listed in the PATH environment variables of ordinary users. You can try folllowing locations: /usr/sbin/httpd, /usr/local/sbin/httpd. In case it isn't there here is another way: type this command in your shell prompt

Code: Select all

find / -name httpd
It's very disk intensive operation (search the entire directory tree) and perhaps it will yield a lot of results, so you will need to filter out httpd man pages, apache source code, and so on. But at least the binary should be among them.