What is Apache Web Server:
Apache is a free and open-source software that allows users to deploy their websites on the internet. It is one of the oldest and most reliable web server software maintained by the Apache Software Foundation, with the first version released in 1995.
This tutorial describes how to install and manage the Apache webserver on Ubuntu.
- First, log into your Ubuntu system and update your system packages using the following apt command.
$ sudo apt update
- After installing the Ubuntu package list, use the following command to install apache server.
sudo apt install apache2
- After completion of the installation process, the Apache server automatically start. The status of the Apache server can be checked by using the following command.
sudo systemctl status apache2
That’s it, you have successfully installed Apache on your Ubuntu 20.04 server, and you can start using it.
it’s time to learn some basic management commands to manage the apache process using the following systemctl commands.
$ sudo systemctl stop apache2 #stop apache2
$ sudo systemctl start apache2 #start apache2
$ sudo systemctl restart apache2 #restart apache2
$ sudo systemctl reload apache2 #reload apache2
$ sudo systemctl disable apache2 #disable apache2
$ sudo systemctl enable apache2 #enable apache2
Leave a comment