marchello
marchello

Reputation: 2136

install wordpress locally on OS X without MAMP (permission error)

I'm trying to install wordpress locally on a mac with the built in stuff (apache/php) without installing MAMP. basically I'm following this tutorial:

https://gist.github.com/1500117

after editing the httpd.conf file, and restarting apache, I get this error in the browser:

Forbidden
You don't have permission to access / on this server.

Any ideas? I'm using Snow Leopard

Upvotes: 0

Views: 2717

Answers (3)

marchello
marchello

Reputation: 2136

well it seams I found what caused the problem. the Sites folder, where I put the wordpress folder had permissions 750, after changing it to 751, now it works. is this a proper solution or I should keep digging?

Upvotes: 1

Camden S.
Camden S.

Reputation: 2245

Try typing http://your-host-name/index.php

If that fixes it, then your DirectoryIndex directive (in httpd.conf) needs to be changed to DirectoryIndex index.html index.php

If that does not fix it, type tail -f /var/log/apache2/error_log at the console and look at the terminal screen while you hit http://your-host-name/index.php in your browser. It may tell you what the problem is. If not, paste the last few lines of the log file up here and I'll look at it for you.

Upvotes: 0

Chris Wiegman
Chris Wiegman

Reputation: 382

While there are a lot of variables to check here, the two biggest are the server root (make sure the case of all the path elements is correct) and the user permissions/owner of the WordPress files themselves.

All that said, why not use MAMP for this kind of situation?

Upvotes: 0

Related Questions