The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> PHP Development
|
Forbidden You don't have permission to access /todo/ on this server.
Discuss Forbidden You don't have permission to access /todo/ on this server. in the PHP Development forum on Dev Shed. Forbidden You don't have permission to access /todo/ on this server. PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 20th, 2013, 04:31 PM
|
 |
A Change of Season
|
|
|
|
|
Forbidden You don't have permission to access /todo/ on this server.
Hello;
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: Quote: Forbidden
You don't have permission to access /todo/ on this server.
Apache/2.2.15 (CentOS) Server at hotels2go.com.au Port 80 | What is a girl to do to fix this?
Thank you
|

February 20th, 2013, 04:36 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
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, 04:52 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
|
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.
|

February 20th, 2013, 06:02 PM
|
 |
A Change of Season
|
|
|
|
|
Hello;
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, 06:06 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
In that case, requinix is correct.
|

February 20th, 2013, 06:07 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
(coughnumberthree)
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.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|