How to Configure Apache Web Server in Debian 8

line5

DEBIAN SERIES

  1. How to Install Debian 10 Manual Partition for /boot, /swap, root, /home, /tmp
  2. How To Install Debian 8 by Manually Creating LVM Linux Partitions
  3. How to Update Software packages in Debian 8
  4. How to Configure DHCP Server in Debian 8
  5. How to Configure Apache Web Server in Debian 8

TUTORIAL

Go to Terminal

Debian 8.2-2018-03-15-13-37-40

Switch to root user so you don’t need sudo to execute commands

su -

Debian 8.2-2018-03-15-13-37-46

Install web server

aptitude install apache2

Debian 8.2-2018-03-18-21-57-03

Check web server (apache2) service status

service apache2 status

Debian 8.2-2018-03-18-21-57-04

change computer name (hostname)

nano /etc/hostname

Debian 8.2-2018-03-18-21-57-06

give the hostname (computer name) of the debian web server

abc

Debian 8.2-2018-03-18-21-57-07

change the domain name

nano /etc/hosts

Debian 8.2-2018-03-18-21-57-08

change the hostname (computer name) and domain name

hostname = abc

domain name = teche.lk

192.168.1.10         abc.teche.lk         abc

Debian 8.2-2018-03-18-21-57-09

Check the configuration

to check the hostname

hostname

to check the domain name

hostname -d

to check the FQDN name

hostname -f

Debian 8.2-2018-03-18-23-56-22.png

Go to the web browser

192.168.1.10

Debian 8.2-2018-03-18-23-56-23

abc.teche.lk

Debian 8.2-2018-03-19-15-04-08

3 thoughts on “How to Configure Apache Web Server in Debian 8

Leave a comment