Created
June 24, 2013 07:22
-
-
Save AbhishekGhosh/5848293 to your computer and use it in GitHub Desktop.
WordPress permission
This file contains 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
# Downloading WordPress and un-tar it | |
cd /var/www/ | |
wget --content-disposition http://wordpress.org/latest.tar.gz | |
# Or simply | |
wget http://wordpress.org/latest.tar.gz | |
# Extract | |
tar -xzvf latest.tar.gz | |
# Setting proper permission of www folder | |
chown -R www-data:www-data /var/www | |
find /var/www -type f -exec chmod 0600 {} \; | |
find /var/www -type d -exec chmod 0700 {} \; | |
# Moving all files | |
cd wordpress | |
mv * /var/www/ | |
# or | |
mv * . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment