I’m trying to install mod_auth_external on a MAMP install of Apache (version 2.0.59), but failing miserably to get it to work. I’ve done the following:
- Downloaded apache2 version 2.0.59 from here.
- Extracted the contents of the distribution, and configured with:
./configure --prefix=/Applications/MAMP/LibraryThen simply ran
maketo build the distribution (no install, obviously). - Copied the build dir to MAMP’s Library:
cp -R build /Applications/MAMP/Library/ - Changed to the mod_auth_external source dir, and tried to build the shared object using:
apxs -c mod_auth_external.cAt this point got an error message along the lines of:
sh: /Applications/MAMP/Library/build/libtool: No such file or directory
So symlinked libtool into the right place…
cd /Applications/MAMP/Library/build ln -s ../bin/libtool libtool - …and tried running apxs again:
apxs -i -c mod_auth_external.cThis built and installed the module as expected (into Library/modules). Joy!
- Finally, I edited the apache conf and added:
LoadModule mod_auth_external modules/mod_auth_external.so
Unfortunately, the final result of this is the following error message when running httpd:
Can’t locate API module structure `mod_auth_external’ in file /Applications/MAMP/Library/modules/mod_auth_external.so: undefined symbol
Any ideas… anyone?
UPDATE: Helps if you read the docs properly. The LoadModule configuration should have been:
LoadModule authnz_external_module modules/mod_authnz_external.so
Side note: I’ve tested on XAMPP, which is more up-to-date than XAMPP.


