Skip to content

Instantly share code, notes, and snippets.

View smntb's full-sized avatar
:octocat:
Not Today

Nouman Tayyab smntb

:octocat:
Not Today
View GitHub Profile
@smntb
smntb / wp-permissions
Created June 29, 2021 11:57
Apply correct Permissions to WordPress webroot
# Go to the WordPress root directory
cd /path/to/wordpress
# Change ownership
find ./ -exec chown www-data:www-data {} \;
# Change folder and files permissions
find ./ -type d -exec chmod 755 {} \;
find ./ -type f -exec chmod 644 {} \;