WP Error - How to Fix the “Is its parent directory writable by the server?”


There are three methods to fix WordPress Error 'Is its parent directory writable by the server'

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:

  1. Connect to your account via an FTP client or file manager. Go to the WordPress installation directory — commonly in /public_html.
  2. Open the wp-content folder and right-click on the uploads folder.
  3. Click on File Permissions. A new dialogue box will pop up. Look for theNumeric Value field and enter 755.
  4. Scroll down and make sure the Recurse into subdirectories box is checked.
  5. Select Apply to directories only and click OK.

Method 3 – Via SSH
  1. Connect to your VPS via SSH. You can learn how to do so in our SSH tutorial.
  2. Navigate to the wp-content folder inside your WordPress installation directory.
    cd public_html/wp-content
  3. Change the owner and group of the uploads folder to www-data by executing this command:
    chown -R www-data:www-data uploads
  4. 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.

 

Did you find this article useful?