dqy27359 2015-09-01 02:32
浏览 41
已采纳

.htaccess:XAMPP中的命令'Auth_MySQL'无效

My XAMPP version is 5.6.8, PHP 5.6.8, Apache 2.4.12

I have configured a WP website, but when I try to reach the wp-admin panel, in the browser I get "Error 500 - 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".

In the error log I can see the following error: .htaccess: Invalid command 'Auth_MySQL', perhaps misspelled or defined by a module not included in the server configuration

I figured out I need to load mod_auth_mysql module, however, it turns out it is not compatible with my XAMPP version, so I need a different solution.

.htaccess file as follow:

IndexIgnore *
Order Deny,Allow
AuthName "XXX"
AuthType Basic
Auth_MySQL On
Auth_MySQL_Authoritative on
Auth_MySQL_Host XXX
Auth_MySQL_Username XXX
Auth_MySQL_Password XXX
Auth_MySQL_DB XXX
Auth_MySQL_Password_Table XXX
Auth_MySQL_Username_Field XXX
Auth_MySQL_Password_Field XXX
Auth_MySQL_Encryption_Types PHP_MD5
Auth_MySQL_Password_Clause " AND ACTIVE=1"
Auth_MySQL_Empty_Passwords Off
AuthBasicAuthoritative Off
AuthUserFile /dev/null
require valid-user
Deny from all
Satisfy any

Thank you!

展开全部

  • 写回答

1条回答 默认 最新

  • duanbi6522 2016-06-01 00:50
    关注

    I could not find a compatible build of mod_auth_mysql, so the solution was to remove the directive from .htaccess.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部