SUSE Support

Here When You Need Us

Apache 2.2 and mod_auth_mysql fails with server error 500

This document (3810088) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 10


When attempting to authenticate using mod_auth_mysql and apache 2.2, a visitor is prompted for authentication credentials, but on entering those credentials, receives the error :

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500

In the /var/log/apache2/error_log file, the error message exists :
[Fri Sep 22 11:04:56 2006] [error] Internal error: pcfg_openfile() called with NULL filename
[Fri Sep 22 11:04:56 2006] [error] [client] (9)Bad file descriptor: Could not open password file: (null)


In Apache 2.2, the mod_auth_basic module is now set to authoritative, and must be disabled. This is done in the authentication section of the configuration file (where the"AuthMySQLEnabled on" line exists) by adding the line :
AuthBasicAuthoritative Off

Additional Information

An example configuration file for authentication with MySQL database services :
LoadModule mysql_auth_module /usr/lib/apache2/

AuthName "SYSSUP Internal Site"
AuthType Basic
AuthBasicAuthoritative Off
AuthMySQLEnable On
AuthMySQLUser test
AuthMySQLPassword test
AuthMySQLDB test
AuthMySQLUserTable user_info
AuthMySQLNameField user_name
AuthMySQLPasswordField user_passwd
AuthMySQLAuthoritative On
AuthMySQLHost localhost
AuthMySQLPwEncryption none
require valid-user


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3810088
  • Creation Date: 22-Sep-2006
  • Modified Date:10-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.