How to solve WAMP localhost 500 internal error

今天手贱杀毒选择了自动处理,结果把我的mysql的一个文件被360当做木马处理了!!导致我WAMPSERVER无法启动,mysql数据库也无法连接,你妹。重装mysql后,WAMPSERVER 还是无法启动,重装,结果访问localhost出现 500 internal error。你妹,搞了半天说句实话,baidu不给力,google虽然是好是坏,但是解决问题还是要靠google。
在一个国外的论坛上发现类似问题。1中方法是删除 .htaccess文件,但是删除后其他类似localhost/post/admin回报404错误。
第二种也是比较好的一种,应该是我以前装WAMPSERVER的时候设置过不过忘了。就是在Apache server的httpd.conf文件中
LoadModule rewrite_module modules/mod_rewrite.so    去掉前面的(#),重启服务,就可以工作了。
 
英文原文

I found a solution for WAMP users. They unusually need to enable the mod_rewrite for their Apache server. In the httpd.conf find "LoadModule rewrite_module modules/mod_rewrite.so" and remove the pound (#) from the beginning of the site. Save the file and restart WAMP. Add the .htaccess file changes for the WordPress network. Refresh and it should work.

From what I read, some need to change   AllowOverride none   in the httpd.conf to   AllowOverride all   as well. I hope this helps.

帖子链接:http://wordpress.org/support/topic/how-to-solve-wamp-localhost-500-internal-error 
 

转载于:https://my.oschina.net/u/129165/blog/91906

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值