Why won't Apache work on mac?

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

  1. Apache9019 macrumors newbie

    Joined:
    Jan 31, 2015
    #1
    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
     
  2. robgendreau macrumors 68030

    Joined:
    Jul 13, 2008
    #2
    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