Apache Permissions

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
wacko
Forum User
Forum User
Posts: 21
Joined: Tue May 24, 2005 10:24 am

Apache Permissions

Unread post by wacko »

Hi.

I use my websites only for download directories so they are not in production much, however recently when i attempted to browse one of them I got the following error.

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

This seems to be happening across the board, it also seems to happen when i create new websites, the default permissions seem to be for new websites as follows


drwxr-x--- 4 zeyna psaserv 4096 Oct 27 11:39 httpdocs
drwxr-x--- 4 zeyna psaserv 4096 Oct 27 11:39 httpsdocs

Is there something I should be changing?

Thnks for any advice!
wacko
Forum User
Forum User
Posts: 21
Joined: Tue May 24, 2005 10:24 am

Unread post by wacko »

okie! seem to have fixed this by applying a chmod 755 to the httpdocs directory, however is tehre a way I can fix this for new websites being created?! or and the permissions reverting back!?
kwebdesign
Forum User
Forum User
Posts: 93
Joined: Sun Feb 13, 2005 2:24 pm
Location: TN

Unread post by kwebdesign »

My permissions look just like the ones you have displayed. Are you sure that was the fix?

The "Forbidden" error you are getting is not actually from the filesystem, it's from Apache. More than likely, something changed to restrict / prevent "directory browsing", which is the feature that lets you see the contents of a directory when there's not a default page (such as index.html). Generally, that's good practice, but it's not always what you want.

Did this happen after an update of Plesk or Apache?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You make folders browsable via apache by sticking something like this in a .htaccess file inside the folder you want browsable:

Code: Select all

Options Indexes FollowSymLinks
IndexOptions +FancyIndexing +FoldersFirst
The Indexes option makes the folder browsable if there is no DirectoryIndex file (like index.html or index.php for instance). See http://httpd.apache.org/docs/2.0/mod/core.html#options te learn more about the Options keyword.

Using IndexOptions you can control more about how your index is displayed. See http://httpd.apache.org/docs/2.0/mod/mo ... dexoptions for more on this.
Lemonbit Internet Dedicated Server Management
wacko
Forum User
Forum User
Posts: 21
Joined: Tue May 24, 2005 10:24 am

Unread post by wacko »

yea the browsing was just an example it was doing the same for the default domain home pages, which were just blank index pages. not sure why tat fixed it, but seems to have worked
Post Reply