Skip to content

Instantly share code, notes, and snippets.

@marshallmick007
Last active March 11, 2020 20:00
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 marshallmick007/a83df0be059c7db151e3d4c8fcd0989b to your computer and use it in GitHub Desktop.
Save marshallmick007/a83df0be059c7db151e3d4c8fcd0989b to your computer and use it in GitHub Desktop.
wget https://wordpress.org/latest.zip
unzip latest.zip
mv wordpress www

chown www-data:www-data  -R www
cd www
# Change directory permissions rwxr-xr-x
find . -type d -exec chmod 755 {} \;  
# Change file permissions rw-r--r--
find . -type f -exec chmod 644 {} \;  

mysql -u root -p

CREATE DATABASE database_name;
GRANT ALL ON database_name.* TO 'database_user'@'localhost' IDENTIFIED BY 'user_password';
FLUSH PRIVILEGES;
EXIT;

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