php wamp server 500 内部服务器错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12000398/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 02:37:42  来源:igfitidea点击:

wamp server 500 internal server error

phpapachewampinternal-server-error

提问by Mohsen

i have a website running on XAMPP.

我有一个在 XAMPP 上运行的网站。

i don't know about its version of php that the web site is written by and version of apache too.

我不知道网站编写的 php 版本和 apache 版本。

I want to move it on windows but got the message 00-Internal server error occurs.

我想在 Windows 上移动它,但收到消息00-Internal server error occurs

i did it too ( wamp->apache->apache modules->rewrite-modules ) and restart my wamp but nothing happened.

我也这样做了( wamp->apache->apache modules->rewrite-modules )并重新启动我的 wamp 但什么也没发生。

And here is the error that i see :

这是我看到的错误:

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at admin@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.

Internal Server Error 服务器遇到内部错误或配置错误,无法完成您的请求。请通过 admin@localhost 联系服务器管理员,告知他们此错误发生的时间,以及您在此错误之前执行的操作。服务器错误日志中可能提供有关此错误的更多信息。

What is the solution!

解决办法是什么!

i will be thankful

我会很感激

回答by Charaf JRA

You should activate the rewrite module in the file httpd.conf.

您应该激活文件中的重写模块httpd.conf

Change this line :

改变这一行:

#LoadModule rewrite_module modules/mod_rewrite.so

to :

到 :

LoadModule rewrite_module modules/mod_rewrite.so

回答by Mahdi Jazini

remove (or move) .htaccess file from your www wamp folder...

从您的 www wamp 文件夹中删除(或移动).htaccess 文件...

回答by tauqeer afzal

Re: 500 Internal Server Error

回复:500 内部服务器错误

Check that you have the the apache rewrite module loaded.

检查您是否加载了 apache 重写模块。

go to wamp_manager -> apache -> modules and look for rewrite_module in the list.

转到 wamp_manager -> apache -> modules 并在列表中查找 rewrite_module。

If it does not have a TICK beside it click it. Apache will be bounced ( stop, start ). Try again.

如果它旁边没有 TICK,请单击它。Apache 将被弹跳(停止,启动)。再试一次。

The rewite engine will not work without the required module loaded.

如果没有加载所需的模块,重写引擎将无法工作。

回答by tuliomarchetto

Is quite common to use the deflate tag invoking some filters. Like this:

使用 deflate 标签调用一些过滤器是很常见的。像这样:

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript image/svg+xml
</IfModule>

If the Deflate Moduleis enabled, but not Filter Module, you will also get the error 500.

如果启用了Deflate 模块,但未启用Filter Module,您也会收到错误 500。