我已经在Windows 7上成功安装了XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe)。但不幸的是,从XAMPP控制面板运行Apache时发现以下错误:
5:38:38 PM [Apache] Error: Apache shutdown unexpectedly.
5:38:38 PM [Apache] This may be due to a blocked port, missing dependencies,
5:38:38 PM [Apache] improper privileges, a crash, or a shutdown by another method.
5:38:38 PM [Apache] Press the Logs button to view error logs and check
5:38:38 PM [Apache] the Windows Event Viewer for more clues
5:38:38 PM [Apache] If you need more help, copy and post this
5:38:38 PM [Apache] entire log window on the forums
发布于 2014-03-14 08:50:42
Windows下的XAMPP控制面板并不总是反映实际发生的情况,除非您通过“以管理员身份运行”来启动它。
发布于 2013-08-01 02:45:27
你执行过"setup_xampp.bat“脚本吗?它在XAMPP文件夹中,每次更改XAMPP文件夹时都必须执行它。
发布于 2014-02-26 02:39:56
进入xampp/apache/conf/httpd.conf并打开它。然后只需更改2行
Listen 80
to
Listen 81
和
ServerName localhost:80
to
ServerName localhost:81
然后开始使用管理员权限。
当我在一个开发人员面临防火墙问题的企业环境中工作时,其他答案都没有解决我的问题。
由于该端口不是由Skype使用,而是由其他一些内部应用程序使用,因此我按照以下步骤来解决此问题:
步骤1-从XAMPP控制面板中的Apache下,单击Config按钮,然后选择Apache (httpd.conf)。
在httpd.conf文件中,不知何故我发现了一行内容:
监听80,并将80更改为您想要的任何数字/端口。在我的场景中,我使用端口8080。
仍然从httpd.conf文件监听8080,
您还应该在相同的过程中执行此操作,仍然是在httpd-ssl.conf文件中,找到另一行
ServerName本地主机: 443,并将443更改为4433。
httpd.conf :4433Htpdlocalhost:4433记得在执行一些更改后保存httpd.conf和ServerName -ssl.conf文件。然后重新启动Apache服务。
https://stackoverflow.com/questions/17946150
复制相似问题