Uploads Folder Permissions Fix
April 2, 2025 ยท AI Conversations
See changing file permissions or contact your hosting provider.
Here's how to fix it depending on your environment:
—
### โ **If you're on a Linux server (Apache/Nginx):**
1. **Connect via SSH** or use your hosting's file manager.
2. Run this command from your WordPress root:
chmod -R 755 wp-content/uploads
> If that doesn't work, try:
chmod -R 775 wp-content/uploads
3. Then make sure the folder is owned by the web server. If you're using Apache, this might be `www-data`, or `apache`, etc.:
chown -R www-data:www-data wp-content/uploads
Replace `www-data` with the correct user for your web server if it's different.
—
### โ **If you're using a local setup like Docker or DDEV:**
Make sure the `uploads` directory is writable inside the container:
docker exec -it <your-container-name> chmod -R 775 /var/www/html/wp-content/uploads
(Adjust path as needed depending on your setup.)
—
### โ **If you're using cPanel/File Manager:**
1. Go to **File Manager** > `public_html/wp-content/uploads`.
2. Right-click the `uploads` folder โ **Permissions** or **Change Permissions**.
3. Set permissions to **755** or **775** (check all read/write/execute for the owner).
—
Let me know your setup (e.g. shared hosting, Docker, DDEV, EC2, etc.) if you want more tailored commands.