File permission for wordpress

File permissions

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–

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat