I am trying to update a WordPress plugin and I receive this error message:
Update failed: Could not create directory. /var/www/html/wp-content/upgrade/akismet.5.3
When I go to Tools > Site Health > Info > File Permissions, I see this:
How can I make those directories Writable? I thought it would by using 755 recursively for /var/www/html/wp-content, but I already have those permissions and it is still not working.

The problem was the user Apache was running as. To fix it, I opened this file:
/etc/apache2/envvars, and I commented out a couple of lines, replacing them with the user that I wanted to run Apache as:Then I restarted Apache with
sudo service apache2 restart.I confirmed that Apache was now running as my desired user:
Everything in
/var/www/html/wp-contentalso belongs tojmontoya, which I specified it withchown. Permissions are properly defined withchmod.Now I see what I expected: