Unable to create directory wp-content/uploads


Unable to create directory wp-content/uploads

This may indicate a permissions problem with your WordPress uploads directory.

Firstly please make sure that you have the right permissions on /uploads folder.

$ sudo chmod -R 755 uploads/

Then if still nothing happens, please check the owner permissions.

$ ls -l
total 24
-rw-r--r--  1 root     root       28 Jan 26 13:44 index.php
drwxr-xr-x 16 root     root     4096 Jan 26 14:50 plugins
drwxr-xr-x  7 root     root     4096 Jan 26 13:44 themes
drwxr-xr-x  2 root     root     4096 Jan 26 13:44 upgrade
drwxr-xr-x 11 root     root     4096 Jan 26 13:44 uploads

Let’s offer the right permissions. As we can see the uploads folder has the root owner. The owner of Nginx/Apache servers is www-data

$ sudo chown -R www-data:www-data ./uploads/

Now if you check again, the owner is changed and the permissions 755 are set.

$ ls -l
total 24
-rw-r--r--  1 root     root       28 Jan 26 13:44 index.php
drwxr-xr-x 16 root     root     4096 Jan 26 14:50 plugins
drwxr-xr-x  7 root     root     4096 Jan 26 13:44 themes
drwxr-xr-x  2 root     root     4096 Jan 26 13:44 upgrade
drwxr-xr-x 11 www-data www-data 4096 Jan 26 13:44 uploads

That’s it!

Newsletter


Related Posts

TikTok Ads Strategy from a SaaS founder

Here's a short tutorial from my disrupting strategy of doing Tiktok Ads as a SaaS Founder

Curated SEO Resources: Essential Tools and Tips

Discover a handpicked selection of indispensable SEO resources, including tools and tips, to optimize your website's performance.

A Week in the Life of an Invoice Wrangler: Navigating Ridesharing and Food Delivery Chaos

As an app founder in the ridesharing and food delivery industry, I found myself knee-deep in invoice reports from companies like Bolt, Uber, Glovo, and Bolt Food

Free HTML templates list for Startups

Free HTML templates list for startup. A complete list with free resources to build your next startup's website and gain the traction to the sky.

Deal with client requests in SaaS

How to deal with client requests in Saas which are seeing only their interests, not the product interest.

The first client of LoyalXpert is not answering anymore

Trying to implement LoyalXpert app, I lost my first customer, he's not answering anymore

Experiments with Tiktok Ads

Recently tried out TikTok ads for the first time and here are some of my learnings and challenges

People don’t care about you, until they know you care about them.

People don’t care about you, until they know you care about them. The same happens in business, you need to take care of your clients.

The One Word That Can Ruin Your SaaS Business Anyone

As a SaaS founder, you probably know how important it is to have a clear and specific target market for your product.

How I got my digital certificate connected it with ANAF

How I got my digital certificate from certSIGN and connected it with ANAF