-->

Wednesday, 27 January 2021

author photo

 Tutorial instalasi debian server menggunakan Virtual Box :

SIAPKAN BAHAN-BAHAN YANG AKAN DIGUNAKAN :

- File ISO DEBIAN SERVER 10.1

- Virtual Box

- File Moodle


Setelah selesai install Debian Server langkah selanjutnya yaitu :

MATIKAN REPOSITORI

Langkahnya yaitu :

Masuk dan edit source list " nano /etc/apt/source.list "

Beri tanda  # (pagar) untuk menonaktifkan repositori : 

#deb cdrom:[Debian GNU/Linux 10.7.0 _Buster_ - Official amd64 DVD Binary-1 20201205-11:17]/ bust$


Setting SSH untuk remote server, langkah-langkah sebagai berikut :

1. Edit Ssh_config ( #nano /etc/ssh/sshd_config)

2. Ganti port SSH (Ganti port diatas 10000)

3. Ganti permitrootlogin yes 

4. Simpan

5. Restart SSH (intruksinya " /etc/init.d/ssh restart " atau " systemctl restart ssh.service "


Install NGINX dengan langkah-langkah sebagai berikut :

apt-get update

apt-get upgrade

apt-get install nginx

systemctl stop nginx.service

systemctl enable nginx.service

systemctl start nginx.service


Langkah selanjutnya yaitu :

apt-get install apt-transport-https lsb-release ca-certificates

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

apt-get install sudo 

echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list

apt-get update

apt-get upgrade


INSTALL PHP 7.4

apt-get install php7.4-fpm

apt-get install aspell graphviz clamav php7.4-common php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-mysql php7.4-cli php7.4-ldap php7.4-zip php7.4-curl

nano /etc/php/7.4/fpm/php.ini

Ikuti Setting yang ada pada file "php.ini" sesuai dengan settingan dibawah ini :

file_uploads = On

allow_url_fopen = On

memory_limit = 128M

upload_max_filesize = 8M

max_execution_time = 60

post_max_size = 8M

cgi.fix_pathinfo = 0


INSTALL MARIADB

apt-get install mariadb-server mariadb-client

systemctl stop mysql.service

systemctl start mysql.service

systemctl enable mariadb.service

mysql_secure_installation


Pada saat proses instalasi ikuti langkah berikut ini :

 " Enter current password for root (enter for none): Tekan Enter Saja

Set root password? [Y/n]: Y

New password: Masukkan Password

Re-enter new password: Ulangi 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 "

SELESAI


Tambahkan settingan "server.cnf" dengan cara sebagai berikut :

nano /etc/mysql/mariadb.conf.d/50-server.cnf


"default_storage_engine = innodb

innodb_file_per_table = 1

innodb_file_format = Barracuda

innodb_large_prefix = 1 "


RESTART MARIADB

systemctl restart mariadb.service


BUAT DATABASE

mysql -u root -p

CREATE DATABASE lms;

CREATE USER 'lms'@'localhost' IDENTIFIED BY 'lms';

GRANT ALL ON lms.* TO 'lms'@'localhost' IDENTIFIED BY 'lms' WITH GRANT OPTION;

FLUSH PRIVILEGES;

EXIT;


/etc/nginx/sites-available/default

chmod o+r /etc/resolv.conf

mkdir /var/www/html/moodledata

chmod /var/www/html/moodledata

nano /var/www/html/moodle/config.php (paste config disini)


your advertise here

This post have 0 komentar


EmoticonEmoticon

Next article Next Post
Previous article Previous Post