【问题标题】:WAMP Internal Server ErrorWAMP 内部服务器错误
【发布时间】:2012-11-19 14:35:01
【问题描述】:

我下载并安装了 WAMP。在 phpMyAdmin 中导入我的数据库并尝试通过我的浏览器启动该网站:http://localhost/myWebsite/index.php

我收到以下错误消息:

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.

更新我检查了日志,我看到的所有错误都是:

127.0.0.1 - - [19/Nov/2012:14:40:14 +0000] "GET /myWebsite/index.php HTTP/1.1" 500 528

【问题讨论】:

    标签: phpmyadmin wamp


    【解决方案1】:

    根据您的错误日志更新和您收到的错误消息,这是一个HTTP Error 500,表示服务器知道它遇到了错误或无法执行请求。..

    您需要检查您的代码和驻留在您服务器上的任何 .htaccess 文件..

    【讨论】:

      【解决方案2】:

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

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

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

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

      【讨论】:

        【解决方案3】:

        当然,找到您的服务器日志,它们应该提供一些详细信息。

        【讨论】:

        • 这还不是很远,尝试在你的 htaccess 文件中启用 mod rewrite uncomment #LoadModule rewrite_module modules/mod_rewrite.so
        • www 文件夹中有数十亿个 htaccess 文件。你能澄清一下是哪一个吗?
        • 对不起,我的意思是 httpd.conf,应该是 wamp 安装 apache 的地方。
        • 好的。我打开了文件。您能否再次明确说明我需要做什么?你之前的帖子对我来说没有多大意义。非常感谢您的帮助。
        • 是的,当然,您应该会在其中看到一行: #LoadModule rewrite_module modules/mod_rewrite.so ,只需删除 #
        猜你喜欢
        • 1970-01-01
        • 2012-08-13
        • 1970-01-01
        • 1970-01-01
        • 2015-02-25
        • 1970-01-01
        • 1970-01-01
        • 2015-02-15
        相关资源
        最近更新 更多