Guides

Step-by-step tutorials and practical fixes for WordPress, servers, and daily technical work.
WordPress Guides

How to Fix WordPress File Permission Issues

Fix upload, plugin, and theme errors caused by incorrect file permissions.

Before you start

You need access to your server via SSH or file manager.
Know your WordPress installation path.
Identify the web server user (www-data, apache, nginx, etc.).

Step-by-step instructions

1. Check current permissions

Check file and folder permissions in your WordPress directory.

Command
ls -l /var/www/html

2. Set correct file permissions

Apply standard permissions for WordPress files.

Files
find /var/www/html -type f -exec chmod 644 {} \;
Directories
find /var/www/html -type d -exec chmod 755 {} \;

3. Fix ownership

Make sure WordPress files belong to the correct web server user.

Command
chown -R www-data:www-data /var/www/html

4. Test WordPress functionality

Try uploading files or installing a plugin again.

Tip

Test media upload and plugin installation to confirm the issue is resolved.

Common issues

Upload folder not writable

Check wp-content/uploads permissions specifically.

Permission resets after changes

Deployment tools or hosting panels may override permissions.

Still cannot install plugins

Check file ownership and PHP user configuration.

Final check

Correct permissions and ownership ensure WordPress can manage files safely without exposing security risks.

About this guide

This guide explains how to fix WordPress file permission issues that block uploads, plugin installation, or theme updates.

How to follow this guide

  1. Check current file permissions in WordPress directories.
  2. Set correct permissions for files and folders.
  3. Fix ownership for web server user.
  4. Test uploads or plugin installation again.

Why use this method?

Incorrect file permissions can prevent WordPress from writing files, installing plugins, or updating themes.

Frequently Asked Questions

What permissions should WordPress use?

Common values are 644 for files and 755 for directories.

Why do uploads fail?

Uploads usually fail when the uploads folder is not writable by the web server.

Do I need root access?

In many cases yes, especially when fixing ownership issues.

Is 777 safe for WordPress?

No. It creates security risks and should not be used in production.