For httpd use the following command:
the version number will be part of the output.
You should be able to find this in the log called 'catalina.out'.
Alternatively, you can go right to the source; open
$TOMCAT_HOME/server/lib/catalina.jar in a tool capable of handling zip
or jar files, and read the file called
That last bit is not guaranteed to work across multiple versions,