Apache XAMPP 5.5.28没有';不能在OSX10.11上工作
我的iMac操作系统昨晚升级到OS X El Capitan(10.11版) 我使用XAMPP5.5.28。MySQL和ProFTPD正在工作,但Apache Web服务器在升级后无法工作 即使应用程序日志显示Apache XAMPP 5.5.28没有';不能在OSX10.11上工作,apache,xampp,osx-elcapitan,Apache,Xampp,Osx Elcapitan,我的iMac操作系统昨晚升级到OS X El Capitan(10.11版) 我使用XAMPP5.5.28。MySQL和ProFTPD正在工作,但Apache Web服务器在升级后无法工作 即使应用程序日志显示 Starting Apache Web Server... /Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started 然后尝试在终端上启动它 $ sudo /Applications/XAMPP/xamp
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
然后尝试在终端上启动它
$ sudo /Applications/XAMPP/xamppfiles/bin/httpd
(48)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(48)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
我检查了是否有其他应用程序使用相同的端口
$ netstat -anp tcp | grep :80
什么都不用
无论如何,为了避免这个错误,我将端口80更改为8888
$ vi /Applications/XAMPP/etc/httpd.conf
然后再次尝试在终端上启动web服务器,结果成功了
现在想知道
80
? sudo su -
cd /etc/apache2/
apachectl start
apachectl stop
exit
然后转到XAMPP并尝试从那里启动apache。你真是棒极了!它确实奏效了!太好了,对我有用。我已经安装了symfony3,然后用XAMP在我的mac上为它创建了虚拟主机。一切正常,重启MAC后,出现了这个错误。在论坛上搜索了很多之后,我来到了这个帖子,它解决了这个问题。
sudo su -
cd /etc/apache2/
apachectl start
apachectl stop
exit