Apache 2 Config File

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_HAVE_IPV6 (IPv4-mapped addresses enabled)
-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:


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s