Skip to content
UK web hosting, domain names, email, website security and online services.

Set safe file and directory permissions Print

  • files, hosting, permissions, security
  • 0

Use the least permission required by the web server and application; avoid world-writable access.

Applies to: Files and directories in SiteWorx hosting accounts

Typical starting values

ItemTypical permissionNotes
Directories755Owner can write; other users can traverse/read as permitted.
Normal files644Owner can write; web service can read.
Sensitive configuration600 or 640Use only when compatible with the application/web-server ownership.
Executable scriptsOnly add execute permission where genuinely required.Do not make ordinary PHP or configuration files executable merely to fix an error.
Important: Do not use 777. It allows every local user/process to write and usually hides an ownership problem rather than fixing it.

Change permissions

  1. Back up the file or directory and record its current permission.
  2. In SiteWorx, open Hosting Features > File Manager.
  3. Select the exact item and open its permissions control.
  4. Apply the least permissive suitable value.
  5. Test the affected page or upload action.
  6. Revert if the change does not solve the intended problem.

Related articles

Last reviewed: 2026-07-25.


Was this answer helpful?

« Back