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

Step1: Update

Update the package lists for upgrades and new package installations by running the following command:

sudo apt update

Step2: Install

Install Apache using the apt package manager by running the following command:

sudo apt install apache2

Step3: Verify

After the installation is complete, Apache should start automatically. You can verify its status by running the following command:

sudo systemctl status apache2

If Apache is running correctly, you should see an output indicating that the service is active and running.

To access the default Apache landing page, open a web browser and enter the server’s IP address or domain name in the address bar. If Apache is installed locally on your Ubuntu machine, you can use http://localhost or http://127.0.0.1.

You should see the default Apache page indicating a successful installation.

You have now successfully installed Apache on your Ubuntu 22.04 system. You can start configuring Apache and hosting your web applications or websites by placing them in the appropriate directories, such as /var/www/html/.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *