Skip to content

Instantly share code, notes, and snippets.

@edheltzel
Last active September 8, 2015 12:41
Show Gist options
  • Save edheltzel/ebfa514aaa49800ae819 to your computer and use it in GitHub Desktop.
Save edheltzel/ebfa514aaa49800ae819 to your computer and use it in GitHub Desktop.
Update wordpress permissions
# Recommendation from Wordpress
#
# Set all diretories without touching files
sudo find /var/www -type d -exec chmod 755 {} +
# Set all files without touching directories
sudo find /var/www -type f -exec chmod 644 {} +
# and then set the owner and group as www-data:
sudo chown -R www-data:www-data /var/www/your_wordpres_folder
# When you use SSH to upload files, or install
# plugins, those files are set as owned by the
# user you are logged in with SSH, so that could
# be what was causing the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment