Why won't Apache work on mac?

Discussion in 'Mac Basics and Help' started by Apache9019, Jan 31, 2015.

  1. Apache9019 macrumors newbie

    Jan 31, 2015
    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?

  2. robgendreau macrumors 68040

    Jul 13, 2008
    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.

Share This Page