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.

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

报告相同问题?

悬赏问题

  • ¥20 求数据集和代码#有偿答复
  • ¥15 关于下拉菜单选项关联的问题
  • ¥20 java-OJ-健康体检
  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R