Senin, 12 Februari 2018

Sekilas tentang Sistem Operasi, Sistem Opersi Jaringan dan Web Server

Sistem Operasi

Sistem Operasi adalah perangkat lunak sistem yang mengontrol sumber daya dari perangkat keras dan perangkat lunak serta sebagai daemon untuk komputer. Sistem operasi digolongkan menjadi dua, closed source OS dan open source OS.
Closed source OS ialah os yang sumber kodenya tidak disebarkan dan memiliki lisensi komersial. Sedangkan open source OS sebaliknya, open source os dapat dikembangkan oleh siapa saja dan sumber kodenya tersebar.

Sistem operasi open source
1.Linux
Sistem operasi closed souce
1.Windows
2.Machintos
3.UNIX, dsb.

Sistem Operasi Jaringan
Sistem operasi jaringan adalah sistem operasi yang diperuntukkan untuk komputer server dan untuk melayani client.

Contoh sistem operasi jaringan
1. Windows Server
2. Linux Server (Debian Server, Ubuntu Server, dsb)

Web Server
Web Server adalah software yang memberikan layanan berbasis data dan menerima permintaan dari HTTP dan HTTPS pada client (web browser). Contohnya Apache Web Server.

Apache web server memiliki keunggulan
1. Software freeware (bebas dan gratis)
2. Mudah dikonfigurasi
3. Cross platform



Jumat, 18 Agustus 2017

How To Set Up Apache Virtual Host on Ubuntu & Debian (English Version)

How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS
PostedApril 22, 2014 1.9mviews APACHE UBUNTU

Introduction

The Apache web server is the most popular way of serving web content on the internet. It accounts for more than half of all active websites on the internet and is extremely powerful and flexible.
Apache breaks its functionality and components into individual units that can be customized and configured independently. The basic unit that describes an individual site or domain is called a virtual host.
These designations allow the administrator to use one server to host multiple domains or sites off of a single interface or IP by using a matching mechanism. This is relevant to anyone looking to host more than one site off of a single VPS.
Each domain that is configured will direct the visitor to a specific directory holding that site's information, never indicating that the same server is also responsible for other sites. This scheme is expandable without any software limit as long as your server can handle the load.
In this guide, we will walk you through how to set up Apache virtual hosts on an Ubuntu 14.04 VPS. During this process, you'll learn how to serve different content to different visitors depending on which domains they are requesting.

Prerequisites

Before you begin this tutorial, you should create a non-root user as described in steps 1-4 here.
You will also need to have Apache installed in order to work through these steps. If you haven't already done so, you can get Apache installed on your server through apt-get:
sudo apt-get update
sudo apt-get install apache2
After these steps are complete, we can get started.
For the purposes of this guide, my configuration will make a virtual host for example.com and another for test.com. These will be referenced throughout the guide, but you should substitute your own domains or values while following along.
To learn how to set up your domain names with DigitalOcean, follow this link. If you do not have domains available to play with, you can use dummy values.
We will show how to edit your local hosts file later on to test the configuration if you are using dummy values. This will allow you to test your configuration from your home computer, even though your content won't be available through the domain name to other visitors.

Step One — Create the Directory Structure

The first step that we are going to take is to make a directory structure that will hold the site data that we will be serving to visitors.
Our document root (the top-level directory that Apache looks at to find content to serve) will be set to individual directories under the /var/www directory. We will create a directory here for both of the virtual hosts we plan on making.
Within each of these directories, we will create a public_html folder that will hold our actual files. This gives us some flexibility in our hosting.
For instance, for our sites, we're going to make our directories like this:
sudo mkdir -p /var/www/example.com/public_html
sudo mkdir -p /var/www/test.com/public_html
The portions in red represent the domain names that we are wanting to serve from our VPS.

Step Two — Grant Permissions

Now we have the directory structure for our files, but they are owned by our root user. If we want our regular user to be able to modify files in our web directories, we can change the ownership by doing this:
sudo chown -R $USER:$USER /var/www/example.com/public_html
sudo chown -R $USER:$USER /var/www/test.com/public_html
The $USER variable will take the value of the user you are currently logged in as when you press "ENTER". By doing this, our regular user now owns the public_html subdirectories where we will be storing our content.
We should also modify our permissions a little bit to ensure that read access is permitted to the general web directory and all of the files and folders it contains so that pages can be served correctly:
sudo chmod -R 755 /var/www
Your web server should now have the permissions it needs to serve content, and your user should be able to create content within the necessary folders.

Step Three — Create Demo Pages for Each Virtual Host

