Search code examples
phpapacheosx-yosemite

sudo apachectl start not working on OS X Yosemite


I type in the command and i get this message

/System/Library/LaunchDaemons/org.apache.httpd.plist: Operation already in progress

So on safari i load the http://localhost page and it gives me the error message Safari can't connect to the server "localhost".

I'm new to this so don't have much knowledge on this but the reason i want to log in to this is to run my php scripts and test my websites on my laptop.

Ever since the os upgrade from mavericks to yosemite i couldn't run any php scrip.


Solution

  • First check config syntax

    Run this command:

    apachectl configtest
    

    Check this post: http://mallinson.ca/osx-web-development/ (Section Apache, on yellow background you have info about OS X 10.10)