~# sudo mkdir -p /usr/share/nginx/website2.com ~# sudo chown -R www-data:www-data /usr/share/nginx/website2.com ~# sudo chmod -R 755 /usr/share/nginx/website2.com ~# sudo cp /etc/nginx/sites-available/website1 /etc/nginx/sites-available/website2 ~# sudo nano /etc/nginx/sites-available/website2 Website 1: server { listen 80 default_server; listen :80 default_server ipv6only=on; root /usr/share/nginx/website1; index index.php index.html index.htm; server_name website1.com www.website1.com; location / { Website 2: server { listen 80; listen :80; root /usr/share/nginx/website2; index index.php index.html index.htm; server_name website2.com www.website2.com; location / { Website 3: server { listen 80; listen :80; root /usr/share/nginx/website3; index index.php index.html index.htm; server_name website3.com www.website3.com; location...
~# sudo mysql -u root -p > show databases; > create database database_baru; > create user 'nama_user'@'localhost' identified by 'buatpassword'; > grant all privileges on database_baru.* to 'nama_user'@'localhost'; > quit ~# mysql -u root -p database_baru < /home/user/database_lama.sql ~# mysql -u root -p > show databases; > use database_baru; > show tables; > quit