Cant Upload Media on Multi-site 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 commodity, you are going to acquire how to fix the "Is its parent directory writable by the server?" mistake. It is a common event 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 tin can happen due to incorrect permissions, ownerships, or location of the uploads folder. Regardless of the cause, nosotros're here to show yous how to fix this error rapidly.

There are two methods of resolving the issue on shared hosting — by changing the directory path and permissions of the uploads folder.

Method 1 – Changing the Uploads Binder Directory

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

You might confront the trouble after you have just moved your site to another hosting provider. To ready it, you demand to alter 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 binder 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. Salvage the file. Now, attempt to upload your media files again.

Method 2 – Changing Folder Permissions

If you even so go the "Is its parent directory writable by the server?" error after following Method one, you might want to try resetting the permissions of your uploads folder.

Just follow the instructions below:

  1. Connect to your account via an FTP customer or file manager. Get to the WordPress installation directory — normally in /public_html.
  2. Open the wp-content binder and right-click on the uploads folder.
  3. Click on File Permissions. A new dialogue box will popular upwardly. Look for the Numeric Value field and enter 755.
  4. Whorl down and brand sure the Recurse into subdirectories box is checked.
  5. Select Apply to directories merely and click OK.

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

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

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

If your WordPress site is hosted on VPS, you tin can try the post-obit solution to set "Is its parent directory writable by the server?" fault. However, note that this method only works for Linux running on Apache webserver.

Earlier we begin, let's empathise some basics.  By default, your Apache web server uses the world wide web-data user and world wide web-data group to admission files and folders.

However, there is a possibility that the uploads folder is not owned by world wide web-information. This state of affairs leads to the "Is its parent directory writable by the server?" issue.

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 exercise 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 grouping of the uploads folder to www-information past executing this command:
    chown -R www-information:www-information plugins
  4. But like on shared hosting, the default permissions for the uploads folder might exist wrong. Therefore, while you are within the wp-content binder, you may run the following command:
    chmod 755 -R uploads

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

If you want to learn more about how to alter Linux folder ownerships and permissions via the command 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 past the server?" outcome can be frustrating because it won't allow you to upload files to your WordPress site. Thankfully, in this commodity, you have learned the various solutions to this mistake, both on shared hosting and VPS.

The nigh common method is to change the owners and permissions of the uploads folder. If this pick doesn't piece of work, you may desire to modify the uploads directory or the wp-config.php file.

Hopefully, by following this guide, you tin quickly set the issue. Practiced 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 earth. During his gratuitous time, Domantas likes to hone his web development skills and travel to exotic places.

thompsonwassely.blogspot.com

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

0 Response to "Cant Upload Media on Multi-site Is Its Parent Directory Writable by the Server?"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel