tutorial how to create web server

in #utopian-io6 years ago (edited)

Good evening steemian friends all over the archipelago.Salam sejahtra for you all, May you always be given the health to continue to share the good and also useful information information on each platform. Amen
on occasion I would like to write about web server hopefully useful for steemians everything.

A. CONFIGURATION DNS SERVER
Before we start the web server configuration, we must to configure the DNS Server.

  1. Install Debian Linux OS [based on text]
  2. Network configuration
    Before configuration first check the network on your linux is already in the settings or not, if not the order to check is type ifconfig then enter. if not already in the settings, do the following:
    • Edit network interfaces by typing commands: nano / etc / network / interfaces
    • Delete dhcp replaced with static
    • Then type the command as shown below

Slide1.JPG


  • If it is saved by: CTRL + X> Save> Enter
  • After that restart your network / os, type command: /etc/init.d/networking/restart or reboot
  • Check whether it is configured correctly or not by the way, type: ifconfig

Slide2.JPG


3.Install Bind9
Bind9 is one of the applications used to create a DNS Server, how to install:
•first Input CD / ISO file. [Device> CD / Drive> Find ISO file]
• Type command: apt-get install bind9


Slide3.JPG


• Select Y
• Restart your bind9 or linux os, the way it was: reboot


Slide4.JPG


4.Configure the DNS Server
Before the configuration, it would be nice first we prepare any files or folders to be configured, the files to be configured:

1.Go to the bind folder first: cd / etc / bind


Slide5.JPG


2.Edit the file named.conf.local: nano named.conf.local and then fill in the command as in the picture below. If it has saved Ctrl + X> Y> Enter


Slide6.JPG


  1. Copy db.local to db.pnl, with nano command

4.Edit the file db.veri type: nano db.pnl
Replace localhost with your domain name, example: Ctrl + W> Ctrl + R> write: localhost> Enter> domain name> Enter> A Fill and change the file as shown below:


Slide7.JPG


5.Edit the file db.xitkjb type: nano db.ip Replace localhost with your domain name, example: Ctrl + W> Ctrl + R> write: localhost> Enter> domain name> Enter> A Fill and change the file as shown below:

Slide8.JPG


6.Edit the file named.conf.options type: nano named.conf.options
Remove slash //, and 0.0.0.0 change to your IP Address, eg: 192.168.1.32 After that Save


Slide9.JPG


7.Edit the resolv.conf file type: nano /etc/resolv.conf Change and add the contents of the file as below.

Slide10.JPG


8.Restart your Bind9, type: /etc/init.d/bind9 restart

Slide11.JPG


9.Testing your DNS Server using the command nslookup [domain name]

B. Web Server Configuration
Here's how to install and configure Web Server on Debian 6, among others:
1.Install apache and phpmyadmin packages
apt-get install apache2 php5 mysql-client mysql-server phpmyadmin


Slide12.JPG


Analysis: The above command is a command to install the apache2 php5 mysql-client mysql-server phpmyadmin software in the iso debian package. So when we want to configure Web Server then install apache2 package.

2.Then click Yes


Slide13.JPG


3.Then type the password for MySQL


Slide14.JPG


4.After that, reenter the password


Slide15.JPG


5.Then mark Apache2 in the phpmyadmin configuration, and wait until it goes through the install process


Slide16.JPG


6.Already, click No on the following phpmyadmin configure, wait until finished


Slide17.JPG


7.Webserver configuration, first move to the sites-available directory #cd / etc / apache2 / sites-available

Slide18.JPG


8.Copy default file to desired filename "kimo.com" #cp default pnl.com


Slide19.JPG


9.after that, open the file, and configure it by adjusting the red line mark below, use IP eth1 #nano kimo.com


Slide20.JPG


10.Then move to www directory #cd / var / www


Slide21.JPG


11.After that, open the index.html file, edit as you wish and ability. #nano index.html


Slide22.JPG


12.Then edit the info.php file as below #nano info.php


Slide23.JPG


13.Then enable kimo.com file # a2ensite kimo.com


Slide24.JPG


14.Then disable the default file # a2dissite default


Slide25.JPG


15.After that, restart its apache daemon # / etc / init.d / apache2 restart


Slide26.JPG


16.And restart also its MySQL daemon # / etc / init.d / mysql restart


Slide27.JPG


17.Last test of his web server #type the ip address eth1 it: 192.168.100.1


Slide28.JPG


#CONCLUSION
Web server is a server that handles data communications on the internet through the world wide web, and is the server on the internet.beacause most of the demand for communication services such as HTTP. Apache was first designed on systemUnix, but in later versions apache can run on Windows NT machines.

Thank you for having read my writing, Steemian Do not forget to follow @ajier.bedeng, upvote, and comment below.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved because it does not follow the Utopian Rules.

Rule Says: Contributions must be Formal and Professional

  • These sentences Thank you for having read my writing, Steemian Do not forget to follow @ajier.bedeng, upvote, and comment below. & Your introduction message is so unprofessional and not accepted.

You can contact us on Discord.
[utopian-moderator]

Hey @rufans, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.028
BTC 57184.88
ETH 3097.33
USDT 1.00
SBD 2.41