Posts tagged with “XAMPP”

Building mod_auth_external for MAMP… success

Wednesday, 20 May, 2009

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:

  1. Downloaded apache2 version 2.0.59 from here.
  2. Extracted the contents of the distribution, and configured with:
    
    ./configure --prefix=/Applications/MAMP/Library
    

    Then simply ran make to build the distribution (no install, obviously).

  3. Copied the build dir to MAMP’s Library:
    
    cp -R build /Applications/MAMP/Library/
    
  4. Changed to the mod_auth_external source dir, and tried to build the shared object using:
    
    apxs -c mod_auth_external.c
    

    At 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
    
  5. …and tried running apxs again:
    
    apxs -i -c mod_auth_external.c
    

    This built and installed the module as expected (into Library/modules). Joy!

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