Mac Apache web server won't start anymore and can't find any web directories

后端 未结 6 1582
广开言路
广开言路 2021-02-09 01:07

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\

相关标签:
6条回答
  • 2021-02-09 01:44

    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
    

    This allowed XAMPP to start on 80, while POW runs on 20559.

    0 讨论(0)
  • 2021-02-09 01:44

    In my previous experience running the command apachectl configtest will show any configuration errors you might have. If everything is ok it will print Status OK, otherwise it will show you the config error(s). Fix those and then retry apachectl start.

    0 讨论(0)
  • 2021-02-09 01:50

    I have found a command that should locate your issue(s). In the Terminal enter: apachectl configtest

    0 讨论(0)
  • 2021-02-09 01:53

    You have to run the command as the root user.

    sudo apachectl stop
    
    sudo apachectl start
    
    0 讨论(0)
  • 2021-02-09 01:55

    I solve it with following code in terminal. You can try it.

    sudo /Applications/XAMPP/xamppfiles/bin/apachectl start sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start

    0 讨论(0)
  • 2021-02-09 02:01

    This worked for me:

    sudo launchctl load -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.apple.serviceproxy.plist
    
    0 讨论(0)
提交回复
热议问题