February 20th, 2013, 05:31 PM
Forbidden You don't have permission to access /todo/ on this server.
I created a folder on the root directory of the server and uploaded some files to it wanting it to be for public access. The permissions are 777 but I get this when I try to access it:
What is a girl to do to fix this?
February 20th, 2013, 05:36 PM
The root directory of the server, or the root directory of your hosting account? For the sake of sanity, I'm going to assume that it's your hosting account location that you're talking about here.
Is this in the public area of your site? Like /public_html/todo/ (on cPanel) as an example? If that's the case it should work, mostly even without 777 permissions. If it doesn't then you'll need to contact your hosting company and ask them to fix whatever permissions lock-downs they have in place.
February 20th, 2013, 05:52 PM
You'll also get that error if (1) you're browsing to a directory, (2) there's no DirectoryIndex file (eg, index.html or index.php), and (3) there's an Options directive that denies Indexes, which is how Apache is configured by default.
Comments on this post
February 20th, 2013, 07:02 PM
It is located at a location like http://www.example.com/todo
I always share public files like this on other servers. But I am not sure why this is not working. Of course I can make an index.php file and show a list of all the files in the directory but I wonder why I get this error here without the index.php!
It looks like I can't access any of the folders under public_html.
February 20th, 2013, 07:06 PM
In that case, requinix is correct.
February 20th, 2013, 07:07 PM
In the root .htaccess,
Just remember that every directory without an index file will list its contents. Or you can put that directive in a per-directory .htaccess to allow browsing in only specific places.