Skip to content

Instantly share code, notes, and snippets.

@mrizwan47
Created February 15, 2021 17:53
Show Gist options
  • Save mrizwan47/24e2678608f5928afb93faa9debe0472 to your computer and use it in GitHub Desktop.
Save mrizwan47/24e2678608f5928afb93faa9debe0472 to your computer and use it in GitHub Desktop.
Quick WP Installation on Ubuntu/Linux
# Download Latest WordPress
wget https://wordpress.org/latest.zip
# Unzip WP Zip file
unzip latest.zip
# (optional) change directory to something else
mv wordpress new_name
# Enter into MySQL (could require password depending on server config)
mysql
# Create new user in mysql (be sure to replace "new_username" and "password_here")
mysql> CREATE USER 'new_username'@'localhost' IDENTIFIED BY 'password_here';
# Create DB for new Installation (be sure to replace "database_name"
mysql> CREATE DATABASE `database_name`;
# Create DB for new Installation (be sure to replace "database_name" and "new_username"
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'new_username'@'localhost';
# Finally, Flush Privileges!
mysql> FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment