Created
December 12, 2021 00:29
-
-
Save mrimp/8c5cdc178b2ed5d55fb3c6adcfd74b9e to your computer and use it in GitHub Desktop.
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
# MYSQL | |
sudo apt install mariadb-server | |
sudo mysql_secure_installation | |
# WORDPRESS | |
cd /var/www/html | |
sudo wget http://wordpress.org/latest.tar.gz | |
sudo tar xzf latest.tar.gz | |
sudo mv wordpress/* ./ | |
sudo rm -rf wordpress latest.tar.gz | |
sudo usermod -a -G www-data pi | |
sudo chown -R -f www-data:www-data /var/www/html | |
sudo mysql -u root -p<password> | |
CREATE DATABASE wordpress; | |
CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'new_password'; | |
GRANT ALL ON wordpress.* TO 'new_user'@'localhost'; | |
CTRL + D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment