stringRay2014
stringRay2014

Reputation: 646

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.

Upvotes: 12

Views: 22812

Answers (5)

robbymarston
robbymarston

Reputation: 356

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.

Upvotes: 3

Santos L. Victor
Santos L. Victor

Reputation: 658

try this:

launchctl start localhost

Upvotes: 1

Paul
Paul

Reputation: 21

run "sudo apachectl -k start", it works for me

Upvotes: 2

Knight
Knight

Reputation: 19

"httpd.conf" file

Option FollowSymLinks Multiviews --->>> Options Indexes FollowSymLinks Multiviews

must be OK

Upvotes: 1

kubens
kubens

Reputation: 264

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)

Upvotes: 17

Related Questions