Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Apache9019

macrumors newbie
Original poster
Jan 31, 2015
1
0
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
 
In Terminal you should be able to start Apache with:

sudo apachectl start

And use "sudo apachectl stop" to stop it.

Using "localhost:80" in your browser should bring up "It works!" if it's running.

This is with the defaults as it ships, I believe.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.