Unable to Create Directory Uploads/2019/09. Is Its Parent Directory Writable by the Server?
Feb 02, 2022
Domantas M.
3min Read
How to Fix the "Is its parent directory writable by the server?" WordPress Error
In this commodity, you are going to learn how to ready the "Is its parent directory writable by the server?" error. It is a mutual issue in WordPress that prevents you lot from uploading files to your website.
Download WordPress Cheat Sheet

The mistake can happen due to incorrect permissions, ownerships, or location of the uploads folder. Regardless of the cause, we're here to testify yous how to fix this error chop-chop.
In that location are two methods of resolving the effect on shared hosting — by irresolute 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?" outcome occurs because WordPress tin't recognize the location of the uploads folder.
You might face the trouble after you take just moved your site to some other hosting provider. To set information technology, you demand to modify your WordPress config file:
- Access your hosting file manager or FTP, and search for the wp-config.php file. It is commonly located in the root binder of your website (/public_html).
- Open the file and add together the post-obit code:
define( 'UPLOADS', 'wp-content/uploads' );
before this line:
require_once(ABSPATH . 'wp-settings.php');
- Salvage the file. Now, try to upload your media files once again.
Method 2 – Changing Folder Permissions
If you still become the "Is its parent directory writable by the server?" error after following Method ane, you might desire to try resetting the permissions of your uploads folder.
Simply follow the instructions below:
- Connect to your account via an FTP client or file director. Go to the WordPress installation directory — commonly in /public_html.
- Open the wp-content folder and right-click on the uploads folder.
- Click on File Permissions. A new dialogue box will popular upwardly. Look for the Numeric Value field and enter 755.
- Scroll downward and make sure the Recurse into subdirectories box is checked.
- Select Apply to directories simply and click OK.
By performing this method, y'all will reset the permissions of the uploads folder and its subfolders to 755.
The number means the owner of the file 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?" error.
How to Fix "Is its parent directory writable by the server?" Error on VPS
If your WordPress site is hosted on VPS, y'all can effort the following solution to set "Is its parent directory writable by the server?" mistake. Yet, note that this method only works for Linux running on Apache webserver.
Earlier we begin, permit's empathize some nuts. By default, your Apache spider web server uses the www-information user and www-data group to access files and folders.
However, there is a possibility that the uploads binder is non owned by www-data. This situation leads to the "Is its parent directory writable by the server?" issue.
What you need to do is change the owner of the uploads directory to www-data:
- Connect to your VPS via SSH. You tin can larn how to do so in our SSH tutorial.
- Navigate to the wp-content folder inside your WordPress installation directory.
cd public_html/wp-content
- Change the possessor and group of the uploads folder to www-data by executing this command:
chown -R www-information:www-data plugins
- But like on shared hosting, the default permissions for the uploads binder might be incorrect. Therefore, while you are within the wp-content folder, you may run the following command:
chmod 755 -R uploads
Information technology will set permissions for plugins and all subdirectories within it to 755.
If yous want to learn more about how to change Linux folder ownerships and permissions via the control line, read this guide.
The solution to a higher place might not piece of work if yous switched over to a new hosting provider, every bit configurations between hosting services may vary.
Determination
The "Is its parent directory writable past the server?" outcome can exist frustrating considering it won't let you to upload files to your WordPress site. Thankfully, in this article, you have learned the diverse solutions to this error, both on shared hosting and VPS.
The most common method is to modify the owners and permissions of the uploads folder. If this choice doesn't work, you may want to change the uploads directory or the wp-config.php file.
Hopefully, by following this guide, y'all tin quickly fix the issue. Expert luck!
Source: https://www.hostinger.in/tutorials/fix-the-is-its-parent-directory-writable-by-the-server-wordpress-error/
Belum ada Komentar untuk "Unable to Create Directory Uploads/2019/09. Is Its Parent Directory Writable by the Server?"
Posting Komentar