Anda di halaman 1dari 4

CARA INSTALL CANDY CBT DI UBUNTU 18

1. Login ke VPS dengan user root menggunakan aplikasi bitvise. Jika belum punya, bisa
download aplikasinya: (https://dl.bitvise.com/BvSshClient-Inst.exe)

Diisi dengan
Diisi dengan Password
IP Public yang
yang dibuat saat
diperoleh saat
membeli VPS
membeli VPS
2. Klik : New Terminal Console untuk menginstal berbagai kebutuhan VPS

3. Update Ubuntu 18 kalian menggunakan perintah :


apt-get update -y
apt-get install perl git nano wget -y

4. Install apache menggunakan perintah :


apt-get install apache2 -y
systemctl enable apache2
systemctl start apache2
5. Install MariaDB Server dengan menggunakan perintah :
apt-get install mariadb-server mariadb-client
Jika muncul konfirmasi, tekan : Y, kemudian ENTER
systemctl enable mariadb
systemctl start mariadb

6. Setting MariaDB
mysql_secure_installation
Enter current password for root (enter for none): (tekan ENTER)
Set root password? [Y/n] (tekan Y)
New Password : Password_123
Re-enter new password : Password_123
Remove anonymous users? [Y/n] : Y
Disallow root login remotely? [Y/n] : n
Remove test database and access to it? [Y/n] : Y
Reload privilege tables now? [Y/n] : Y

mysql -uroot -p
Enter Password : Password_123
MariaDB [(none)]> GRANT ALL ON *.* to 'root'@'localhost' IDENTIFIED BY
'Password_123' WITH GRANT OPTION;
MariaDB [(none)]> flush privileges;

7. Install php7.2 dengan mengetikkan perintah :


apt-get install php7.2 php7.2-fpm php7.2-mysql php-common php7.2-cli php7.2-
common php7.2-json php7.2-opcache php7.2-readline php7.2-mbstring php7.2-xml
php7.2-gd php7.2-curl libapache2-mod-php -y
Klik ini
8. Copy Folder candycbt ke : /var/www/html
Copy database cbt.sql yang udah ada ke: /home

Gunakan mirip
windows
explorer di
samping untuk
copy file/
database ke
server

9. Create – Import Database ujian dengan perintah :


mysql -uroot -p
Enter Password : Password_123
MariaDB [(none)]> create database ujian;
MariaDB [(none)]> use ujian;
MariaDB [ujian]> source /home/cbt.sql;

10.Setting database candycbt dengan cara :


Seperti langkah 8, masuk directory : /var/www/html/candycbt/config
Edit file : config.database.php
$host = 'localhost';
$user = 'root’;
$pass = 'Password_123';
$debe = 'ujian';

11.Selamat, candycbt sudah bisa diakses dengan cara : IPaddress/candycbt

Anda mungkin juga menyukai