|
Installation
How to Install Mod_authnz_external
Notes:Before installing, note the following:
You can check your apache version by running it from the command line with the -v flag.
It should be noted that it is still possible to use older-style independent authentication modules in Apache 2.2, and mod_auth_external-2.2.x can be made to work with only a little difficulty arising from mod_auth_basic's reluctance to be turned off. See the mod_auth_external INSTALL document for information on using it with Apache 2.2. Do not, however, install both mod_auth_external and mod_authnz_external in your httpd. I don't know what exactly would happen, but it won't be good.
This page gives instructions only for installing Apache as a dynamically loaded module. There are instructions for installing it statically in the INSTALLATION file in the distribution, but it has been so long since I have done this, that I do not know if they are still correct. Step-by-Step Directions(1) Check if Dynamically Loaded Modules are SupportedEnsure that your Apache server is configured to handle dynamically loaded modules. These days, nearly all are, but if you want to check this, run Apache server with the -l command flag, like httpd -l If 'mod_so.c' is one of the compiled-in modules, then you are ready to go. Note that some installations may give the http daemon different names, like 'apache' or 'httpd2'. Some may have multiple copies of apache sitting in different directories. Be sure you looking at the one that is being run. (2) Compile the ModuleUse the following command in the 'mod_authnz_external` distribution directory: apxs -c mod_authnz_external.c 'Apxs' is the Apache extension tool. It is part of the standard Apache distribution. If you don't have it, then there may be a Apache development package that needs to be installed on your system, or your Apache server may not be set up for handling dynamically loaded modules. Some systems rename it weirdly, like 'apxs2' in some openSUSE distributions. Apxs should create a file named 'mod_authnz_external.so'. AIX USERS: If you have problems at this point, see the notes in the INSTALLATION FILE. (3) Install the ModuleApxs can do this for you too. Do the following command (as root so you can write to Apache's directories and config files): apxs -i -a mod_authnz_external.la This will create mod_authnz_external.so and copy it into the proper place, and add appropriate AddModule and LoadModule commands to the configuration files. (4) Installation is CompleteSee the Configuration page for how to configure it. |
Sign in to add a comment