Javascript required
Skip to content Skip to sidebar Skip to footer

Wordpress Upload Folder Is Not Writable. Export and File Upload Features Will Not Be Functional.

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

How to Fix the

In this commodity, you are going to learn how to fix the "Is its parent directory writable past the server?" error. It is a common 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 mistake can happen due to incorrect permissions, ownerships, or location of the uploads binder. Regardless of the cause, nosotros're here to bear witness you how to fix this mistake quickly.

In that location are ii methods of resolving the issue on shared hosting — by changing the directory path and permissions of the uploads folder.

Method i – Changing the Uploads Folder Directory

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

Yous might face the problem after y'all have just moved your site to another hosting provider. To prepare it, you need to alter your WordPress config file:

  1. Access your hosting file manager 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 post-obit lawmaking:
    define( '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 Folder Permissions

If you still become the "Is its parent directory writable by the server?" error after following Method 1, you might want to endeavor resetting the permissions of your uploads folder.

Simply follow the instructions below:

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

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

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

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

If your WordPress site is hosted on VPS, you can try the following solution to set up "Is its parent directory writable by the server?" fault. Nevertheless, note that this method simply works for Linux running on Apache webserver.

Before we begin, let's understand some basics.  By default, your Apache web server uses the www-data user and world wide web-data grouping to access files and folders.

However, at that place is a possibility that the uploads folder is not endemic by world wide web-data. This situation leads to the "Is its parent directory writable by the server?" outcome.

What you lot demand to do is change the owner of the uploads directory to www-information:

  1. Connect to your VPS via SSH. Yous can learn how to do so in our SSH tutorial.
  2. Navigate to the wp-content binder within your WordPress installation directory.
    cd public_html/wp-content
  3. Change the possessor and grouping of the uploads folder to world wide web-data by executing this control:
    chown -R world wide web-data:world wide web-data plugins
  4. Simply similar on shared hosting, the default permissions for the uploads folder might be wrong. Therefore, while you are inside the wp-content binder, you may run the post-obit control:
    chmod 755 -R uploads

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

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

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

Conclusion

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

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

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

Author

Domantas leads the content and SEO teams frontwards with fresh ideas and out of the box approaches. Armed with extensive SEO and marketing knowledge, he aims to spread the word of Hostinger to every corner of the world. During his gratuitous fourth dimension, Domantas likes to strop his web development skills and travel to exotic places.

cramptonketter.blogspot.com

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