Unable to start XAMPP Apache server on MacOS-Sierra

僤鯓⒐⒋嵵緔 提交于 2020-01-20 19:18:18

问题


Whenever I'm trying to start my Apache server from XAMPP on my Macbook (MacOS-Sierra) . I'm getting following application log :

Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started

And status remains Stopped. I re-install XAMPP and restarted my laptop multiple times, but I'm still having same issue. Couldn't find anything help to resolve this issue.


回答1:


I found the solution:

  1. Make sure port 80 is not being used (Use Network Utility and scan for port 80. If you found any application using port 80, then kill it)
  2. Open terminal and execute

    sudo apachectl stop 
    

    (ignore, if you get any error)

  3. On the same terminal window execute

     sudo /Applications/XAMPP/xamppfiles/bin/apachectl start
    
  4. Open XAMPP control panel, your apache server might have started by now, if not then you can start manually by clicking start button.

This worked for me!!




回答2:


Another related issue, which I faced caused Apache sever failure. And failure logs is :

[Sun Jul 30 12:43:58.747822 2017] [unique_id:alert] [pid 9188] (EAI 8)nodename nor servname provided, or not known: AH01564: 
unable to find IPv4 address of "MacBook-Pro.local" AH00016: Configuration Failed

To solve this :

  1. Executed following command

    sudo -e /etc/hosts
    
  2. Then, changed following entries

    127.0.0.1    localhost
    ::1    localhost
    

    to

    127.0.0.1    localhost MacBook-Pro.local
    ::1    localhost MacBook-Pro.local
    



回答3:


I had the same issue when I update my XAMPP app, if you have to do this, you first have to uninstall your XAMPP (save your HTDOCS files in another folder, NOT in XAMPP folder, or you will lose it), and after that you can install the newest version of XAMPP. It worked for me, hope for you too.




回答4:


Simply goto your terminal and type:

sudo apachectl stop 

It'll ask for password. Enter your system password.

Go back to XAMPP control panel and start Apache. It should get started now.




回答5:


I had the same Problem and fixed it by deleting the lib folder in Applications/XAMPP/xamppfiles/ and installing XAMPP again. It's probably due to old lib files from previous versions not being updated properly.



来源:https://stackoverflow.com/questions/37888222/unable-to-start-xampp-apache-server-on-macos-sierra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!