dqy27359 2015-09-01 10: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 08:50
    关注

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

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

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题