Apache on Linux: What version am I running?

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
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Apache on Linux: What version am I running?

Post by nigma »

From console and without access to any config files how could I figure out what version of apache i'm using?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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>
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Someone elses linux comp. Thanks for the -V.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You know you could always run phpinfo() to get all of the data. -> you can even do that from console too ;-)
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

thanks. i'm just starting to reacquaint with myself with the lunix systems.
thegreatone2176
Forum Contributor
Posts: 102
Joined: Sun Jul 11, 2004 1:27 pm

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