Apache (HTTPD); Ownership and File & Directory Permissions: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
...well, it isn't necessarily an issue, but it could be.
...well, it isn't necessarily an issue, but it could be.


Setting 'generic' correct permissions for Apache
For Apache hosted web sites, setting correct ownership and permissions is critical.


== Background ==
== Background ==
Line 14: Line 14:
Directories should have permissions set to 755
Directories should have permissions set to 755
  find WhatEverFolderName -type d -exec chmod 755 {} \;
  find WhatEverFolderName -type d -exec chmod 755 {} \;
The above commands will set ownership and permissions for all files and sub-directories.