【问题标题】:I am not able to Start Apache on XAMPP on my system windows 7 32 bit我无法在我的系统 windows 7 32 位上的 XAMPP 上启动 Apache
【发布时间】:2016-07-03 13:20:48
【问题描述】:

我无法在我的 Windows 7 32 位系统上通过 XAMPP 运行/启动 Apache。问题是安装后一切正常,但 Apache 没有运行或启动。

得到以下错误信息:-

初始化控制面板 Windows 版本:Windows 7 Ultimate 32-bit 正在初始化模块... 正在检查模块是否存在... 正在检查所需的工具... 检查服务(name="Apache2.4"):已安装服务 错误消息:检测到 Apache 服务路径错误 更改 XAMPP Apache 和控制面板设置或 首先手动卸载/禁用其他服务 找到路径:“C:\Apache24\bin\httpd.exe”-k runservice 预期路径:“c:\xampp\apache\bin\httpd.exe”-k

Checking default ports...
Executing "net start "Apache2.4""
Return code: 0

我认为我的系统缺少 Apache 服务器用来运行的端口 80 - 即使我在我的系统上检查了它,但我的系统上没有这样的端口 80。

如何解决这个问题?

【问题讨论】:

  • 与php无关,但是,你有Skype运行吗?如果是这样,请尝试关闭Skype,我不是注销,右键单击进程栏中的Skype图标并选择“退出”,现在尝试再次启动apache
  • 我喜欢关于missing Port 80 的部分。你试过看电脑机箱吗?
  • 我的系统上没有安装Skype
  • 还是没有答案?

标签: apache xampp


【解决方案1】:

终止/退出像skype这样的程序和其他使用80端口的程序然后启动appache server希望这会启动服务器。一旦 appache 服务器启动,您就可以启动 Skype 或其他程序。
甚至您可以更改 appache 服务器的端口。您可以点击此链接更改服务器端口。
How to change XAMPP apache server port?
跳这对你有帮助。

【讨论】:

  • 我的系统上没有安装Skype
  • 尝试更改端口号,然后检查。点击链接。
  • 退出xamp,然后像Run as Administrator一样启动xamp,然后启动Apache和mysql,它将运行服务。我相信这对你有用。
  • 嘿,我也试过了,但是 apache 也出现了同样的错误。我附上了上面的截图,请参阅
  • 重新启动系统并在启动任何程序之前重试。像防病毒软件、Skype 或其他。当您启动它提示访问的应用程序时,还允许 Apache 访问防火墙。
【解决方案2】:

端口 80 是一个虚拟端口。它正被其他程序使用。尝试在命令提示符下执行netsh。 最常见的问题是Skype。参考this问题解决。

【讨论】:

  • 我的系统上没有安装Skype
  • 然后使用netsh查看哪个程序在使用80端口
【解决方案3】:
Apache Service detected with wrong path Change XAMPP Apache and Control Panel settings or Uninstall/disable the other service manually first Found Path: "C:\Apache24\bin\httpd.exe" -k runservice Expected Path: "c:\xampp\apache\bin\httpd.exe" -k

您的答案是错误消息。安装的 apache 位置不在 xampp 文件夹中。尝试重新安装或更改配置。

【讨论】:

    【解决方案4】:

    我在 Windows 10 环境中遇到过这个问题。我发现我在其中一个不存在的虚拟主机中为C:\xampp\apache\conf\extra\httpd-xampp.conf 配置了新的SSLCertificateFileSSLCertificateKeyFile

    所以在我的 httpd-xampp.conf 我有以下内容:

    ## mywebsite.local config
    <VirtualHost *:80>
        DocumentRoot "C:/xampp/htdocs/mywebsite.local"
        ServerName mywebsite.local
        ServerAlias *.mywebsite.local
    </VirtualHost>
    <VirtualHost *:443>
        DocumentRoot "C:/xampp/htdocs/mywebsite.local"
        ServerName mywebsite.local
        ServerAlias *.mywebsite.local
        ## these lines are for my local SSL, here is the issue
        SSLEngine on
        SSLCertificateFile "crt/mywebsite.local/server.crt" ## this path may not exist
        SSLCertificateKeyFile "crt/mywebsite.local/server.key" ## or even this line may not exist
    </VirtualHost>
    

    我发现SSLCertificateFileSSLCertificateKeyFile 的路径不存在。

    我已经修复了它,但它不起作用。

    一切顺利!

    【讨论】:

      【解决方案5】:

      我的系统 Windows 10 64bit 上遇到了完全相同的问题。我意识到我已经按照我正在学习的安全课程编辑了 httpd.conf 文件,这导致我的配置错误。

      我的解决方法是从位于 XAMPP 文件夹中的 XAMPP 卸载程序中卸载 XAMPP,以完全清除所有相关文件以及注册表文件!这很重要,因为我之前必须这样做一次,但卸载程序由于某种原因无法正常运行。

      无论如何,完全卸载它并重新安装它,保留所有默认设置使其再次工作。我知道听起来如何...删除并重新安装,但它终于让我的服务器运行了,所以它可以作为你和任何找到这篇文章的人的解决方案。 Image of the Apache and my SQL server running without throwing errors.

      另外,我最近发现了这个: 如果您通过 stackskills 之类的网站学习使用 XAMPP,这些模块可能不会提醒您注意常见问题。例如,如果您需要将目录从 C:/XAMPP/Apache 更改为 C:/Hacking Software/XAMPP/Apache,(注意目录“HackingSoftware”的第一部分中的空格和缺少下划线,XAMPP 将读取第一个“空格”作为参数的结尾,因此您需要将整个目录写在这样的引号中:“C:/Hacking Software/XAMPP/Apache”或使用下划线 C:/Hacking_Software/XAMPP /阿帕奇。

      此语法也适用于“别名”命令的使用。有关详细信息,请参阅此链接:http://httpd.apache.org/docs/2.4/mod/core.html#directory

      将此作为其他问题的资源:@​​987654323@

      【讨论】:

        猜你喜欢
        • 2010-12-13
        • 2013-02-07
        • 2011-12-08
        • 1970-01-01
        • 1970-01-01
        • 2013-08-24
        • 1970-01-01
        • 2015-11-24
        • 2014-05-07
        相关资源
        最近更新 更多