1. Home
  2. WordPress Tutorials
  3. Solution: “Is its parent directory writable by the server?” error in WordPress

Solution: “Is its parent directory writable by the server?” error in WordPress

If you’re trying to upload Media in WordPress and get the error shown in the screenshot below, you can follow the steps in this article to solve the issue.

Wordpress uplaod error

 

The “Is its parent directory writable by the server?” error occurs when WordPress can’t recognize the location of the uploads folder.

This typically happens when you’ve moved to a new hosting provider. To fix it, you need to modify your WordPress config file.

Steps To Fix The Error

  1. Login to cPanel and click the File Manager icon and then enter the public_html folder.  Look for the wp-config.php file and click the Edit button in the File Manager top menu.
  2. Add the following code in the wp-config.php file:
    define( 'UPLOADS', 'wp-content/uploads' );

    before this line:

    require_once(ABSPATH . 'wp-settings.php');
  3. Save the file wp-config.php.  That’s it, now you can try uploading media in WordPress.
Note:

If you’re receiving the error on an addon domain, you will need to enter that websites root directory and edit the wp-config.php file.  You can also use any FTP program to edit the file instead of the File Manager in cPanel.

Updated on February 12, 2021

Was this article helpful?

Related Articles