How to Fix the “Is its parent directory writable by the server?”

How to Fix the “Is its parent directory writable by the server?”

Posted on |

When you move a site from one hosting company to another and begin making modifications, such as adding a plugin or anything similar, you may see the problem “Is Its Parent Directory Writable By The Server?” Normally, this issue prohibits you from posting anything to your website.

It is intimately related with a WordPress site’s wp-content folder since that is where every media asset, plugin, and theme is posted to be saved. It might be caused by incorrect path or folder permissions.

This guide will teach you how to resolve the error “Is Its Parent Directory Writable By The Server” using two distinct ways. If the first approach is successful, you will not need to use the second.

Method 1.

Change Folder Permissions.

WP-CONTENT, as you may be aware, is a folder in the core of WordPress software that you have installed on your hosting business in order to utilise the WordPress CMS to manage a site and Content Directory (WP-Content).

. As a result, you must ensure that the folder permissions for WP-CONTENT are right.

Here are a few steps you must take:

  1. Open the cPanel after logging into your hosting account.
  2. Click on the File Manager since it contains all of your WordPress site’s files and directories.
IMG_256
  1. Click on “public HTML” on the left sidebar since it contains the majority of the webpages.
IMG_256
  1. Change the permissions of the wp-content folder by right-clicking it and selecting “Change Permissions.”
  1. Make sure permissions are set to 755 in the popup.
IMG_256
  1. Changes should be saved.

Please attempt to install the plugin you were working on before after making these modifications or the Installation Failed. Clearing your browser’s cache or using a new browser is always a good idea.

Sometimes an outdated cache or version of a browser prohibits you from making such modifications over Dataserevermarket. If everything is working properly, there is no need to try the second technique. If you continue to receive the error “Is Its Parent Directory Writable By The Server,” please try the second way.

Method 2.

Change the Path of the Uploads Directory.

When migrating a site from one hosting provider to another, WordPress may fail to recognise the original Dataserevermarket path of the Upload Directory Path. So, as long as you include that, everything will be great.

You must update the wp-config.php file to accomplish this. The following are the actions that must be taken:

  1. You must reopen the File Manager to modify the wp-config.php file.
  1. Right-click on the wp-config.php file after clicking on the public html link in the left-sidebar. If you can’t locate the file, please scroll to the bottom because there are Dataserevermarket directories at the top. Files are often found at the bottom of a page.
IMG_256

Select “Edit”.

  1. A popup will show up to let you know about it. Click on “Edit“.
IMG_256
  1. Add this line:

define( ‘UPLOADS’, ‘wp-content/uploads’ );

Before this line for The Uploaded File Could Not Be Moved to wp-content/uploads

:

require_once(ABSPATH . ‘wp-settings.php’);

  1. Click on “Save Changes” from the top-right corner of the wp-config.php file.

Wanted to clear your browser’s cache or try a different browser to see if the problem persists in Dataserevermarket while uploading anything and Unable to Write to wp Config. The problem does not just happen while installing a plugin. It might occur while uploading a picture, any media file, or even installing a new theme.

If you upload something, it goes into the Uploads directory in the wp-content folder to Get WP-Content Directory Path.

Method 3: Use This If WordPress site is hosted on VPS

If your WordPress site is hosted on a VPS, try the approach below to resolve the “Is its parent directory readable by the server?” problem on Dataserevermarket. However, keep in mind that this solution is only applicable to Linux operating on the Apache webserver.

Before we begin, let’s go over the fundamentals. By default, your Apache web server accesses files and folders through the www-data user and group.

However, it is possible that www-data does not possess the uploads folder. This condition raises the question over Dataserevermarket, “Is its parent directory readable by the server?”

You must change the owner of the uploads directory to www-data:

  1. Connect to your VPS via SSH. You can learn how to do so in our SSH tutorial.
  1. Navigate to the wp-content folder inside your WordPress installation directory so that it Could Not Create Directory WordPress.

