What Are the Proper Ownership and Permission Settings for Drupal?

Avatar
  • Answered
I am getting a general permission denied error when trying to view my website.
Its a 403 error saying - "You don't have permission to access / on this server."

I have permissions set on a newly imported Drupal Website. These had worked in my local setup and are per recommendations from drupal support articles. They are as follows, with more liberal settings on the /site/*/files folders and files.

Folder permissions are set as u=rwx g=rx u="none"
File permissions are set as u=rw g=r o="none"

The ownership on the files and folders are u = username g= username
This is as (I think) required by the VPS.

I now have many log errors being returned all are similar to this.

Permission denied: [client xx.xx.xxx.xxx:xxx] AH00035: access to /sites/all/modules/context/plugins/context_reaction_block.js denied (filesystem path '/home/username/public_html/sites/all/modules') because search permissions are missing on a component of the path, referer: https://www.xxxxxxx.com/

Not sure of the problem but I suspect it may have to do with the ownership. I don't know what the error is saying about permissions when it says the phrase "search permissions are missing".

Thanks for any help.
Avatar
Scott
Hello openii5, Sorry to hear you are having 403 errors on your Drupal site. The error message is saying that the search permissions (x) are missing for the user on one or more of the files/folders. Typically our servers set folders to 750 and the php files to 644. If you need to ensure those settings are set for all files and folders on your account, you can contact the Live Support and they can run a script to do that for you. Kindest Regards, Scott M