Friday, February 23, 2024
Home Other {SOLVED} Could not create Directory : Wordpress Error

{SOLVED} Could not create Directory : WordPress Error

So, you too got the same error. No doubt WordPress is one of the most used Content management system that gives great experience to the user as well as it is much flexible. One can create any type of site using wordpress.

Some of the top 1000 sites on the internet are built on the WordPress Content management System. But, it has errors too! It is developed completely on PHP and Mysql and they need No errors and No warnings to work properly.

Moreover, they need Proper permissions to access/create/edit/delete files and folders on the server on which you are running it. And the problem We are getting is due to Permission and Ownership problems.

To work with wordpress, you need to have Apache and mysql and PHP installed on your server. And, the files you are having on your server should be owned by Apache… I mean it… I said Apache not root.

You are getting this error because Ownership of the wordpress files are not given to apache. To solve this error, Open up Putty if you are using Windows and Terminal if you are using Ubuntu or Mac OS X.

After that, connect with your server using command ssh root@your_ip in Ubuntu and Mac OS X and in Putty, you will be asked to enter password directly.

Enter the password and you will be logged in. Now Navigate to the folder in which you have wordpress installed. You have to navigate to that folder only. Don’t go inside folder containing wordpress files.

{SOLVED} Could not create directory : WordPress Error

Once you are in, just enter the below given command according to your Operating System.

Ubuntu : 

sudo chown www-data:www-data -R your_wordpress_directory

CentOS : 

sudo chown apache:apache -R your_wordpress_directory

Now, Just update your wordpress to the latest version. If you have already updated, reinstall it or update any plugin or theme to check it once.

If you have all things updated, You can do that by going to URL . Go to that URL and Re install your WordPress.

If it is done properly, Your error is solved… Else try again. Have a great day. I hope you came to know about each and every thing written in this article. It is important to understand the concept instead just typing commands in terminal.


How much does an average Wedding cost?

Getting married is a big decision. While going through the processes couple’s priority brooding is budget. “How much will my wedding cost”,...

“Let the wind blow” Maryland beef skewers

As part of this year's Juneteenth celebration, I teamed up with other great black food bloggers to take over Juntinth's cooking. My...


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular

The Power of Hands-Free Breast Pumps for Multitasking Moms

Introduction Balancing motherhood and a career can be a daunting task. With the demands of a new baby and...

Factors to consider while choosing the fertilizer bags

Fertilizers are crucial in fostering robust plant development and increasing crop yields. The success of fertilizers, however, may be affected by several...

An In-depth Guide to Buying Crypto from the United Arab Emirates

Cryptocurrency has been making waves in the global financial market for the past decade and is now expanding its reach into the...

Why BOPP Bags are the Best Choice for Your Packaging Needs      

Stretching the product (BOPP film) to both ends results in molecular chain orientations in two directions that are orthogonal to one another....

Recent Comments