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 trialIona Ryder
159 PointsNot all my files in htdoc are uploading to the index of localhost. When i upload some files it says 'forbidden'.
I have a folder 'htdocs' and several files inside it which make up my website. However, when I go to the index of my local host it only shows one of the pages of my webpage, and not the other two. When I have tried to upload some of them from the local host it just says 'forbidden'. I don't believe there's much of a difference between any of the files.
3 Answers
Daniel Sattler
4,867 PointsIn Finder, go to your XAMPP install Folder, there you should see your htdocs folder. Right-Click on it -> Information and at the bottom you can see the rights... you can adjust them here... for htdocs on your local machine set all three to "read & write"
If you canΒ΄t click them, then you maybe need to click on the little Lock in the lower right corner and enter your admin password in order to be able to make changes.
Once this is done and you changed the permission, your FTP program should work just fine.
I hope this helped
Daniel Sattler
4,867 PointsWhen you say local host.... is it localhost on your online Server, or are you working local on your machine?
Iona Ryder
159 PointsOn my machine, I've downloaded XAMPP
Daniel Sattler
4,867 Pointsare you using a Mac or Windows PC?
You have to change permission from within your OS, depend where you installed XAMPP it is possible that your FTP Programm does not have permission.
Iona Ryder
159 PointsI'm using MAC, how would I go about changing the permission? Thanks