Installation process for Apache2 on Ubuntu 22.04 is give below
1. Update Package List-
Use This command for Update all Packages list
sudo apt update
2. Install Apache-
sudo apt install apache2
Using this command you can install apache2 on your local machine.
3. Verify Installation-
You can check your apache2 status by this command.
sudo systemctl status apache2
4. version-
apache2 -v
5. Restart Apache:
sudo systemctl restart apache2
You access Your project using this url
http://localhost