Fix file permissions

If your site shows "403 Forbidden" or "500 Internal Server Error" right after you uploaded files, extracted an archive, or moved a site, the file permissions are probably wrong. They control who can read and change each file, and the server won't run files that are set too loosely.

The right settings

Item Permission
Folders 755
Files 644
WordPress's wp-config.php 640 or 600

Never set anything to 777. It lets anyone change the file, which is exactly what attackers look for.

Fix a few files yourself

  1. Log in to cPanel and open File Manager.
  2. Select the file or folder, then click Permissions in the toolbar.
  3. Enter the number from the table above and click Change Permissions.

A whole site is broken?

If lots of files are wrong, for example after extracting a backup or a zip of a site, contact us with your domain name. We'll reset the permissions and ownership across your whole site in one go, which is quicker and safer than doing it by hand.

Still getting an error?

Look at the error_log file in your site's folder in File Manager. If it doesn't point to a permission problem, see "WordPress shows a white screen or a 500 error."

  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

See your site's visitor stats

cPanel keeps basic numbers on your site's traffic. For deeper insight into who visits and where...

How do I enable and configure SpamAssassin?

One of the most frustrating parts of having an email account is the part where complete strangers...

Force HTTPS for your web site

With security being such an important piece of everything we do online, it’s important for you,...

Your account is out of disk space

When your hosting account fills up, things break in odd ways: email stops arriving, webmail won't...

Back up your site and get files back

We back up every hosting account daily and keep those backups for 30 days, so if something breaks...