Allow WordPress to write/upload media without permission issues.
sudo chown -R www-data:www-data /var/www/mytestsite/wp-content/uploads
| Part | Meaning |
|---|---|
www-data:www-data |
Make the web server the owner and group |
-R |
Recursive (everything inside uploads) |
β οΈ Without this, WordPress will show errors like βunable to create directory.β
Use a mix of ownership:
uploads)