tags:

views:

929

answers:

4

The subject says it all. is there a command for doing this?

+6  A: 

Try apachectl -V:

$ apachectl -V
Server version: Apache/2.2.9 (Unix)
Server built:   Sep 18 2008 21:54:05
Server's Module Magic Number: 20051115:15
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
... etc ...
tgamblin
A: 

or, less directly, nmap -A localhost -p 80

Chad
A: 

thx tgamblin. For me apachectl -V did not work, but apachectl fullstatus gave me my version.

pindiwala
A: 

getting error saying that command not found

asd