'WP-Server-settings: contents in wp-content not writeable
When we setup WordPress - we should give the Server the needs the write access to the files. So we should go like so; the access rights may need to be loose.
chown www-data:www-data -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
After the setup of course we should tighten the access rights, according to Hardening WordPress all files except for wp-content should be writable by your user account only. wp-content must be writable by www-data too.
chown <username>:<username> -R * # Let your useraccount be owner
chown www-data:www-data wp-content # Let apache be owner of wp-content
Hmmm - here on contents in wp-content we are sometimes doing changes - so we do the final chown later on.
In this case we could temporarily change to the user to www-data with su, give wp-content group write access 775 and join the group www-data or give our user the access rights to the folder using ACLs.
I am facing a problem - with the upload of a demo content - of a theme. It is not possible to do the upload. Can this issue be caused due to the server permissions and the user of the files!?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

