My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

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.

Environment


Novell SUSE Linux Enterprise Server 10
Apache 2.2
mod_auth_mysql

Situation

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 137.65.62.53] (9)Bad file descriptor: Could not open password file: (null)

Resolution

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/mod_auth_mysql.so

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


Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/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-06
  • Modified Date:27-APR-12
    • SUSESUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

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

Join Our Community

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.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

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

Go to Customer Center