How to Fix WordPress File Permission Issues
Fix upload, plugin, and theme errors caused by incorrect file permissions.
Before you start
Step-by-step instructions
1. Check current permissions
Check file and folder permissions in your WordPress directory.
ls -l /var/www/html
2. Set correct file permissions
Apply standard permissions for WordPress files.
find /var/www/html -type f -exec chmod 644 {} \;
find /var/www/html -type d -exec chmod 755 {} \;
3. Fix ownership
Make sure WordPress files belong to the correct web server user.
chown -R www-data:www-data /var/www/html
4. Test WordPress functionality
Try uploading files or installing a plugin again.
Test media upload and plugin installation to confirm the issue is resolved.
Common issues
Check wp-content/uploads permissions specifically.
Deployment tools or hosting panels may override permissions.
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
- Check current file permissions in WordPress directories.
- Set correct permissions for files and folders.
- Fix ownership for web server user.
- 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.