I’ve been using Apache httpd on and off on my PowerBook for various purposes including school assignments. The httpd version that comes with the PowerBook by default is 1.3.33 and I need to use the version 2.*. So, I installed the Apache 2 via Fink.

After having successfully installed Apache 2, we need to make some changes to the config file (usually, it is the httpd.conf file.) Guess what? I totally forgot where that file resides. The only thing I could remember is that we can find that information out very easily by giving the -v option to the httpd. So, I tried it and this is what I got:

$ ./httpd -v

Server version: Apache/2.0.55

Server built:   Mar 13 2006 12:44:02

Ahhh… that’s not what I wanted to know. I scratched my head, and and this time I try it with the -V option:

$ ./httpd -V

Server version: Apache/2.0.55

Server built:   Mar 13 2006 12:44:02

Server’s Module Magic Number: 20020903:11

Architecture:   32-bit

Server compiled with….

-D APACHE_MPM_DIR=”server/mpm/worker”

-D APR_HAS_MMAP

-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

-D APR_USE_SYSVSEM_SERIALIZE

-D APR_USE_PTHREAD_SERIALIZE

-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

-D APR_HAS_OTHER_CHILD

-D AP_HAVE_RELIABLE_PIPED_LOGS

-D HTTPD_ROOT=”/sw/var/apache2″

-D SUEXEC_BIN=”/sw/var/apache2/bin/suexec”

-D DEFAULT_SCOREBOARD=”logs/apache_runtime_status”

-D DEFAULT_ERRORLOG=”logs/error_log”

-D AP_TYPES_CONFIG_FILE=”/sw/etc/apache2/mime.types”

-D SERVER_CONFIG_FILE=”/sw/etc/apache2/httpd.conf”

The correct option is -V (capital V), and the path to the configuration file is:

/sw/etc/apache2/httpd.conf.