Well, if I put debug behind every line... IT WORKS ! It does not seem to produce debug messages, but at least it works :-D
It seems like there is something wrong with the file parsing of /etc/pam.d/apache2.
#%PAM-1.0
auth include system-auth debug
auth required pam_nologin.so debug
account ...