Skip to content

Instantly share code, notes, and snippets.

View luandevpro's full-sized avatar

Luận Trần luandevpro

View GitHub Profile
@luandevpro
luandevpro / Terminal
Created March 31, 2018 03:44
WordPress
FLUSH PRIVILEGES;
@luandevpro
luandevpro / Terminal
Created March 31, 2018 03:48
WordPress
sudo nano /etc/nginx/sites-available/default
@luandevpro
luandevpro / Terminal
Created March 31, 2018 04:11
WordPress
sudo nginx -t
@luandevpro
luandevpro / Terminal
Created March 31, 2018 04:13
WordPress
nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/default:98
nginx: configuration file /etc/nginx/nginx.conf test failed
@luandevpro
luandevpro / Terminal
Created March 31, 2018 04:21
WordPress
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
@luandevpro
luandevpro / Terminal
Created March 31, 2018 04:26
WordPress
sudo apt-get update
sudo apt-get install php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc
@luandevpro
luandevpro / Terminal1
Created March 31, 2018 04:30
WordPress
cd /tmp
@luandevpro
luandevpro / Terminal
Created March 31, 2018 04:50
WordPress
sudo adduser sammy
@luandevpro
luandevpro / Terminal
Created March 31, 2018 04:52
WordPress
Adding user `sammy' ...
Adding new group `sammy' (1001) ...
Adding new user `sammy' (1001) with group `sammy' ...
The home directory `/home/sammy' already exists. Not copying from `/etc/skel'.
Enter new UNIX password: Tran12345
Retype new UNIX password: Tran12345
passwd: password updated successfully
Changing the user information for sammy
Enter the new value, or press ENTER for the default
Full Name []: wordpress
@luandevpro
luandevpro / Terminal1
Created March 31, 2018 04:54
WordPress
sudo chown -R sammy:www-data /var/www/html