XAMPP 运行错误 “Apache shutdown unexpectedly.”

用Eclipse调试PHP,默认是使用XAMPP作为AMP环境,下载Portable版本XAMPP,运行:“xampp_start.exe”提示错误:
Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Check the "/xampp/apache/logs/error.log" file and the Windows Event Viewer for more clues

找了一圈,没找到真正原因,最后回头看readme,
[NOTE: Unpack the package to your USB stick or a partition of your choice.
There it must be on the highest level like E:\ or W:. It will
build E:\xampp or W:\xampp or something like this. Please do not use the "setup_xampp.bat" for an USB stick installation!]

已经提示必须安装在根目录下,移动目录到根目录,就可以成功启动XAMPP。

XAMPP提供了面板xampp-control,集成了一些小工具还是蛮实用的,比如netstat,显示所有端口占用情况。

相关推荐