Detecting Apache version on Linux FC2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Detecting Apache version on Linux FC2

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
Post Reply