Chapter 02
Konfigurasi Shared
Hosting
© 2021 IlmuJaringan(dot)Com 6
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
Adapun sistem Linux yang digunakan pada modul training ini adalah
CentOS 7. Untuk sistem Linux lainnya, dapat menggunakan beberapa
penyesuaian perintah konfigurasi.
© 2021 IlmuJaringan(dot)Com 7
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
ONBOOT="yes"
IPADDR="1.1.1.1"
PREFIX="24"
GATEWAY="1.1.1.254"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
DOMAIN="ilmujaringan.com"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
atau
© 2021 IlmuJaringan(dot)Com 8
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
DNS Server
Untuk mengelola domain dan sub domain dari web site, server yang
menjadi shared hosting harus menjalankan layanan DNS (Domain
Name System). Daemon yang umum digunakan untuk menjalankan
layanan DNS adalah BIND
© 2021 IlmuJaringan(dot)Com 9
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
FTP Server
FTP Server dibutuhkan server shared hosting untuk mempermudah
pengelola website dalam mengupload konten web, seperti gambar,
video, plugins website dan file-file lain. Yang umum digunakan
sebagai FTP Server adalah ProFTPD.
© 2021 IlmuJaringan(dot)Com 10
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
Database Server
Website yang dinamis atau aplikasi berbasis web membutuhkan
dukungan Database. Sehingga server shared hosting juga harus
menjalankan service database. Yang umum digunakan untuk
menjalankan service database adalah MySQL atau Mariadb
© 2021 IlmuJaringan(dot)Com 11
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
© 2021 IlmuJaringan(dot)Com 12
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
© 2021 IlmuJaringan(dot)Com 13
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
© 2021 IlmuJaringan(dot)Com 14
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Web Server
Layanan utama dari server shared hosting adalah layanan web.
Layanan web atau service web umumnya dijalankan oleh Apache,
beberapa server menggunakan nginx. Web server juga harus
mendukung penggunaan bahasa pemrograman web, seperti bahasa
pemrograman PHP.
© 2021 IlmuJaringan(dot)Com 15
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
Opsi lain yang dapat digunakan selain start dan status, adalah stop
dan reload.
© 2021 IlmuJaringan(dot)Com 16
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
© 2021 IlmuJaringan(dot)Com 17
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
Email Server
Shared hosting membutuhkan dukungan layanan email, baik bagi user
akun hosting maupun web atau aplikasi yang dijalankan. Beberapa
aplikasi membutuhkan pengiriman email untuk notifikasi proses dan
layanan.
© 2021 IlmuJaringan(dot)Com 18
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
Konfigurasi Postfix
Konfigurasi Postfix dapat dilakukan pada file /etc/postfix/main.cf.
Perintah yang dapat digunakan adalah sebagai berikut.
© 2021 IlmuJaringan(dot)Com 19
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
© 2021 IlmuJaringan(dot)Com 20
Administrasi Shared Hosting Server | Chapter 02. Konfigurasi Shared Hosting
© 2021 IlmuJaringan(dot)Com 21