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

PHP Using PHP with MySQL Connecting PHP to MySQL Getting Started with PDO

Xampp with apache server error : "access forbidden"

Full error code from the log is :

[core:crit] [pid 68432] (13)Permission denied: [client ::1:49826] AH00529: /Applications/XAMPP/xamppfiles/htdocs/shirts4mike/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/Applications/XAMPP/xamppfiles/htdocs/shirts4mike/' is executable

I can see that the problem is in the permissions (defined in htaccess?), but I don't know who to give access to and how to do it.

2 Answers

Figured it out : just had to modify the permissions of the "shirts4mike" folder and all it's enclosing files to "Read/Write" for everyone. I then changed the constants BASE_URL & ROOT_PATH in config.php to be "../", instead of the root folder of the server.

Yay for figuring things out!

So I figured out that the problem was the location of my files : they weren't at the root of htdocs. How do I modify htaccess in order to be able to have shirts4mike as a folder in my htdocs and still allow it to execute?