Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Local WordPress Development Local WordPress Development Installing a Local Web Server on a Mac

David Day
PLUS
David Day
Courses Plus Student 13,837 Points

403 Forbidden page

When you create the directory testsite.com and add the index.php test file into it, you get a Forbidden...You don't have permission to access / on this server. 403 page.

14 Answers

Matt Campbell
Matt Campbell
9,767 Points

Ludwing Najera - The naming convention used here is absolutely fine. Not a thing wrong with it. testsite.com is the directory for which the site files reside in. So, url to homepage will be

http://localhost/testsite.com/index.php

David Day - glad you've got it sorted. Ignore what Ludwing was saying, bad information offered there.

David Day
David Day
Courses Plus Student 13,837 Points

Thanks so much Matthew Campbell. I greatly appreciate it.

Ludwing Najera
Ludwing Najera
4,596 Points

i have done this before... tell me, did you update the website by moving the local public_html to the remote public_html

David Day
PLUS
David Day
Courses Plus Student 13,837 Points

Not to my knowledge. Where would I need to go to check this? My memory is kind of fuzzy as I set this up a while back and am just now being able to come back to it.

Ludwing Najera
Ludwing Najera
4,596 Points

do you know where the website files are?

David Day
PLUS
David Day
Courses Plus Student 13,837 Points

as of right now they are located in MAMP/htdocs/testsite.com/index.php. This is where I get the 403 page. If I delete the testsite.com directory and put it in MAMP/htdocs/index.php everything works fine.

Ludwing Najera
Ludwing Najera
4,596 Points

that website seems wierdly named... why dont you name testsite.com testsite.html

Ludwing Najera
Ludwing Najera
4,596 Points

if its php name it testsite.php

Ludwing Najera
Ludwing Najera
4,596 Points

if its php name it testsite.php

Ludwing Najera
Ludwing Najera
4,596 Points

if its php name it testsite.php

Ludwing Najera
Ludwing Najera
4,596 Points

holy crap that was wierd

David Day
PLUS
David Day
Courses Plus Student 13,837 Points

I am just following the Local WordPress Development class instructions to learn this. I am doing everything the video is telling me and it is not working out. Check out this video and you will see what I am talking about http://teamtreehouse.com/library/local-wordpress-development/local-wordpress-development/installing-a-local-web-server-on-a-mac Start watching at about 1 min and 55 sec.

Ludwing Najera
Ludwing Najera
4,596 Points

if testsite.com is the main page, it has to be called index in the directory and nothing else. example: index.php, correct! meap.php, WRONG!

Ludwing Najera
Ludwing Najera
4,596 Points

the website adress will still be testsite.com though

David Day
PLUS
David Day
Courses Plus Student 13,837 Points

Thanks so much. I appreciate all of your help. I figured out what was going wrong. I didn't have MAMP setup right to index directories. An hour and a half later and such a simple careless mistake on my part but learned from it. Thank you.