Total Tayangan Halaman

About Me

Foto Saya
Ramadhianto Putra Laksono
Saya Mahasiswa Stmik-Amik Riau.
Lihat profil lengkapku

Pengikut

Rama Debian. Diberdayakan oleh Blogger.

Debian

Debian
Minggu, 07 Agustus 2011

Konfigurasi Web Server


  1. Masuk sebagai root dengan menekan ctrl+alt+F1
  2. Nah disini kita login sebagai root, ini sebagai contoh ketikan login: root password : pekanbaru
  3. server:~# cd /
  4. jika belum terinstal Apache nya ketitkan  perintah dibawah ini
  5. server:#apt-get install apache2
  6. ingat pastikan cd debiannya masih aktif di drive cdroom
  7. oke kita mulai pekerja untuk konfigurasi Apache2, perhatikan betul langkah demi langkah yang penulis buat :p,sekarang kita mencoba
  8. “ketikan perintah ini sehingga muncul editor dbawah ini kebutulan penulis membuatnya pakai editor nano, nah terserah anda mau buat pakai editor apa aja”
  9. Nah sekarng kita buat folder untuk menyimpan seluruh website kita kedalam folder /var/www
edit seperti dbawah ini
<html>
<head>
<title>Konfigurasi Webserver Debian etch4</title>
<body><marquee><h1>Selamat Konfigurasi Webserver Anda Berhasil<marquee></h1></b$
</head>
</html>

  1. Selanjutnya kita edit file di 
  2. server:# cd /etc/apache2/sites-available/default


NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost
        ServerName www.smkntujuh.sch.id
        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/smkntujuh/www/public_html/>
                Options 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 / go to the right place
                # RedirectMatch ^/$ /apache2-default/
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
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/">
        Options 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>

  1. restart apache2 nya
  2. /etc/init.d/apache2 restart
  3. Liat di clients buka browser ketikan www.smkntujuh.sch.id, lihat gambar dibawah ini
  
  1. Sampai disini konfigurasi server anda berhasil

0 komentar: