Permissions for Wordpress - Ask Ubuntu
i believe might correct unless changed recently:
answer on stack overflow manuel schneid3r:
when setup wp (the webserver) may need write access files. access rights may need loose.
chown www-data:www-data -r * # let apache 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 setup should tighten access rights, according hardening wordpress files except wp-content should writable user account only. wp-content must writable www-data too.
chown <username>:<username> -r * # let useraccount owner chown www-data:www-data wp-content # let apache owner of wp-content
maybe want change contents in wp-content later on. in case could
- temporarily change user www-data
su
,- give wp-content group write access 775 , join group www-data or
- give user access rights folder using acls.
whatever do, make sure files have rw permissions www-data.
correct me if wrong though :).
Comments
Post a Comment