Skip to content

Instantly share code, notes, and snippets.

@LinauxTerminology
Last active February 25, 2021 16:25
Show Gist options
  • Select an option

  • Save LinauxTerminology/2db182897b618427e418ccab57828ef9 to your computer and use it in GitHub Desktop.

Select an option

Save LinauxTerminology/2db182897b618427e418ccab57828ef9 to your computer and use it in GitHub Desktop.
I Will Do Install Wordpress with LEMP
##Install Nginx
sudo apt update
sudo apt install nginx
systemctl restart nginx
systemctl enable nginx
sudo service nginx status
sudo ufw allow OpenSSH
sudo ufw allow 'Nginx HTTP'
sudo ufw enable
sudo ufw status
ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
sudo nano /var/www/html/index.nginx-debian.html
To save and close nano, press CTRL + X and then press y and ENTER to save changes.
Step 2 — Installing MySQL
sudo apt install mysql-server
sudo service mysql status
sudo mysql_secure_installation
sudo mysqladmin -p -u root version
CREATE DATABASE school;
CREATE USER 'trainee'@'localhost' IDENTIFIED WITH mysql_native_password BY 'D@y-7869';
ALTER USER 'trainee'@'localhost' IDENTIFIED WITH mysql_native_password BY 'D@y-7869';
use school;
FLUSH PRIVILEGES;
exit
#wordpress lemp #install wordpress lemp ubuntu 18.04 #wordpress
@LinauxTerminology

Copy link
Copy Markdown
Author

Screenshot from 2021-02-25 07-08-46
Screenshot from 2021-02-25 07-26-52
Screenshot from 2021-02-25 07-27-25
Screenshot from 2021-02-25 07-27-38

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