Method 1 – Editing wp-config.php file
Add this code to the wp-config.php
define( 'UPLOADS', 'wp-content/uploads' );
Method 2 – Changing the Uploads Folder Permissions
Simply follow the instructions below:
- Connect to your account via an FTP client or file manager. Go to the WordPress installation directory — commonly in /public_html.
- Open the wp-content folder and right-click on the uploads folder.
- Click on File Permissions. A new dialogue box will pop up. Look for theNumeric Value field and enter 755.
- Scroll down and make sure the Recurse into subdirectories box is checked.
- Select Apply to directories only and click OK.
Method 3 – Via SSH
- Connect to your VPS via SSH. You can learn how to do so in our SSH tutorial.
- Navigate to the wp-content folder inside your WordPress installation directory.
- Change the owner and group of the uploads folder to www-data by executing this command:
chown -R www-data:www-data uploads
- Just like on shared hosting, the default permissions for the uploads folder might be incorrect. Therefore, while you are inside the wp-content folder, you may run the following command:
chmod 755 -R uploads
It will set permissions for plugins and all subdirectories inside it to 755.