'Wordpress can't upload photos to wp-content

Running php on my Ubuntu box The PHP process runs under my current user account named tiger

Below are the file permissions for the wp-content folder

drwxr-xr-x 15 tiger www-data 4.0K Apr 23 10:16 wp-content

When the Wordpress blog editor tries to upload photos through the Wordpress dashboard, they are presented with below error

enter image description here

Below is the file hierarchy for WordPress showing file permissions.

root-site-directory/    drwxr-xr-x 15 tiger    www-data 
`-- wp-content          drwxr-xr-x 15 tiger    www-data
    `-- uploads         drwxr-xr-x 15 tiger    www-data
        `-- 2022        drwxr-xr-x 15 tiger    www-data
            `-- 04      drwxr-xr-x 15 tiger    www-data

What am I missing ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source