php开发遇到的问题

一、xampp mac apache 无法启动:

参考解决方案:

1.查看端口是否被占用 

sudo lsof -i -n
 
2.用终端运行xampp,查看具体的错误
sudo su
/Applications/XAMPP/xamppfiles/xampp start
 
多半是这个问题:
XAMPP: Starting Apache...fail.
XAMPP:  Another web server is already running.
 
解决办法:
sudo apachectl stop
// This command killed Apache server that was pre-installed on MAC OS X.
 
 
 
参考:http://stackoverflow.com/questions/4582504/xampp-apache-webserver-localhost-not-working-on-mac-os
posted @ 2016-11-06 17:19  Aaronqcd  阅读(115)  评论(0编辑  收藏  举报