Created
February 15, 2021 17:53
-
-
Save mrizwan47/24e2678608f5928afb93faa9debe0472 to your computer and use it in GitHub Desktop.
Quick WP Installation on Ubuntu/Linux
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
# 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