Page 1 of 1

Apache on Linux: What version am I running?

Posted: Mon Apr 25, 2005 6:13 pm
by nigma
From console and without access to any config files how could I figure out what version of apache i'm using?

Posted: Mon Apr 25, 2005 7:25 pm
by Chris Corbyn
Windows or *nix? The uppercase V flag shows compile information (including version number). 8)

Code: Select all

# C:\Apache\bin\>   apache -V

Server version: Apache/2.0.49
Server built:   Mar 18 2004 11:14:46
Server's Module Magic Number: 20020903:7
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR=&quote;server/mpm/winnt&quote;
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=&quote;/apache&quote;
 -D SUEXEC_BIN=&quote;/apache/bin/suexec&quote;
 -D DEFAULT_SCOREBOARD=&quote;logs/apache_runtime
 -D DEFAULT_ERRORLOG=&quote;logs/error.log&quote;
 -D AP_TYPES_CONFIG_FILE=&quote;conf/mime.types&quote;
 -D SERVER_CONFIG_FILE=&quote;conf/httpd.conf&quote;

# C:\Apache\bin>

Posted: Mon Apr 25, 2005 7:41 pm
by nigma
Someone elses linux comp. Thanks for the -V.

Posted: Mon Apr 25, 2005 7:51 pm
by Chris Corbyn
You know you could always run phpinfo() to get all of the data. -> you can even do that from console too ;-)

Posted: Mon Apr 25, 2005 7:53 pm
by nigma
thanks. i'm just starting to reacquaint with myself with the lunix systems.

Posted: Tue Apr 26, 2005 4:37 pm
by thegreatone2176
some other ways to do this could be by getting a 404 error, http://www.netcraft.com your site, or telnet localhost 80 and see whats running on the port