This happens due to permission issue to the folder( wp-content ). follow the below steps to resolve the issue.
- login to your droplet/instance with root user
- Copy code to wp-config.php file
- go to the root folder of the project ( Mostly its /var/www/html or project folder ).
- copy below command and run in the console.
(sudo) chown -R www-data:www-data wp-content
That’s it. Happy coding 🙂