![](/img/trans.png)
[英]I am running some PHP on Apache using XAMPP, It works perfectly on my friends mac but doesn't work on my Windows 8
[英]I am not able to Start Apache on XAMPP on my system windows 7 32 bit
我无法在我的系统 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
Checking default ports...
Executing "net start "Apache2.4""
Return code: 0
我认为我的系统缺少 Apache 服务器用来运行的端口 80 - 即使我在我的系统上检查过它,但我的系统上没有这样的端口 80。
如何解决这个问题?
终止/退出使用端口 80 的skype
和其他程序等程序,然后启动appache server
希望这将启动服务器。 一旦 appache 服务器启动,您就可以启动 Skype 或其他程序。
或者甚至您可以更改 appache 服务器的端口。 您可以按照此链接更改服务器端口。
如何更改 XAMPP apache 服务器端口?
跳这会帮助你。
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 位置不在 xampp 文件夹中。 尝试重新安装或更改配置。
我在 Windows 10 环境中遇到过这个问题。 我发现我在我的一个不存在的虚拟主机中使用新的SSLCertificateFile
或SSLCertificateKeyFile
配置了C:\\xampp\\apache\\conf\\extra\\httpd-xampp.conf
。
所以在我的 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,以完全删除所有相关文件以及注册表文件! 这很重要,因为我之前必须这样做一次,但卸载程序由于某种原因无法正常运行。
无论如何,完全卸载它并重新安装它,保留所有默认设置使其再次工作。 我知道这听起来如何……删除并重新安装,但它最终使我的服务器运行起来,因此它可以作为您和任何找到这篇文章的人的解决方案。 Apache 和我的 SQL 服务器运行时没有抛出错误的图像。
另外,我最近发现了这一点:如果您正在通过 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 。
将此用作其他问题的资源: http : //httpd.apache.org/docs/2.4/mod/directives.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.