-->
MWVcNWN9MqB8NaxcMGJ4NGt5NSMkyCYhADAsx6J=
MASIGNCLEANSIMPLE103
JOBSHEET 11 Setting Web Server Di Ubuntu

JOBSHEET 11 Setting Web Server Di Ubuntu

Nama : Sahrul Sidik
JOBSHEET 11
SETTING WEB SERVER DI UBUNTU
Tanggal : 
Kelas : XII TKJ 2
SK/KD : 
No. JobSheet : 11


I. TUJUAN
MenSetting Web Server Di Ubuntu

II. PENDAHULUAN
Web server merupakan software yang memberikan layanan data yang berfungsi menerima permintaan HTTP atau HTTPS dari klien yang dikenal dengan browser web dan mengirimkan kembali hasilnya dalam bentuk halaman - halaman web yang umumnya berbentuk dokumen HTML

 III. ALAT DAN BAHAN
1. Virtual Box  yang sudah terinstall ubuntu server 12.04
2. Mozilla Firefox
IV. LANGKAH KERJA 

  • Install aplikasi Web Server
root:# apt-get install apache2

  • Install aplikasi PHP
root:# apt-get install php5
setelah itu setting ip address
root:#nano /etc/network/interfaces

Save Dengan Cara Tekan CTRL+ALT+X Lalu Enter

root:#nano /etc/resolv.conf


root:#cd ~
root:~#cd /var/www

  •   buat directory file web yang akan dijalankan
root:~#mkdir coba
root:~#ls
root:~#cd coba
root:~#nano index.html 

 <html><body><marquee><h1>Sahrul</h1></marquee> <h1>AL-BAHRI</h1></body></html> 
Save Dengan Cara Tekan CTRL+ALT+X Lalu Enter

  • Edit file /etc/apache2/sites-available/default
root:# cd /etc/apache2/
root:#ls

root:#cd sites-available
root:#nano default 





Ubahlah menjadi :

<VirtualHost*:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/coba
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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/
<Directory “/usr/lib/cgi-bin”>
AllowOverride None
Option ExecCGI –MultiView +SymLinks IfOwnerMatch
Order allow,deny
Allow from all
</Directory>

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/”
<Directory “/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
</Directory>

</VirtualHost>

Simpan dengan menekan Ctrl + O Enter lalu Ctrl+X



  •  Restart Daemon Apache
root:~# /etc/init.d/apache2 restart
  • Tes Web Server pada mozila firefox
192.168.1.129



V. Hasil Kerja 
Web Server telah terkonfigurasi
269979117652814563