Cannot access folder i create in public_html

Anton

Verified User
Joined
Oct 6, 2010
Messages
102
Location
Iceland
I am also getting this error let's say this is my domain http://www.domain.com/stuff

I cannot access the /stuff folder but i have forum installed /forum maby i can access it but not stuff i have something that users can download or a few mp3. Tracks i have made bytheway any help on this ? what could i do i have root access on this server
 
check the owner of the folder.

You gave not usefull information, but, i can sayt hat everything is under public_html should be viewed in www.domain.com/DIR where DIR is the directory you made under public_html

So, if isnt working, most of the case should be cause owner is not the owner of domain (ex. you created that directory using root user).

So, if user is "admin" you need to

chown admin:admin DIR

Regards
 
That did not work.. But maby the info i gave may not be good so i will try to explain..

I am logged in as reseller and my domain is domain.com lets say :) and i go into file manager and create a folder that is named stuff or something and i upload files to the folder stuff and then i when i try to access them from browser i get this error

Forbidden

You don't have permission to access /stuff/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

But i have another folders there one folder vbulletin and one folder xenforo

and they work but they are software php so they must work i guess :)
 
Last edited:
It matters what you are trying to view. Either the file manager is saving the wrong permissions or you dont have an index file.

Are you just trying to go to the url like http://www.domain.com/stuff

If that is the case you need either an index file like index.html index.htm index.php or you have to enable directory contents.

To be able to view directory contents you need to create a file in the stuff folder called .htaccess

Inside it put:

Options +Indexes

However if you are trying to access a file like http://www.domain.com/stuff/file.txt and its not working then you have a permission problem.
 
oh god..... why i didnt think about the more easier solution...

Didnt made foolproof questions this time and thats the result XD
 
Back
Top