A2enmod not working on Mac OS X - Mountain Lion

I have a little problem with "a2enmod" under Mountain Lion. I start apache with "sudo apachectl start" and tried to load the passenger using

a2enmod passenger 

but I throw:

 -bash: a2enmod: command not found 

Apache is working correctly on my localhost ... any ideas?

+8
apache macos
source share
2 answers

a2enmod is a command to enable the Apache module. You can achieve the same by editing /etc/apache2/httpd.conf and explicitly adding the passenger module:

LoadModule passenger_module libexec/apache2/mod_passenger.so

Read more about a2enmod here: https://discussions.apple.com/thread/2084284?start=0&tstart=0

+12
source share

a2enmod was written for the Debian distribution, as it is a script package with a package.

+16
source share

All Articles