2009
26
Sep
Category: Misc, PHP

I have been playing with Codeigniter a lot lately. I was in the middle of working on something when MAMP gave me a 403 error.

The error was “403 Forbidden You don’t have permission to access / on this server” Navigating to any folder would give me the 403 error as well, even http://localhost:8888/MAMP/?language=English.

This was a pretty simple issue to correct. Not simple enough at the time though

  1. Stop all MAMP servers (Apache and MySQL Server)
  2. Navigate to Applications/MAMP/conf/apache
  3. Open httpd.conf
  4. You can probably open it with TextEdit. I opened it with Dreamweaver. Just make sure TextEdit is editing it in plain text format and not rich text format.
  5. Find the following section of code (on mine it was on line 378):
    <Directory />
    Options Indexes FollowSymLinks
    AllowOverride All
    </Directory>
  6. Change “AllowOverride All” to “AllowOverride None
  7. Save the file
  8. Start MAMP and test the pages.

If that doesn’t work for you, you can always Google it. The MAMP forums have a lot of posts about it.

There are 9 comments so far

1
November 16, 2009 @ 5:13 pm
Eugene wrote:

You are a lifesaver. I somehow screwed up my MAMP and the modification above worked! Thank you!

2
January 7, 2010 @ 8:44 pm
omi wrote:

Thanks a lot. You save my day!

3
February 14, 2010 @ 10:26 am
Jackie wrote:

And another satisfied customer!

Thanks for this fix – I was resigning myself to 5 hours of fixing MAMP rather than 5 hours of client work!

4
February 24, 2010 @ 10:35 pm

Thank you for sharing this! I have been using MAMP for years and somehow I broke it. After trying many other methods I finally found this and it worked for me. Whew, I can get back to work!

5
March 15, 2010 @ 10:12 pm

Thanks for a direct answer on this…

I was playing around with my development environment on my local machine and this suddenly stopped working…

I’m not sure why it happened, but I appreciate a quick answer to exactly the problem I was having…

Saved me the time of thinking (Which is hard… hehe) so you rock!

I’m not sure how my httpd.conf file would have changed though because I don’t recall upgrading lately… oh well…

Thanks for the quick answer to the problem your Kung-Foo is great!

6
April 19, 2010 @ 9:22 pm
5-squared wrote:

Dude, thank you so much!!

I’ve been sitting here for over an hour trying to figure this out.

Followed your steps and it worked like a charm!

Thank you!!

7
June 1, 2010 @ 6:21 am

Thank you soooooo much!!!!!!

8
June 14, 2010 @ 9:08 pm
Ethan wrote:

Lifesaving tip! I have no idea what caused the Forbidden screen to start coming up, and I’m stoked I found your fix before spending all night trying to figure it out!

9
July 26, 2010 @ 1:05 pm
kasie wrote:

thank you so much, this fixed my problem quickly!

Add a Comment

Allowed tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">