Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AbhishekGhosh
Created June 24, 2013 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbhishekGhosh/5848293 to your computer and use it in GitHub Desktop.
Save AbhishekGhosh/5848293 to your computer and use it in GitHub Desktop.
WordPress permission
# 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