Jeffrey Zhao
Jeffrey Zhao

Reputation: 5023

Where's the module files for the build-in Apache in Snow Leopard

I'm new to Mac OS X and I'm going to do some dev work under Snow Leopard. I enabled the build-in apache and found things below in file etc/apache2/httpd.conf:

LoadModule alias_module libexec/apache2/mod_alias.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule bonjour_module libexec/apache2/mod_bonjour.so

But I cannot find the "libexec" directory in my system, did I make something wrong?

Upvotes: 19

Views: 21567

Answers (3)

Verde Mc
Verde Mc

Reputation: 131

  • Go to your Hard Disk Drive in Finder
  • Press "Shift + Command + Point (.)"
    It will display Hidden folders.
  • Go to "/usr/libexec/apache2"

Voila!

There are apache modules.

Upvotes: 3

Lachlan Roche
Lachlan Roche

Reputation: 25956

The config files are in /etc/apache2 and the modules live in /usr/libexec/apache2.

The paths in httpd.conf are relative to HTTPD_ROOT, which can be found be saying httpd -V.

Upvotes: 50

ennuikiller
ennuikiller

Reputation: 46965

It's usually under /usr:

/usr/libexec

Upvotes: 2

Related Questions