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

Discover the Best Free AI Art Tools for Your Next Masterpiece

Explore a curated collection of the finest free AI art tools, designed to help you bring your artistic vision to life.

SaaS vs. Software Agency: Choosing the Right Business Model for Your Startup

Discover the key differences between SaaS and Software Agencies to make informed business decisions and stay ahead in the competitive market.

Top ChatGPT Prompts for Technical People and Startup Founders

Discover the ultimate list of ChatGPT prompts designed specifically for technical people and startup founders. Enhance your AI interactions and boost productivity with these powerful prompts. Revolutionize the way you work and stay ahead of the competition. Read now!

Chatbots for your website

Chatbots for your website

Discover the Power of Whatsapp-web.js for Safe and Easy Automation

Automate WhatsApp with ease using Whatsapp-web.js, a NodeJS client library that connects through the official WhatsApp Web app, reducing ban risks. Perfect for user or business accounts.

Revving Up Success: How to Validate Your Car Alert App Idea

Discover the keys to success in the car alert app market. Learn how to validate your business idea, ensuring your app sends timely alerts for document expirations and service checks.

Navigating the Food Delivery Fleet Management Landscape with ManagerLivrari

Discover Manager Livrari: Your all-in-one solution for streamlining food delivery fleet management. Automate calculations, generate weekly reports, and optimize your operations with ease.

Tools for Analyzing Your Competition

Before knowing where your business stands, you should look at the market and your competition. You need to know what marketing tactics and strategies are working for your audience, what traffic the competition has, and how they position.

Free Online Photo Editor with Cool Effects | Edit Images Easily

Transform your images with our free online photo editor with cool effects. Add filters, adjust colors, and apply creative enhancements. Edit your photos easily and make them stand out.

How to find the size of a table in SQL?

Learn how to determine the size of a SQL table with this informative guide. Discover efficient methods for measuring table size.