We have our directory structure in place. Let's create some content to serve.
We're just going for a demonstration, so our pages will be very simple. We're just going to make an index.html page for each site.
Let's start with example.com. We can open up an index.html file in our editor by typing:
nano /var/www/example.com/public_html/index.html
In this file, create a simple HTML document that indicates the site it is connected to. My file looks like this:
<html>
  <head>
    <title>Welcome to Example.com!</title>
  </head>
  <body>
    <h1>Success!  The example.com virtual host is working!</h1>
  </body>
</html>
Save and close the file when you are finished.
We can copy this file to use as the basis for our second site by typing:
cp /var/www/example.com/public_html/index.html /var/www/test.com/public_html/index.html
We can then open the file and modify the relevant pieces of information:
nano /var/www/test.com/public_html/index.html
<html>
  <head>
    <title>Welcome to Test.com!</title>
  </head>
  <body>
    <h1>Success!  The test.com virtual host is working!</h1>
  </body>
</html>
Save and close this file as well. You now have the pages necessary to test the virtual host configuration.

Step Four — Create New Virtual Host Files

Virtual host files are the files that specify the actual configuration of our virtual hosts and dictate how the Apache web server will respond to various domain requests.
Apache comes with a default virtual host file called 000-default.conf that we can use as a jumping off point. We are going to copy it over to create a virtual host file for each of our domains.
We will start with one domain, configure it, copy it for our second domain, and then make the few further adjustments needed. The default Ubuntu configuration requires that each virtual host file end in .conf.

Create the First Virtual Host File

