【问题标题】:xampp not working on windows 7 - Windows 7 Forumsxampp 无法在 Windows 7 上运行 - Windows 7 Forums
【发布时间】:2011-12-01 16:39:51
【问题描述】:

我在 Windows 7 中安装的 xampp 1.7.4 似乎无法正常工作。 http://localhost 返回未找到错误。

Xampp 控制面板显示 mysql 和 apache 服务运行良好。

过去 2 周以来一直很沮丧,无法找到解决方案。任何指点和支持将不胜感激!

【问题讨论】:

  • 你检查你的 apache 配置了吗? httpd.conf 文件中的 ServerRoot 和 DocumentRoot 属性都需要指向正确的目录才能正常工作。
  • ServerRoot "/xampp/apache" 和 DocumentRoot "/xampp/htdocs" 是对的..
  • 不确定这是否会对您的情况产生影响,但我正在使用以下格式定义这些属性:ServerRoot "C:/xampp/apache/" -- 唯一的区别是我指定了驱动器号。看看有没有帮助。
  • 如果您收到404 not found 错误,您可能放错了index.html 或全部丢失。

标签: xampp


【解决方案1】:

您的计算机上是否正在运行 Skype 或类似软件?除非您在其设置中明确更改,否则 Skype 使用默认的 http 和 https 端口 80 和 443。

【讨论】:

    【解决方案2】:

    正如我所见,这是 Windows 7 和 Vista 的常见“问题”——在某些情况下,这些系统不知道“localhost”。尝试使用http://127.0.0.1 或在文件 C:\Windows\System32\drivers\etc\hosts 中添加一行 这一行是:

    127.0.0.1 本地主机

    【讨论】:

      【解决方案3】:

      你检查防火墙了吗?或者,如果您破坏了 Windows 防火墙(有时在 Windows 7 中无法停止甚至打开防火墙),这可能是原因。

      【讨论】:

        【解决方案4】:

        默认情况下,此链接应该有效:ServerName http://localhost:80

        至少它在 http.conf 中是这样的。检查您是否设置了正确的方式(或到另一个端口,如 8080)

        【讨论】:

          【解决方案5】:

          退出 Skype,再次启动 xampp,重新启动 apache,再次运行 Skype。现在你的 apache 服务器和 Skype 都可以正常运行了 :)

          【讨论】:

            【解决方案6】:

            在 win7 中,您的 IIS 在端口号 80 上运行,这也是 Apache 服务器的默认端口

            按照步骤进行

            1. Open httpd.conf in the conf folder of apache folder
            2. Find Line "Listen 80" and change it to any other port say 8800
            3. see if the file exists httpd.conf.build, if yes change in that too
            4. restart the server and you are done
            
            Do check all the app that uses internet and see what all app you have
            installed uses port 80, in case the above steps don't work.
            

            【讨论】:

              【解决方案7】:

              Localhost 使用默认端口 80。如果您在 httpd.conf 中将其更改为 8080。然后你也可以使用http://localhost:8080查看它

              【讨论】:

                【解决方案8】:

                很久以前我遇到过类似的问题,我在我的博客上描述了它(注意:使用 Skype 可能是一个问题,但我当时没有安装了 Skype ):

                http://paweln66.wordpress.com/2013/08/11/why-xampp-and-wampserver-doesnt-works-under-windows-7/

                在那里你可以找到:

                1. 无法正常工作的可能原因说明:问题通常与 Windows 7 相关
                2. 两种解决方案如何启用 XAMPP“快速”且更高级,而不禁用其他服务

                请阅读这篇文章,然后一切都应该清楚了!

                希望对你有帮助……

                【讨论】:

                  【解决方案9】:

                  如果您改用 EasyPhp 会怎样?我在 Windows 7 上使用它,没问题,现在 xdebug 也可以开箱即用了

                  【讨论】:

                    猜你喜欢
                    • 2014-02-16
                    • 2013-02-12
                    • 2011-02-06
                    • 2015-10-13
                    • 1970-01-01
                    • 2014-01-30
                    • 2015-01-06
                    • 2010-12-26
                    • 1970-01-01
                    相关资源
                    最近更新 更多