Skip to content

Instantly share code, notes, and snippets.

View luandevpro's full-sized avatar

Luận Trần luandevpro

View GitHub Profile
git push origin master
git remote add origin https://github.com/luandevpro/Gitcoban.git
@luandevpro
luandevpro / Terminal
Last active March 31, 2018 03:09
WordPress
sudo apt-get install mysql-server mysql-client mysql-common
sudo apt-get install mysql-workbench
@luandevpro
luandevpro / Terminal
Created March 31, 2018 03:08
WordPress
sudo apt install nginx
@luandevpro
luandevpro / Terminal
Created March 31, 2018 03:09
WordPress
sudo systemctl stop nginx.service
sudo systemctl start nginx.service
sudo systemctl disable nginx.service
sudo systemctl enable nginx.service
@luandevpro
luandevpro / Terminal
Created March 31, 2018 03:12
WordPress
Enter current password for root (enter for none): Just press the Enter
Set root password? [Y/n]: Y
New password: Create password
Re-enter new password: Repeat password
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
@luandevpro
luandevpro / Terminal
Created March 31, 2018 03:14
WordPress
sudo apt install php-fpm
@luandevpro
luandevpro / Terminal
Created March 31, 2018 03:15
WordPress
sudo nano /etc/nginx/sites-available/default
@luandevpro
luandevpro / Terminal1
Last active March 31, 2018 03:27
WordPress
server {
listen 80 default_server;
listen [::]:80 default_server;
............
............
#
index index.php index.html index.htm;
# pass PHP scripts to FastCGI server
#
@luandevpro
luandevpro / Terminal1
Last active April 2, 2018 04:01
WordPress
mysql -u root -p