Start by copying the file for the first domain:
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf
Open the new file in your editor with root privileges:
sudo nano /etc/apache2/sites-available/example.com.conf
The file will look something like this (I've removed the comments here to make the file more approachable):
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
As you can see, there's not much here. We will customize the items here for our first domain and add some additional directives. This virtual host section matches any requests that are made on port 80, the default HTTP port.
First, we need to change the ServerAdmin directive to an email that the site administrator can receive emails through.
ServerAdmin admin@example.com
After this, we need to add two directives. The first, called ServerName, establishes the base domain that should match for this virtual host definition. This will most likely be your domain. The second, called ServerAlias, defines further names that should match as if they were the base name. This is useful for matching hosts you defined, like www:
ServerName example.com
ServerAlias www.example.com
The only other thing we need to change for a basic virtual host file is the location of the document root for this domain. We already created the directory we need, so we just need to alter the DocumentRoot directive to reflect the directory we created:
DocumentRoot /var/www/example.com/public_html
In total, our virtualhost file should look like this:
<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/example.com/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Save and close the file.

Copy First Virtual Host and Customize for Second Domain

Now that we have our first virtual host file established, we can create our second one by copying that file and adjusting it as needed.
Start by copying it:
sudo cp /etc/apache2/sites-available/example.com.conf /etc/apache2/sites-available/test.com.conf
Open the new file with root privileges in your editor:
sudo nano /etc/apache2/sites-available/test.com.conf
You now need to modify all of the pieces of information to reference your second domain. When you are finished, it may look something like this:
<VirtualHost *:80>
    ServerAdmin admin@test.com
    ServerName test.com
    ServerAlias www.test.com
    DocumentRoot /var/www/test.com/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Save and close the file when you are finished.

Step Five — Enable the New Virtual Host Files

Now that we have created our virtual host files, we must enable them. Apache includes some tools that allow us to do this.
We can use the a2ensite tool to enable each of our sites like this:
sudo a2ensite example.com.conf
sudo a2ensite test.com.conf
When you are finished, you need to restart Apache to make these changes take effect:
sudo service apache2 restart
You will most likely receive a message saying something similar to:
 * Restarting web server apache2
 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
This is a harmless message that does not affect our site.

Step Seven — Test your Results

Now that you have your virtual hosts configured, you can test your setup easily by going to the domains that you configured in your web browser:
http://example.com or  w3m example.com
You should see a page that looks like this:
Apache virt host example
Likewise, if you can visit your second page:
http://test.com or w3m test.com
You will see the file you created for your second site:
Apache virt host test
If both of these sites work well, you've successfully configured two virtual hosts on the same server.
If you adjusted your home computer's hosts file, you may want to delete the lines you added now that you verified that your configuration works. This will prevent your hosts file from being filled with entries that are not actually necessary.
If you need to access this long term, consider purchasing a domain name for each site you need and setting it up to point to your VPS server.

Conclusion

If you followed along, you should now have a single server handling two separate domain names. You can expand this process by following the steps we outlined above to make additional virtual hosts.
There is no software limit on the number of domain names Apache can handle, so feel free to make as many as your server is capable of handling.

Konfigurasi Web Server Debian

CARA KONFIGURASI WEB SERVER DI DEBIAN – Merupakan  perangkat lunak yang berfungsi menerima permintaan HTTP ataupun HTTPS dari Klien yang dikenal dengan web browser dan mengirimkan kembali hasilnya dalam bentuk halaman-halaman web. Dan kini kita akan bahas cara konfigurasinya.
Langkah-langkahnya :

1.        Instal Paket web server terlebih dahulu yaitu :
apt-get install apache2

2.        Apabila ada konfirm Y/N, ketik lalu Enter
3.        Selanjutnya kita masuk ke folder /etc/apache2/sites-available
Ketikkan perintah : cd /etc/apache2/sites-available


4.      Ketik ls, lalu copy file default dan kita ambil nama contohnya : www (nama bebas). Bisa juga langsung pakai file default tanpa mengcopy file master tersebut.
5.        Lalu edit file www, perintah : pico www
6.        Pada file ini :
-       Ganti : ServerAdmin webmaster@localhost menjadi
ServerAdmin webmaster@ferykurniawantkj2.com(nama domain anda)
-       Tambahkan : (dibawah ServerAdmin)
ServerName www.ferykurniawantkj2.com (nama domain anda)

7.        Setelah selesai save file dengan CTRL-X,  Y

8.        Pindah direktori ke /var/www untuk mengedit file html dari web master tersebut
cd /var/www
9.        Lalu edit file index.html, masukkan perintah : pico index.html
10.    Isikan script pada file ini sesuka hati anda, contohnya seperti gambar dibawah :
11.    Save dengan CTRL-X, Y
12.    Kemudian restart web server anda, masukkan perintah:
       /etc/init.d/apache2 restart
13.    Dan untuk megecek apakah web server anda jalan atau tidak dengan perintah :
       w3m www.ferykurniawantkj2.com (Nama domain anda)

14.    Hasilnya :
15.    Apabila berhasil maka tampilannya seperti gambar diatas, dan menunjukkan web server anda berjalan dengan baik.

CEK UNTUK KOMPUTER KLIEN

1.        Langsung saja ke Web Browser pada windows ( Bisa pakai Mozila Firefox, IE, Google Chrome, dll)
2.        Dan ketikkan alamat URL“www ferykurniawantkj2.com”
3.        Hasilnya seperti ini :

4.        Selesai.

Senin, 07 Agustus 2017

Tutorial Cara Konfigurasi DNS Server di Linux Debian

Setelah sekian lama blog ini jarang update artikel, nah di artikel ini saya akan menjelaskan dan berbagi tutorial singkat tentang cara konfigurasi dns server di linux debian 5.0.6 lenny via virtualbox. Apa itu DNS Server dan bagaimana cara membuatnya ? saya akan jelaskan secara singkat pengertian dns server dan cara kerjanya beserta cara konfigurasinya sampai pengujian di bawah ini dan selain itu disini saya juga akan share vidio tutorial konfigurasi dns server di linux debian.

Cara Membuat Konfigurasi DNS Server di Linux Debian
Gambar Ilustrasi Cara Kerja DNS Server

Pengertian DNS Server

DNS atau Domain Name Service adalah sebuah sistem yang dikembangkan untuk mengelola penamaan suatu komputer, layanan ataupun sumber daya di jaringan yang disusun secara hirarki dan terdistribus.

DNS berfungsi untuk menerjemahkan nama-nama host (hostname) menjadi nomor IP (IP address) ataupun sebaliknya, sehingga nama tersebut mudah diingat oleh pengguna internet. DNS Server juga membantu memetakan host name sebuah komputer ke IP address pada aplikasi yang terhubung ke Internet seperti web browser atau e-mail.

Cara Membuat / Konfigurasi DNS Server di Linux Debian

Sebelum membuat atau konfigurasi dns server di linux debian, alangkah baiknya anda sudah menginstal linux berbasis text dan sudah bisa menjalankan atau mengoperasikan sistem operasi tersebut. Setelah itu mari kita simak tutorialnya berikut ini.

A. Instal OS Linux Debian [berbasis text]
B. Konfigurasi jaringan
Sebelum konfigurasi cek dulu apakah network di linux anda sudah di setting atau belum, jika belum perintah untuk mengeceknya adalah ketik ifconfig lalu enter. jika belum di setting, lakukan hal berikut.  
- Edit network interfaces dengan cara ketik perintah : nano /etc/network/interfaces
- Hapus dhcp diganti dengan static
- Lalu ketik perintah seperti gambar berikut 

Cara Konfigurasi Jaringan di Linux Debian

- Jika sudah save dengan cara : CTRL+X > Save > Enter
- Setelah itu restart network / os anda, ketik perintah : /etc/init.d/networking/restart atau reboot
- Cek apakah sudah terkonfigurasi dengan benar atau belum dengan cara, ketik : ifconfig

Cara Konfigurasi Jaringan di Linux Debian

C. Instal Bind9
Bind9 merupakan salah satu aplikasi yang digunakan untuk membuat DNS Server, cara menginstallnya seperti berikut.
- Masukan CD / File ISO terlebih dahulu. [Device > CD/Drive > Cari file ISO nya]
- Ketik perintah : apt-get install bind9

Cara Membuat DNS Server di Linux Debian

- Pilih Y 
- Lakukan restart bind9 anda atau os linux anda, caranya seperti tadi : reboot

Cara Membuat DNS Server di Linux Debian


D. Konfigurasi DNS Server
Sebelum konfigurasi alangkah baiknya anda terlebih dahulu file atau folder apa saja yang akan di konfigurasi, file yang akan dikonfigurasi :
  • named.conf.local
  • db.veri [db.local]
  • db.tkjb [db.local]
  • db.192
  • named.conf.options
  • resolv.conf
Setelah anda mengatahui file yang akan di konfigurasi, mari kita lakukan konfigurasi / cara membuat dns server. Caranya sebagai berikut :

1. Masuk ke folder bind terlebih dahulu : cd /etc/bind

Cara Membuat Konfigurasi DNS Server di Linux Debian

2. Edit file named.conf.local : nano named.conf.local  lalu isikan perintah seperti pada gambar dibawah ini. Jika sudah save Ctrl+X > Y > Enter

Cara Membuat Konfigurasi DNS Server di Linux Debian

3. Copy db.local ke db.veri dan db.xitkjb serta db.127 ke db.192, dengan perintah

Cara Membuat Konfigurasi DNS Server di Linux Debian

4. Edit file db.veri ketik : nano db.veri 
Ganti localhost dengan nama domain anda, contoh : Ctrl+W > Ctrl+R > tulis : localhost > Enter > nama domain > Enter > A
Isi dan ubah filenya seperti di gambar berikut :

Cara Membuat Konfigurasi DNS Server di Linux Debian

5. Edit file db.xitkjb ketik : nano db.xitkjb
Ganti localhost dengan nama domain anda, contoh : Ctrl+W > Ctrl+R > tulis : localhost > Enter > nama domain > Enter > A
Isi dan ubah filenya seperti di gambar berikut :

Cara Membuat Konfigurasi DNS Server di Linux Debian

6. Edit file db.192 : nano db.192
Ganti localhost dengan nama domain anda, contoh : Ctrl+W > Ctrl+R > tulis : localhost > Enter > nama domain > Enter > A
Isi dan ubah filenya seperti di gambar berikut :

Cara Membuat Konfigurasi DNS Server di Linux Debian

7. Edit file named.conf.options ketik : nano named.conf.options
Hapus slash //, dan 0.0.0.0 ganti menjadi IP Address anda, misal : 192.168.1.32 Setelah itu Save

Cara Membuat Konfigurasi DNS Server di Linux Debian

8. Edit file resolv.conf ketik : nano /etc/resolv.conf 
Ubah dan tambahkan isi file tersebut seperti dibawah ini.

Cara Membuat Konfigurasi DNS Server di Linux Debian

9. Restart Bind9 anda, ketik : /etc/init.d/bind9 restart
    Cara Membuat Konfigurasi DNS Server di Linux Debian

    10. Pengujian DNS Server anda menggunakan perintah nslookup [nama domain]

    Cara Membuat Konfigurasi DNS Server di Linux Debian

    **Note :
    1. Anda bisa membuat 1 domain untuk dns saja, di tutorial ini saya membuatnya 2 domain. Cara membuatnya sama saja.
    2. File nama db.veri / db.xitkjb bisa anda ubah menjadi db.[nama_file] sesuka anda.
    3. Anda bisa menambahkan mail pada file db.veri, db.xitkjb, dan db.192.
    4. Jika saat anda merestart konfigurasi jaringan dan bind9 terjadi failed !!, coba cek kembali konfigurasinya.
    5. Pengujian bisa dilakukan dengan cara lain, seperti ping [ip domain] atau lainnya.

    Vidio Tutorial Cara Konfigurasi DNS Server di Linux Debian

     Nah itulah tutorial lengkap Cara Membuat Konfigurasi DNS Server di Linux Debian 5.0.6 Lenny beserta vidio tutorialnya dari saya. Jika anda ingin mencopy atau repost artikel ini, Mohon cantumkan sumbernya. Hargai penulis dengan cara berkomentar di artikel ini, semoga bermanfaat.

    Sumber Dari: http://www.begal-tech.com/2015/05/tutorial-cara-membuat-konfigurasi-dns.html#ixzz4p40h0qGR