cd public_html/wp-content

  1. Change the owner and group of the uploads folder to www-data by executing this command:

chown -R www-data:www-data plugins

  1. Just like on shared hosting, the default permissions for the uploads folder might be incorrect. Therefore, while you are inside the wp-content folder, you may run the following command:

chmod 755 -R uploads

It will change the permissions of plugins and all subdirectories to 755.

Because settings differ between hosting providers over Dataserevermarket, the approach above may not work if you migrate to a different hosting provider.

Method 4: Use This for XAMPP (LocalHost Installs)

Unless you’ve installed WordPress and Unable to Locate WordPress locally and are seeing the error message, and none of the methods above are working for you. You may need to reset the installation’s ownership to nobody by performing the following.

  • Run command line/terminal:

On Mac: Applications => Utilities => Terminal

On Windows: Start => Programs => Accessories => Command Prompt

  • Run the following command

After replacing WordPress with your actual WordPress installation directory.

Hopefully, one of the options listed above will assist you in resolving the Unable to Create Directory problem in WordPress.

If none of the aforementioned alternatives work, it may be time to search for another WordPress hosting service over Dataserevermarket. MangoWP is an appealing option for you.

Could You Fix “Is Its Parent Directory Writable By The Server”?

Isn’t it aggravating to receive an error after launching a new website or switching to a new web hosting provider? Sometimes you may blame your new hosting provider for such an incident, although they have nothing to do with it in Dataserevermarket. This occurs with the WordPress programme and the route to the Uploads directory or Could Not Create Directory.

Every now and then, we all have problems with our websites. I came across some unknown mistakes. When I saw the message “Is Its Parent Directory Writable By The Server” on a website, it was unexpected and weird because I had never encountered such an issue before. The same thing might happen to you.

The most essential thing is to comprehend the concept and ensure that you do the proper thing by employing any of the ways listed above.

How to Fix “Is its parent directory writable by the server?” Error on VPS

If your WordPress site is hosted on a VPS, try the approach below to resolve the “Is its parent directory readable by the server?” problem. However, keep in mind that this solution is only applicable to Linux operating on the Apache webserver.

Before we begin, let’s go over the fundamentals. By default, your Apache web server accesses files and folders over Dataserevermarket through the www-data user and group.

However, it is possible that www-data does not possess the uploads folder. This condition raises the question, “Is its parent directory readable by the server?”

You must change the owner of the uploads directory to www-data:

  1. SSH into your virtual private server. You may find instructions on how to do so in our SSH guide.
  1. Inside your WordPress installation directory, navigate to the wp-content folder.

cd public_html/wp-content

  1. By running the following command, you may change the owner and group of the uploads folder to www-data:

chown -R www-data:www-data plugins

  1. The default permissions for the uploads folder, just like on shared hosting, may be wrong. As a result, while still in the wp-content folder, execute the following command:

chmod 755 -R uploads

It will change the permissions of plugins and all subdirectories to 755.

Since settings differ between hosting providers, the approach above may not work if you migrate to a different hosting provider.

Fix the “Is its parent directory writable by the server?” WordPress Error

This error notice may happen as a result of faulty rights and it’ll get Update Failed, ownerships, or the placement of the WordPress uploads folder. Whatever the source, we’re here to teach you how to easily repair this issue.

When we saw this WP Error notice, we were able to resolve it by making a simple edit to the wp-config.php 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 or /html).
IMG_256

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, try to upload your media files again.

Conclusion

The “Is its parent directory readable by the server?” error might be annoying since it prevents you from uploading content to your WordPress site. Fortunately, you’ve learned about the many remedies to this mistake in this post, which applies to both shared hosting and VPS.

The most popular technique is to modify the uploads folder’s owners and permissions. If this option does not function, you may need to make changes to the uploads directory or the wp-config.php file.

Probably be able, by following this method, you will be able to swiftly resolve the problem. Best wishes

Leave a Reply

Your email address will not be published. Required fields are marked *