Skip to content Skip to sidebar Skip to footer

Unable to Create Directory Uploads/2017/06. Is Its Parent Directory Writable by the Server?

How to Fix the "Is its parent directory writable by the server?" WordPress Error

How to Fix the

In this article, you are going to learn how to ready the "Is its parent directory writable by the server?" mistake. Information technology is a mutual issue in WordPress that prevents you from uploading files to your website.

Download WordPress Cheat Sheet

The example of "Is its parent directory writable by the server?" issue.

The error can happen due to incorrect permissions, ownerships, or location of the uploads folder. Regardless of the cause, we're here to show yous how to set this error chop-chop.

At that place are 2 methods of resolving the consequence on shared hosting — past changing the directory path and permissions of the uploads folder.

Method 1 – Changing the Uploads Folder Directory

Sometimes, the "Is its parent directory writable past the server?" upshot occurs because WordPress tin can't recognize the location of the uploads folder.

You might face up the problem after yous accept simply moved your site to some other hosting provider. To gear up it, you demand to modify your WordPress config file:

  1. Access your hosting file manager or FTP, and search for the wp-config.php file. It is normally located in the root folder of your website (/public_html).
    The location of wp-config.php file
  2. Open the file and add the following code:
    ascertain( 'UPLOADS', 'wp-content/uploads' );

    before this line:

    require_once(ABSPATH . 'wp-settings.php');
  3. Save the file. Now, try to upload your media files again.

Method 2 – Changing Binder Permissions

If y'all still go the "Is its parent directory writable by the server?" error afterward post-obit Method ane, you might want to effort resetting the permissions of your uploads binder.

Simply follow the instructions below:

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

By performing this method, yous volition reset the permissions of the uploads folder and its subfolders to 755.

The number means the possessor of the file tin read, write, and execute the file. This is important to let the directory to be writable. Hence, fixing the "Is its parent directory writable past the server?" error.

How to Set "Is its parent directory writable past the server?" Fault on VPS

If your WordPress site is hosted on VPS, you tin endeavour the following solution to fix "Is its parent directory writable by the server?" fault. Still, annotation that this method merely works for Linux running on Apache webserver.

Before nosotros begin, let'south understand some nuts.  By default, your Apache web server uses the world wide web-information user and www-data group to access files and folders.

However, there is a possibility that the uploads binder is non owned by world wide web-data. This situation leads to the "Is its parent directory writable by the server?" effect.

What you need to do is alter the owner of the uploads directory to www-data:

  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-information by executing this control:
    chown -R www-data:world wide web-information plugins
  4. Just similar on shared hosting, the default permissions for the uploads folder might be wrong. Therefore, while you lot are inside the wp-content folder, y'all may run the following command:
    chmod 755 -R uploads

    It volition fix permissions for plugins and all subdirectories inside it to 755.

If you want to learn more almost how to change Linux folder ownerships and permissions via the control line, read this guide.

The solution above might non work if you switched over to a new hosting provider, as configurations between hosting services may vary.

Conclusion

The "Is its parent directory writable by the server?" issue tin can be frustrating because it won't allow you to upload files to your WordPress site. Thankfully, in this article, you have learned the various solutions to this error, both on shared hosting and VPS.

The most common method is to change the owners and permissions of the uploads folder. If this pick doesn't work, y'all may want to alter the uploads directory or the wp-config.php file.

Hopefully, by following this guide, you can quickly fix the outcome. Good luck!

Author

Domantas leads the content and SEO teams frontward with fresh ideas and out of the box approaches. Armed with all-encompassing SEO and marketing knowledge, he aims to spread the word of Hostinger to every corner of the world. During his gratuitous time, Domantas likes to hone his web development skills and travel to exotic places.

mossrecon1978.blogspot.com

Source: https://www.hostinger.com/tutorials/fix-the-is-its-parent-directory-writable-by-the-server-wordpress-error

Post a Comment for "Unable to Create Directory Uploads/2017/06. Is Its Parent Directory Writable by the Server?"