How To Install the Apache Web Server on Ubuntu 22.04 LTS - TechBeginner

Welcome to TechBeginner.in, Tech Beginner provides technical blog for Online Linux Tutorials, Ubuntu Tutorials, Redhat Tutorials and CentOS 7, Configuration of server like Web Server, Application server, Database server, Window server, networking, html, css, java script, php, wordpress, opencart, magento, joomla and etc.

How To Install the Apache Web Server on Ubuntu 22.04 LTS

Share This


 

Apache is a free and opensource web server in the world, It gives numerous incredible highlights including powerfully loadable modules, strong media uphold, and broad incorporation with other mainstream programming.

 

In this post, We will install and configure Apache2 on ubuntu 22.04 LTS

 

Step 1: Update the System
 

You need to update the ubuntu current repository by using the command.

sudo apt-get update

 
Step 2: Install Apache2
 

You need to execute the given command for the same.

sudo apt-get install apache2 -y

 
Step 3: Verifying Apache2 Status
 

You need to use the systemctl command to get installed apache2 service status by using the command.

To get service status

sudo systemctl status apache2

To get service start

sudo systemctl start apache2

To get service stop

sudo systemctl stop apache2

To get service start on boot

sudo systemctl enable apache2

To get service stop on boot

sudo systemctl disable apache2

 

Step 4: Open Firewall Ports

 

Now we are ready to open the port 80 to get the apache test page in browser use the following command for the same.

 

sudo ufw status
sudo ufw allow 80

Conclusion

We have successfully install and configure the Apache2 web server in our Ubuntu 22.04 server.



No comments:

Post a Comment