Apache Server Won't Start in MAMP

前端 未结 10 877
灰色年华
灰色年华 2021-02-02 11:10

Apache server won\'t start when in MAMP. Here are the error logs:

[Wed Aug 01 21:07:34 2012] [notice] Digest: generating secret for digest authentication ...
[W         


        
相关标签:
10条回答
  • 2021-02-02 11:51

    If your existing MAMP PRO suddenly won't start Apache anymore, then it might be an error in vhosts settings which is not visible.

    There is often no indication in apache_error.log - it just comes up with the message.

    Apache wasn't able to start. Please check log for more information.
    

    In my case it was a wrong path in Customized virtual host settings such as

    Include /path/to/project/rewrite.conf
    

    Vhost config is saved in ~/Library/Application Support/appsolute/MAMP PRO/httpd.conf so you can check the settings there.

    0 讨论(0)
  • 2021-02-02 11:51

    I found a Solution:

    JUST:

    in /Applications/Mamp/Library/bin, find the file envvars and rename it to _envvars.

    0 讨论(0)
  • 2021-02-02 11:51

    this issue comes to me today … after trying several solutions, i found this dialog message may appear if MAMP no longer finds a certificate used by a securized localhost. So be careful to keep them in a place you won't move or delete.

    hope it helps

    0 讨论(0)
  • 2021-02-02 11:54

    I encountered this same issue with the same log output above, but did not need to reinstall MAMP to solve the issue in my case. When I encountered this error it was related to one of the hosts I had set up. Click the Hosts tab and see if any of your hosts appear in red:

    enter image description here

    The host in red required SSL certificates. In the configuration I did not have valid references to the required certificates after I had altered the file structure of my application. After fixing this issue and applying changes the host was no longer highlighted in red, and I was able to start Apache through MAMP.

    Additionally, you can ensure that the problem doesn't have to do with your Apache client itself by running this command in terminal:

    sudo /Applications/MAMP/Library/bin/apachectl restart
    

    OR

    sudo /Applications/MAMP\ PRO/Library/bin/apachectl restart
    

    If you are able to start Apache in terminal, you have ruled out that you have an error with MAMP's Apache client itself.

    0 讨论(0)
  • 2021-02-02 11:54

    Instead of reinstalling mamp I did the following:

    1. Moved back to default mamp ports
    2. Started mamp   
    3. Stopped mamp 
    4. Went back to ports 80 443 3306
    

    and it started working.

    0 讨论(0)
  • 2021-02-02 11:59

    Change the name of the file envvars to _envvars in /Applications/MAMP/Library/bin , thats it .

    0 讨论(0)
提交回复
热议问题