Gentoo httpd.conf with two lines added. This it works! LoadModule access_module modules/mod_access.so --> LoadModule auth_pam_module modules/mod_auth_pam.so --> #LoadModule auth_sys_group_module modules/mod_auth_sys_group.so LoadModule auth_module modules/mod_auth.so LoadModule auth_anon_module modules/mod_auth_anon.so LoadModule auth_dbm_module modules/mod_auth_dbm.so LoadModule auth_digest_module modules/mod_auth_digest.so But modules.d/10_mod_auth_pam.conf it doesn't work for me because is loaded at the end of httpd.conf loading-modules part: I mean, this line "Include conf/modules.d/*.conf" is written in httpd.conf after the "LoadModule" section. This is the reason. It seems to be necessary to load mod_auth_pam.so before of mod_auth_*. My english is not very good, sorry. Reproducible: Always Steps to Reproduce: 1. 2. 3.
No, you are supposed to add AUTH_PAM to APACHE2_OPTS in /etc/conf.d/apache2
If you do that, mod_auth_pam will be loaded by Apache after of loading: LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so LoadModule auth_anon_module modules/mod_auth_anon.so LoadModule auth_dbm_module modules/mod_auth_dbm.so LoadModule auth_digest_module modules/mod_auth_digest.so Ant that is the reason it didn't worked for me! Take a look the place where "Include conf/modules.d/*.conf" in httpd.conf.
the order modules are loaded shouldn't matter for apache-2.0 this is because apache-2.0 uses hooks so modules can say they want to be used at a certain point in time. if the module isn't working correctly with the hooks, then it's a problem with the module. please file a bug upstream. reference: http://httpd.apache.org/docs-2.0/new_features_2_0.html New Apache API The API for modules has changed significantly for 2.0. Many of the module-ordering/-priority problems from 1.3 should be gone. 2.0 does much of this automatically, and module ordering is now done per-hook to allow more flexibility. Also, new calls have been added that provide additional module capabilities without patching the core Apache server.