Harshana
Harshana

Reputation: 7647

can not access the folders created in cpanel

why for the directories i creat getting rwx---rwxand rw----r-- permisions for the files i create? I cant access a folder by externally via url which have rwx---rwx permition but can access the file which have rw----r-- permision.

Even I change permision to rwxrwxrwx i can not access the folder. eg: http://www.example.com/folder/ Gives me 403 Forbidden

Upvotes: 0

Views: 1980

Answers (2)

Marc B
Marc B

Reputation: 360902

403 forbidden on a folder url usually means that your server has folder browsing disabled, and there's no default document (index.html, index.php, etc...) in the directory. Since there's no default content to server, and the configuration doesn't allow for browsing, you get the forbidden error.

Upvotes: 1

hakre
hakre

Reputation: 198217

That's probably a pre-caution of your webserver, that denies to offer files that have the executable bit (x) set.

Check your servers documentation about the features it offers and which file permissions are needed to be set to make them work with your webserver.

Upvotes: 0

Related Questions