How to Fixing the “Is its parent directory writable by the server?” WordPress Error

Here, you'll find out how to repair the “Is its parent directory writable by the server?” error. this can be a standard issue in WordPress that restricts you from uploading files to your web site.

1. Error on Shared Hosting

Method one – a dynamic the Uploads Folder Directory
Method a pair of – dynamic Folder Permissions


2. Error on VPS

Error on Shared Hosting


The explanation for the error is often incorrect permissions, ownerships, or location of the uploads folder. however, despite what the cause is, you'll learn to repair this error quickly via this text.

You can resolve this error on shared hosting via 2 strategies — by dynamic the directory path and permissions of the uploads folder.

Method one – a dynamic the Uploads Folder Directory

Sometimes, once WordPress can’t acknowledge the placement of the uploads folder, it provides the error as “Is its parent directory writable by the server?” This drawback would possibly occur after you simply moved your web site to a different hosting supplier. For this, you wish to change your WordPress config file:

          1.Go to your hosting File Manager or FTP, and explore for the wp-config.php file. you'll notice it within the root folder of your web site(/public_html).
          2.Open the file and embrace the below code:

1   define( 'UPLOADS', 'wp-content/uploads' );

prior to this line:

1   require_once(ABSPATH . 'wp-settings.php');


         3.Save the file and check out to transfer your media files once more.


Method two – dynamical Folder Permissions

After following the higher than methodology, still you an error, attempt to reset the permissions of your uploads folder.


Just follow the directions below:

Using an FTP shopper or file manager, connect with your account.
Navigate to the WordPress installation directory — unremarkably in /public_html.
Then, open the wp-content folder and right-click on the uploads folder.
Then click on File Permissions and a brand new dialogue box can crop up. move to the Numeric Value field and enter 755.
check the Recurse into the sub-directories box.
Select Apply to directories solely and click OK.
With this methodology, the permissions of the uploads folder and its subfolders are reset to 755.

The number indicates the owner of the file will scan, write, and run the file. this is often essential for permitting the directory to be writable. this can resolve the “parent directory writable by the server?” error.

Error on VPS In case your WordPress website is hosted on VPS, you'll attempt the subsequent answer to fix the “Is its parent directory writable by the server?” error. But, bear in mind this methodology solely works for UNIX running on Apache net server Prior to beginning, let’s learn some basics. By default, the Apache net server uses the www-data user and www-data group to access files and folders, On the opposite hand, it may be that the uploads folder isn't closely-held by www-data. this example provides the error as “Is its parent directory writable by the server?”.

In order to alter the owner of the uploads directory to www-data you have to be compelled to follow the below steps:

           1.Using SSH, connect with your VPS.
           2.Go to the wp-content folder set among your WordPress installation directory.

1     cd public_html/wp-content


           3.Change the owner and cluster of the uploads folder to www-data by running the below command:

1    chown -R www-data:www-data plugins


           4.Similar to shared hosting, the default permissions for the uploads folder can be incorrect. Therefore, once you square measure at intervals the wp-content folder, you'll be able to run the subsequent command:

1    chmod 755 -R uploads


With this permission for plugins and every one subdirectory within it'll be set to 755. This answer won’t work if you switch to a replacement hosting supplier, as configurations between hosting services will vary.

Conclusion


You might get annoyed because of the “Is its parent directory writable by the server?” issue as a result of it won’t enable you to transfer files to your WordPress website. as luck would have it, during this article, you have got learned the various solutions to the present error, each on shared hosting and VPS, Changing the homeowners and permissions of the uploads folder is that the most ordinarily used technique. If this feature doesn’t work, you will modify the uploads directory or the wp-config.php file.

Hope that by following this guide, you'll quickly fix the difficulty. Good luck!

  • WordPress Error
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Clear Your Cache ?

What is Cache? A Cache is a block of memory used for temporary storage of data (ie: webpages,...

Easily Install cPanel or WHM panel

LicenseIf you are doing not have own license for cPanel & WHM, you would like to get...

How to Install UnrealIRCd on a CentOS 7

UnrealIRC is that the hottest IRC server.Be sure to create and run the IRCd as a daily user and...

How to Check OS version of linux server

You can check the worker OS renditions and other data like dispersion name and bit form by...

What is Proxy Servers?

What is Proxy Servers? Intermediary worker is a PC that sits between a customer PC and the...