How to provide writing rights to your apache server in your /var/www directory?

I installed WordPress in my droplet and I could not update themes or install plugins. The error was “unable to create directory”.

If you also came across this issue make sure you provide righting to your www directory with the following command:

sudo chown -R www-data:www-data /var/www

Leave a Reply

Close Menu