Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gegeriyadi/787f1cb6d7532b73bfd4dcdc9089c6bb to your computer and use it in GitHub Desktop.
Save gegeriyadi/787f1cb6d7532b73bfd4dcdc9089c6bb to your computer and use it in GitHub Desktop.
Best permission for wordpress directory (ubuntu 16.04)

Best permission for wordpress directory (ubuntu 16.04)

first, go to your wordpress path and then run this command

sudo chown www-data:www-data . -R
sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;

don't forget to change yourwordpressfolder to your real path wordpress folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment