Why won't Apache Server start in MAMP?

Apache9019 picture Apache9019 · Jan 31, 2015 · Viewed 56.1k times · Source

I'm trying to view php files locally on my mac.

I'm running Yosemite.

I have MAMP installed on my computer. When I press start the MySQL server starts but Apache doesn't. An error message appears saying 'Error. Apache couldn't be started. Please check your MAMP installation'

I've gone through the internet typing stuff into terminal and changing 'envvars' to '_envvars' but nothing works.

I reinstalled OSX and that worked but when I shut down the computer the problem occurs again.

Can anyone help?

Thanks

Answer

Victor Rius picture Victor Rius · Nov 13, 2015

Check if you changed the Document Root Location or Renamed it. At least this was my mistake.

MAMP > Preferences > Web Server > Document Root