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.
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)
I had to uncomment (remove the #
character) the line "LoadModule php5_module...
" in /etc/apache2/httpd.conf
to re-enable PHP after upgrading, you may have to as well.
run "sudo apachectl -k start", it works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With