我无法在windows 7 32位系统上的XAMPP上启动Apache

我无法在windows 7 32位系统上的XAMPP上启动Apache,apache,xampp,Apache,Xampp,我无法在windows 7 32位系统上通过XAMPP运行/启动Apache。问题是安装后一切正常,但Apache没有运行或启动 正在获取以下错误消息:- 正在初始化控制面板Windows版本:Windows 7 Ultimate 32位 正在初始化模块。。。 正在检查模块是否存在。。。 正在检查所需的工具。。。 检查服务名称=Apache2.4:已安装服务 错误消息:检测到Apache服务的路径错误 更改XAMPP Apache和控制面板设置或 首先手动卸载/禁用其他服务 找到路径:C:\Ap

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

正在获取以下错误消息:-

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

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


如何解决此问题?

终止/退出skype等使用端口80的程序,然后启动appache服务器,希望这样可以启动服务器。一旦appache服务器启动,您就可以启动skype或其他程序。甚至可以更改appache服务器的端口。您可以按照此链接更改服务器端口。
这将对您有所帮助。

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

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 loaction不在xampp文件夹中。尝试重新安装或更改配置

我在Windows 10环境中遇到了这个问题。我发现我已经在一个不存在的虚拟主机中配置了C:\xampp\apache\conf\extra\httpd-xampp.conf和一个新的SSLCertificateFile或sslcertificateKey文件

因此,在我的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>
我发现SSLCertificateFile和SSLCertificateKeyFile的路径不存在

我已经修好了,但还没修好


祝你一切顺利

我的系统Windows 10 64位也有同样的问题。我意识到我根据我正在学习的安全课程编辑了httpd.conf文件,这导致我的配置错误

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

无论如何,完全卸载并重新安装它,保留所有默认设置,使其再次工作。我知道这听起来怎么样。。。删除并重新安装,但它最终让我的服务器运行起来,所以它可以作为您和任何找到此帖子的人的解决方案

另外,我最近发现: 如果您正在通过stackskills等网站学习使用XAMPP,则这些模块可能不会提醒您常见问题。例如,如果需要将目录从C:/XAMPP/Apache更改为C:/Hacking Software/XAMPP/Apache,请注意目录HackingSoftware的第一部分中的空格和下划线,XAMPP将读取第一个空格作为参数的结尾,因此,您需要将整个目录用引号括起来,如:C:/Hacking Software/XAMPP/Apache,或者用下划线C:/Hacking_Software/XAMPP/Apache

此语法也适用于Alias命令的使用。有关详细信息,请参阅此链接:


将此用作其他问题的资源:

与php无关,但是,您是否运行skype?如果是这样,请尝试关闭skype,我不是说注销,右键单击进程栏中的skype图标并选择“退出”,现在尝试启动apache againI,这是关于缺少端口80的部分。您是否尝试查看计算机机箱?可能重复我的系统上没有安装skype仍然没有回答?我没有在系统上安装skype然后使用netsh检查哪个程序正在使用端口80。我的系统上没有安装skype尝试更改端口号,然后检查。按照链接进行操作。退出xamp,然后以管理员身份运行xamp,然后启动Apache和mysql,它将运行服务。我相信这会对你有用。嘿,我也试过了,但是apache也出现了同样的错误。我附上了上面的屏幕截图。请参阅重新启动系统,然后在启动任何程序之前重试。像抗病毒药物,skype或其他。在启动appache it访问提示时,还允许Apache访问防火墙。
## 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>