简体   繁体   English

wamp server 500内部服务器错误

[英]wamp server 500 internal server error

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. 请通过admin @ localhost与服务器管理员联系,告知他们此错误发生的时间以及您在此错误发生之前执行的操作。 More information about this error may be available in the server error log. 服务器错误日志中可能提供了有关此错误的更多信息。

What is the solution! 解决办法是什么!

i will be thankful 我会很感激的

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

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

Re: 500 Internal Server Error Re: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. 如果旁边没有TICK,请单击它。 Apache will be bounced ( stop, start ). Apache将被退回(停止,开始)。 Try again. 再试一次。

The rewite engine will not work without the required module loaded. 如果没有加载所需的模块,重启引擎将无法工作。

Is quite common to use the deflate tag invoking some filters. 使用deflate标签调用某些过滤器是很常见的。 Like this: 像这样:

<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 Module is enabled, but not Filter Module , you will also get the error 500. 如果启用了Deflate模块 ,但未启用过滤器模块 ,则还会收到错误500。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM