Javascript required
Skip to content Skip to sidebar Skip to footer

Wordpress Error: Unable to Create Directory Uploads. Is Its Parent Directory Writable by the Server?

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

How to Fix the

In this article, y'all are going to learn how to fix the "Is its parent directory writable by the server?" error. Information technology is a common issue in WordPress that prevents y'all from uploading files to your website.

Download WordPress Crook Sheet

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

The fault can happen due to wrong permissions, ownerships, or location of the uploads binder. Regardless of the cause, we're here to show yous how to set this error rapidly.

There are ii methods of resolving the outcome on shared hosting — by changing the directory path and permissions of the uploads binder.

Method 1 – Changing the Uploads Binder Directory

Sometimes, the "Is its parent directory writable by the server?" issue occurs considering WordPress tin can't recognize the location of the uploads folder.

You might confront the problem after you accept just moved your site to another hosting provider. To fix information technology, you need to modify your WordPress config file:

  1. Access your hosting file managing director or FTP, and search for the wp-config.php file. It is commonly 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:
    define( 'UPLOADS', 'wp-content/uploads' );

    before this line:

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

Method 2 – Irresolute Folder Permissions

If you lot however get the "Is its parent directory writable by the server?" fault afterward following Method 1, you might desire to endeavour resetting the permissions of your uploads folder.

Simply follow the instructions below:

  1. Connect to your business relationship via an FTP client or file manager. Go to the WordPress installation directory — ordinarily in /public_html.
  2. Open the wp-content folder and right-click on the uploads binder.
  3. Click on File Permissions. A new dialogue box volition popular up. Wait for the Numeric Value field and enter 755.
  4. Whorl down and brand sure the Recurse into subdirectories box is checked.
  5. Select Utilise to directories only and click OK.

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

The number ways the owner of the file tin can read, write, and execute the file. This is important to allow the directory to be writable. Hence, fixing the "Is its parent directory writable by the server?" fault.

How to Set up "Is its parent directory writable by the server?" Error on VPS

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

Before we begin, let'south empathise some basics.  Past default, your Apache web server uses the www-data user and www-data group to access files and folders.

Nonetheless, at that place is a possibility that the uploads folder is not owned by www-data. This state of affairs leads to the "Is its parent directory writable by the server?" issue.

What you demand to practise is change the possessor of the uploads directory to www-data:

  1. Connect to your VPS via SSH. Y'all tin can learn how to do so in our SSH tutorial.
  2. Navigate to the wp-content binder inside your WordPress installation directory.
    cd public_html/wp-content
  3. Change the owner and group of the uploads folder to world wide web-data past executing this command:
    chown -R www-information:www-data plugins
  4. Just like on shared hosting, the default permissions for the uploads binder might be wrong. Therefore, while you are within the wp-content binder, you may run the following command:
    chmod 755 -R uploads

    It will set permissions for plugins and all subdirectories inside it to 755.

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

The solution to a higher place might not work if you switched over to a new hosting provider, equally configurations betwixt hosting services may vary.

Conclusion

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

The most mutual method is to change the owners and permissions of the uploads folder. If this option doesn't work, you lot may want to modify the uploads directory or the wp-config.php file.

Hopefully, past post-obit this guide, y'all tin can rapidly fix the upshot. Good luck!

Author

Domantas leads the content and SEO teams forwards with fresh ideas and out of the box approaches. Armed with extensive SEO and marketing noesis, 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.

elderseir2001.blogspot.com

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