Last active
September 8, 2015 12:41
-
-
Save edheltzel/ebfa514aaa49800ae819 to your computer and use it in GitHub Desktop.
Update wordpress permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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