Cara Konfigurasi Web Server Debian 8 pada Virtualbox dengan Mudah

Cara Konfigurasi Web Server Debian 8 pada Virtualbox dengan Mudah

Web server merupakan software yang memiliki layanan berbasis data dan memiliki fungsi untuk menerima permintaan dari HTTP/HTTPS pada klien yang dikenal sebagai web browser seperti Google Chrome, Opera, dan lainnya untuk mengirimkan kembali hasil tersebut dalam bentuk halaman web atau dokumen HTML. Nah, berikut ini adalah cara konfigurasi web server Debian 8 melalui virtual box.

Dari beberapa contoh web server yang ada, Apache merupakan web server terpopuler dan banyak digunakan oleh pengguna. Apache memiliki berbagai dukungan seperti kontrol akses, SSL, dan PHP. Kontrol akses pada Apache sebagai modul dimana yang banyak digunakan yaitu modul Perl. Sedangkan fitur PHP merupakan program mirip Common Gateway Interface (CGI) untuk memproses teks.

Baca Juga: Contoh Web Server yang Paling Banyak Digunakan

Konfigurasi Web Server

Berikut merupakan cara mudah untuk melakukan konfigurasi web server pada linux Debian 8 dengan menggunakan virtualbox.

  • Langkah pertama yaitu menginstall aplikasi Apache2.
  • Perintahnya apt-get-install Apache2 lalu tekan Y.
  • Biasanya terdapat pada DVD Binary 1, insert DVD 1 pada CD-Rom.
  • Tekan Enter dan tunggu hingga selesai.

Setelah menginstal Apache2, lanjutkan ke tahap konfigurasi web server.

  • Masuk ke direktori sites-availabel pada Apache2.
  • Perintahnya: cd/etc/apache2/sites-available.
  • Di dalam direktori sites-available terdapat 2 file bernama 000-default.conf dan default-ssl.conf
  • Salin file 000-default.conf dan ubah menjadi nama sesuai dengan nama domain yang diinginkan, misal percobaan.conf
  • Perintahnya: cp 000-default.conf percobaan.conf
  • Setelah itu, edit dengan perintah pico percobaan.conf
  • Cari baris #ServerName dengan menekan tombol Ctrl+w lalu ketikan kata yang dicari.
  • Ganti dengan script seperti di bawah ini:

ServerName www.percobaan.com&lt

ServerAdmin [email protected]

DocumentRoot /home/web

  • Jika sudah, tekan Ctrl+X ketik Y kemudian Enter.
  • Pada bagian script DocumentRoot/home/web, Anda dapat menentukan dimana web akan di simpan.
  • Perintahnya: mkdir web /home
  • Selanjutnya edit file apache2.conf
  • Perintahnya: Pico/etc/apache2/apache2.conf
  • Carilah kalimat Require all denied kemudian ganti dengan Require all granted
  • Simpan jika sudah.
  • Ketik perintah a2dissite 000-default.conf untuk mendisable file 000-default.conf
  • Lanjutkan dengan mengetik perintah a2ensite percobaan.conf untuk mengaktifkan file percobaan.conf
  • Kemudian, muat satu file HTML untuk disimpan di direktori Home/Web
  • Ketikan script seperti dibawah ini:

<HTML>

<head><title>web server</tittle>

</head>

<body>

<h1><center>Selamat Web Server Telah Berhasil Dibuat</center> </h1>

</body>

</HTML>

  • Jika sudah, simpan dengan nama index.html pada direktori /home/web
  • Restart aplikasi dengan perintah service apache2 restart
  • Selesai.

Baca Juga: Macam-macam Web Server Populer Serta Pengertiannya

30 thoughts on “Cara Konfigurasi Web Server Debian 8 pada Virtualbox dengan Mudah

  1. 395714 350083It is perfect time to make some plans for the future and it is time to be pleased. Ive read this post and if I could I wish to suggest you some fascinating points or suggestions. Possibly you can write next articles referring to this post. I want to read even more issues about it! 597794

  2. I don’t even know the way I stopped up right here, however I assumed this submit
    was once great. I don’t understand who you’re but certainly you are going to a famous
    blogger for those who aren’t already. Cheers!

  3. My coder is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using WordPress on several websites
    for about a year and am worried about switching to another platform.
    I have heard great things about blogengine.net.
    Is there a way I can transfer all my wordpress content
    into it? Any kind of help would be really appreciated!

  4. Greetings from California! I’m bored at work so I decided to browse your site on my iphone during lunch break.
    I really like the knowledge you present here and can’t wait to take a look when I
    get home. I’m amazed at how quick your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyways, excellent site!

  5. I do not know if it’s just me or if perhaps everyone
    else experiencing issues with your blog. It appears as though some of the written text within your
    content are running off the screen. Can someone else please comment and let me know if this is happening to them
    too? This may be a issue with my browser because I’ve had this happen previously.
    Appreciate it

  6. Hi there, i read your blog from time to time and i own a similar one
    and i was just wondering if you get a lot of spam feedback?
    If so how do you prevent it, any plugin or anything you can suggest?
    I get so much lately it’s driving me crazy so any support is very much appreciated.

  7. You are so cool! I do not think I’ve truly read through anything like this before.
    So wonderful to find someone with unique thoughts on this subject.

    Seriously.. thanks for starting this up. This website is something that’s needed on the web, someone with a bit of originality!

  8. I like the helpful information you supply to your articles.
    I’ll bookmark your weblog and take a look at again right here regularly.

    I’m somewhat sure I’ll learn lots of new stuff proper here!
    Best of luck for the next!

  9. First off I would like to say great blog! I had a quick question in which I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and clear your mind prior to
    writing. I have had a hard time clearing my mind
    in getting my ideas out there. I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes are lost just trying to figure out how to begin. Any ideas or hints?
    Thank you! asmr https://app.gumroad.com/asmr2021/p/best-asmr-online asmr

  10. I’m truly enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more enjoyable for me
    to come here and visit more often. Did you hire out a designer to create your
    theme? Outstanding work! scoliosis surgery https://0401mm.tumblr.com/ scoliosis
    surgery

  11. Thank you for another informative site. Where else could I get that kind of information written in such an ideal way? I have a project that I’m just now working on, and I’ve been on the look out for such info.

  12. certainly like your web site but you need to test the spelling on quite a few of your
    posts. Several of them are rife with spelling problems and I to find it very troublesome
    to tell the reality on the other hand I will surely come again again.

  13. Undeniably consider that that you stated. Your favourite reason seemed to be at the web the easiest factor to take into accout
    of. I say to you, I definitely get annoyed even as other people
    consider concerns that they just do not recognize about.
    You managed to hit the nail upon the top as smartly as defined
    out the entire thing without having side effect , people
    could take a signal. Will probably be again to get more.
    Thanks

  14. 224252 638781I notice there is undoubtedly lots of spam on this weblog. Do you need to have support cleaning them up? I may aid between courses! 904036

  15. Yesterday, while I was at work, my cousin stole my iphone and tested to see
    if it can survive a 25 foot drop, just so she can be a youtube
    sensation. My apple ipad is now broken and she has 83
    views. I know this is entirely off topic but I had to share
    it with someone!

Leave a Reply

Your email address will not be published.

Berita / Artikel lainnya