Configration of Apache Web Server on Linux Machines

Published on


Configration of Apache Web Server on Linux Machines

Apache Server Setup Debian based Distro (Ubuntu,Kali)

​ Package name :- apache2

​ Installation :-

sudo apt install apache2 -y

​ Service Start :-

sudo systemctl start apache2
sudo systemctl enable apache2

Apache Server in Red Hat based Distro (RHEL,CentOS,Fedora)

​ Package Name :- httpd

​ Installtion :-

sudo dnf install httpd

​ Service Start :-

sudo systemctl start httpd
sudo systemctl enable httpd                                 

Points to Note

  1. File should should be stored in “/var/www/html” to be seen on the page.
  2. This commands will start an basic http server on port 80 localhost.

Thank you for reading. This article is part of the PaperAstro starter template.