How to Install Apache on Ubuntu

How to Install Apache on Ubuntu

  • 04 Sep, 2021
  • Technology

Install Apache2 on Ubuntu 20.04



1. Enter command sudo -s
to change user to root user (i have already performed this step)
2. Update server by running below update command
sudo apt-get update

3. sudo apt-get upgrade -y
4. Execute below command in sequence (i.e. one after another) to install apache2

sudo apt install apache2

apachectl stop
/etc/init.d/apache2 start
sudo service apache2 reload