Install and Configure Web Server on Debian 8
Understanding and Functions of a Web Server
Web Server is a server software that functions to accept HTTP or HTTPS requests from web servers client and sends back the results in the form of web pages generally in the form of HTML or PHP.
A web server is not a website, a web server is the software on which the website runs, which handles the requests of users to access the website, then sends the website pages to the users to be opened via HTTP. client or also known as a web browser.
Therefore, in order to be able to install a website on a server, a web server application is needed. There are many web server applications available, some of the most famous web server applications are Nginx, Lighttpd, Litespeed and Apache.
The web server uses the HTTP and HTTPS protocols in carrying out its job of handling requests from the Internet clienteach of these protocols individually default walk on port 80 and 443.
Although there are many web server applications that you can use, in this tutorial we will learn how to install and configure a web server on Debian using the most common and easy to use web server, the Apache web server.
Before following this tutorial, it would be better if you have configured the DNS server. Because the website that is used to try to run the web server will require a domain address that you must register with the DNS server first.
If you haven’t installed and configured a DNS server, you can follow this tutorial to install and configure a DNS server on Debian 8. Configurations such as IP addresses and domains in the tutorial are made the same as this tutorial so that they are easy to understand and continue.
Install Apache Web Server on Debian 8
Apache is one of the most widely used web server applications on servers to handle websites. Apache is readily available default on Debian 8, good on repository or on the iso file which is available on several binary DVDs that you can download on the Debian website directly.
If you want to install Apache using repositorymake sure you are connected to the internet and have added the repository of Debian 8 on your computer, or if you are using a DVD, insert DVD Binary 1 which is where the Apache application is available.
To install Apache on your computer, simply enter the following command:
# apt-get install apache2
Press Enter if out a output which asks if you really want to install it.
Then wait for the Apache installation process to complete and make sure it works well. Apache that we install here is Apache 2 which is the latest version of Apache.
Next : Apache Web Server Configuration on Debian 8 >>