Apache server
Apache is a free, open source and most popular HTTP web server. It establishes a connection between a server and the browser like mozila, chrome, opera etc.
Here I will show you how to install Apache server on linux OS (Ubuntu 20.04)
Install Apache server on Ubuntu
First of all update your operating system, this will update all outdated packages and will make installation error free.
sudo apt-get update
Now run the foolwing command
Sudo apt-get install apache2
To verify correct installation of appache web server enter the following address in your browser on the host machine.
The result page will be like this
Here local.server.ip is your server host ip address to know the IP address you can simply enter the following command in terminal
hostname -I | awk ‘{print $1}’
Configure the default UFW firewall to listen on port 80
sudo ufw app list
sudo ufw allow apache
This will allow apache connections through firewalls
Now to know the ufw status enter
sudo ufw status
Apache system control commands
To stop apache services
sudo systemctl stop apache2.service
To start apache service
sudo systemctl start apache2.service
Restart
sudo systemctl restart apache2.service
Status
sudo systemctl status apache2.service
Setting up apache server
Leave a Reply