Info Bang Maman
Sunday, 21 Apr 2024
  • BELAJAR BELAJAR DAN BELAJAR SUATU SAAT APA YANG KITA PELAJARI AKAN BERMANFA'AT BUAT DIRI KITA KELUARGA KITA DAN ORANG-ORANG YANG ADA DI SEKITAR KITA

KONFIGURASI WEB SERVER

Diterbitkan : - Kategori : LINUX

Sebelum anda melakukan setting DNS Server, ada beberapa hal yang harus anda lakukan, yaitu :

1. Menginstall aplikasi WEB server
2. Membuat konfigurasi named.conf pada directory /etc/bind/
3. Membuat konfigurasi domain pada directory /etc/bind/
4. Membuat konfigurasi resolver pada directory /etc/bind/

Langkah-langkah konfigurasi
1. Install aplikasi Web Server
root:~# apt-get install apache2
2. Install aplikasi PHP
root:~# apt-get install php5
3. buat directory file web yang akan dijalankan
root:~# mkdir /var/www/web
4. Edit file /etc/apache2/sites-available/default
root:# nano /etc/apache2/sites-available/default

Ubahlah menjadi :
NameVirtualHost kursus-it.com

ServerAdmin webmaster@kursus-it.com

DocumentRoot /var/www/web/

Options FollowSymLinks
AllowOverride None

Option Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
# This directive allows us to have apache2’ s default start page
# in /apache2-default/, but still have / got to the right place
</Directory

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Option ExecCGI –MultiView +SymLinks IfOwnerMatch
Order allow,deny
Allow from all

ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ “/usr/share/doc/”

Option Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128

Simpan dengan menekan Ctrl + X, Y, enter

5. Membuat Web pada directory /var/www/web/

root:~# nano /var/www/web/index.html

SELAMAT DATANG DI WEB SERVER KURSUS-IT.COM

Simpan dengan menekan Ctrl + X, Y, enter

6. Restart Daemon Apache
root:~# /etc/init.d/apache2 restart

7. Tes Web Server
root:~# lynx kursus-it.com

Permasalahan pada saat syntax di atas tidak tampil adalah :
• Lynx belum terinstall
• Periksa kembali pada /etc/apache2/sites-available/default, letak directory belum sesuai.
• Konfigurasi pada /etc/hosts, nama hostnya belum sesuai.
SELAMAT DATANG DI WEB SERVER KURSUS-IT.COM

Post Terkait

Pengetesan Konfigurasi Samba

Tuesday, 24 Oct 2017

KONFIGURASI SAMBA SERVER

Tuesday, 24 Oct 2017

SAMBA SERVER

Tuesday, 24 Oct 2017

KONSEP FILE SERVER

Tuesday, 24 Oct 2017

Perintah APT pada Linux Ubuntu

Monday, 16 Oct 2017

Management User dan Group

Sunday, 15 Oct 2017

Perintah Dasar Linux

Sunday, 15 Oct 2017

Perintah SCP pada linux

Wednesday, 11 Oct 2017

Membuat repo ubuntu secara localhost

Saturday, 26 Nov 2016

Ubuntu Desktop tidak bisa login

Friday, 25 Nov 2016