MAMP not starting Apache server on El Capitan 10.11.1

别来无恙 提交于 2019-12-03 16:28:07

I ran into the same problem as well after upgrading Mavericks to El Capitan. Mysql did start, but Apache failed starting. I'm running MAMP 3.0.5 (regular version).

I managed to fix this issue by renaming a file in the folder /Applications/MAMP/Library/bin. Rename envvars to _envvars and restart Apache. This made Apache running again on my machine.

Ok im new here but i figured it out.

sudo apachectl stop

Just ran that command.

Try copying the pre update version of your httpd.conf file and restarting apache as recommended above.

sudo cp /private/etc/apache2/httpd.conf.pre-update /etc/apache2/httpd.conf
sudo apachectl restart

This worked for me. I had issues getting MAMP (Pro) to start Apache and when it was running it took a while to shutdown Apache, which is odd since it didn't start.

I blame El Capitan, always blame the captain if things go wrong. Except Captain Morgan, that's your own fault.

Reinstalling MAMP was the easiest way for me as terminal still scares me. But make sure you follow the steps below so you don't lose all of your files and databases!

1. Rename your MAMP folder in Applications/ to "MAMPOLD" so that you don't overwrite your htdocs and databases.

2. Downloaded and install a fresh copy of MAMP from https://www.mamp.info/en/.

3. Replace the 'htdocs' and 'db' folders in your newly installed MAMP with the ones from your "MAMPOLD" folder.

Note that for the db folder I just transferred any folders and files that didn't exist in the new db folder so I didn't replace anything important. This may not be necessary but I didn't want to risk it.

4. Finally when you launch MAMP again you may have to change the ports to default if it isn't working. I had them orginally set to 80 and 3306 which is no longer working so now I have to put up with seeing localhost:8888 which is annoying but at least it's working! If anyone can help me with this I would be grateful.

I found that the ServerRoot in http.conf used the path "/usr" Most Macs use "/users". Soon as I changed it and restart apache MAMP went live

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