Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 297
Jeffrey Zhao Avatar asked Feb 21 '10 15:02

Jeffrey Zhao


People also ask

Where are Apache modules located?

1 Answer. The module shared library files go in /usr/lib/apache2/modules , not that you should use your own when there's a packaged version available.


2 Answers

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.

like image 66
Lachlan Roche Avatar answered Sep 30 '22 18:09

Lachlan Roche


  • 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.

like image 27
Verde Mc Avatar answered Sep 30 '22 19:09

Verde Mc