Skip to content

Unclear what the right file permissions for WordPress are.

Defaults: directories 755, files 644, wp-config.php 600 or 640. No 777 anywhere, ever. That's an open invite for exploits.

Try this first

  1. 1SSH into the server. SFTP clients show permissions too, but SSH is faster for bulk changes.
  2. 2Set all dirs to 755: find /path/to/wp -type d -exec chmod 755 {} \;
  3. 3Set all files to 644: find /path/to/wp -type f -exec chmod 644 {} \;
  4. 4wp-config.php to 600: chmod 600 wp-config.php. Only the owner (PHP user) reads it.
  5. 5Owner must be the web server user (www-data, apache, or your cPanel user), not root. Wrong owner produces 'unable to write' on updates.
  6. 6Test: WordPress should install plugins, upload media and run updates. If not, owner or group is wrong.

When to bring us in

Persistent 'cannot write to wp-content' despite correct permissions? Ask the host for the PHP user and any separate FTP user. The mismatch sits there.

See also

None of the above fits?

Describe your situation below. We pass your input plus the steps you already saw to our AI and return tailored next-step advice. If it's too risky to DIY, we'll say so.

Who are you?

For the AI question we need your email and company, so we can follow up if the AI gets stuck, and to prevent abuse.

Limited to 2 questions per hour and 5 per day, kept lean so the AI stays useful. For more, contacting us directly works better for you and us.

Or skip the DIY entirely

Our Managed IT clients do not look these things up. One point of contact, a fixed monthly price, resolved within working hours.