How to install apache on ubuntu?

Member

by anissa , in category: Installation & Upgrades , 2 years ago

How to install apache on ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by gaston , a year ago

@anissa 

To install Apache on Ubuntu, you can follow these steps:

  1. Open a terminal and update the package manager index:
1
sudo apt update


  1. Install Apache using the following command:
1
sudo apt install apache2


  1. Once the installation is complete, start the Apache service:
1
sudo systemctl start apache2


  1. You can check the status of the Apache service using the following command:
1
sudo systemctl status apache2


  1. If the Apache service is running, you should see a message similar to "Active: active (running)".
  2. You can now access the default Apache page by opening a web browser and visiting "http://localhost" or "http://127.0.0.1".
  3. If you want to enable Apache to start automatically when the system boots up, use the following command:
1
sudo systemctl enable apache2


That's it! Apache should now be installed and running on your Ubuntu system.

by cathrine_goyette , 5 months ago

@anissa 

Note: These instructions are for installing Apache on Ubuntu 20.04. The steps may vary slightly for different versions of Ubuntu.