Ish*_*gra 27 windows apache xampp port
刚刚在我的Windows 8 PC上安装了XAMPP 1.8.1,此版本包括下面提到的软件包:
Apache 2.4.3
MySQL 5.5.27
PHP 5.4.7
phpMyAdmin 3.5.2.2
FileZilla FTP Server 0.9.41
Tomcat 7.0.30 (with mod_proxy_ajp as connector)
Strawberry Perl 5.16.1.1 Portable
XAMPP Control Panel 3.1.0 (from hackattack142)
Run Code Online (Sandbox Code Playgroud)
当我启动并尝试启动Apache时,它出现以下错误:
12:04:41 PM [Apache] Attempting to start Apache app...
12:04:41 PM [Apache] Status change detected: running
12:04:42 PM [Apache] Status change detected: stopped
12:04:42 PM [Apache] Error: Apache shutdown unexpectedly.
12:04:42 PM [Apache] This may be due to a blocked port, missing dependencies,
12:04:42 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:04:42 PM [Apache] Check the "/xampp/apache/logs/error.log" file
12:04:42 PM [Apache] and the Windows Event Viewer for more clues
Run Code Online (Sandbox Code Playgroud)
之后我检查了error.log,它是空的,所以没有帮助.
Ish*_*gra 54
所以这是解决方案:
我检查80Skype使用的端口,之后我将端口更改为81并且还在我读取此错误的地方可能是因为SSL端口然后我将SSL端口更改为444.然而,这很容易解决.
这里要注意的一件最重要的事情是,所有端口更改都应该在配置文件中完成,用于http端口更改:SSL httpd-ssl.conf的httpd.conf.否则更改将不会复制到Apache,有时也需要重新启动PC.
编辑:使Apache使用端口80并使Skype在其他端口上进行通信
对于那些正在与Skype斗争的人来说,想要改变它的端口并让Apache使用端口80.
无需重新安装,这里只是如何更改Skype端口
Goto: Tools > Options > Advanced > Connection
Run Code Online (Sandbox Code Playgroud)
在那里,您需要uncheck 使用端口80和443作为传入连接的替代方案.
就是这样,这里是它的屏幕截图.

Pup*_*pil 20
由于apache没有获得所需端口(默认为80),可能会出现此问题.
该端口可能正被其他服务使用.
例如:Skype也有默认端口80.
在同一台机器上安装Skype和Apache会导致冲突,因此Apache无法启动.
您可以更改Skype端口或更改Apache端口,如以下步骤所述:
更改Apache的端口,它将适合您.转到httpd.conf
如何更改Apache的端口:
搜索:
ServerName localhost:80
将其更改为:
ServerName localhost:81
还搜索:
听80
将其更改为:
听81
如果您已创建任何虚拟主机,请同时更改其中的端口.然后重启你的apache.
我遇到了同样的问题,但我知道VMware服务就是问题所在.VMware主机服务和Apache服务冲突在一起.
解决问题 »运行您的任务管理器»在服务选项卡中找到VMwareHostd»然后右键单击并停止它»所有事情都已解决.