Permissions determine which operating-system users can read, write or traverse files. A failed upload or HTTP 403 does not automatically mean every folder needs broader access.

Diagnose before changing

  1. Record the exact path and error. Check whether the file exists and the domain points to the correct root.
  2. Inspect ownership and permissions in File Manager. Ask support to correct unexpected ownership.
  3. Identify the runtime user and the application’s documented writable directories.
  4. Apply the narrowest appropriate change to the specific file or folder, then retest.

On many shared-hosting setups, public files use 644 and public folders 755, but these are examples, not a rule for every handler. Private credentials and databases should have stricter permissions compatible with the account’s runtime. Parent folders also need suitable traversal permissions.

Why 777 is a poor repair

World-writable paths can allow unintended modification. They can also violate host security policy. Do not use recursive permission changes on the whole home directory to repair one folder.

Keep upload directories separate from executable code and prevent script execution there. If a framework needs writable cache or session storage, grant access only to those paths. Retain a record of changes so experiments can be reversed.

Official references

Reviewed 2026-10-22. Menus and availability depend on your hosting plan and server configuration.

Explore all cPanel guides →