Mac Apache Web服务器将无法启动,也无法找到任何Web目录
我使用的是Mac Yosemite 10.10.5. Apache Web服务器突然不再启动.我尝试将端口更改为8080.还尝试了sudo apachectl stop和sudo apachectl start.仍然无法打开.
I'm on Mac Yosemite 10.10.5. Apache web server suddenly no longer starts. I tried changing the port to 8080. Also tried sudo apachectl stop and sudo apachectl start. Still won't open.
我认为添加新打印机并启用打印共享后可能会发生这种情况.我将其关闭,但仍然无法启动.我不记得我执行了哪个命令,该命令给了我更多详细信息.
I thought this may have happened after adding a new printer and enabling print sharing. I turned that off and it still won't start. I can't remember which command I ran that gave me this message with some more details.
更新:当我使用sudo apachectl start
时,我注意到即使接口仍然显示STOPPED,也可以通过浏览器访问服务器,但是当我进入localhost/webdirectory时,却找不到.
UPDATE: When I use sudo apachectl start
, I noticed the server is accessible through the browser even though the interface still says STOPPED, but when I go to localhost/webdirectory I just get not found.
经过48小时的研究,我找到了这个可行的解决方案,我找到了解决方案
After 48 hours of research, I found this working solution, I found the solution here: disable OSX's built-in Apache server.
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
这允许XAMPP从80开始,而 POW 在20559上运行.
This allowed XAMPP to start on 80, while POW runs on 20559.