How to Install Apache Web Server on Ubuntu Server?
Here, i will show you how to install apache on ubuntu server 20.04. this example will help you how to install apache in ubuntu server. This article will give you simple example of ubuntu server install apache2. This tutorial will give you simple example of ubuntu server 20.04 install apache2. follow bellow step for how to install apache2 in ubuntu 20.04.
In this post, i will give you list of command how to install apache in ubuntu server and how to use apache in linux server.
so, let's see simple command to install and use apache2 command:
Install Apache:
Update Local Package:
sudo apt update
Install apache2 Package:
sudo apt install apache2
you can see terminal layout as bellow:
After install successfully apache2, you can go to browser and check your IP as like bellow and layout:
http://your_server_ip
Output:
Apache Command:
Here, i will give you list of apache command where you can stop, start and restart apache server. so let's see one by one command:
Status Apache Server:
sudo systemctl status apache2
Stop Apache Server:
sudo systemctl stop apache2
Start Apache Server:
sudo systemctl start apache2
Restart Apache Server:
sudo systemctl restart apache2
Reload Apache Server:
sudo systemctl reload apache2
Disable Apache Server:
sudo systemctl disable apache2
Enable Apache Server:
sudo systemctl enable apache2
I hope it can help you...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Connect to a Remote Server using SSH on Ubuntu?
- How to Upgrade PHP Version from 7.4 to 8 in Ubuntu?
- How to Install Laravel in Ubuntu?
- How to Install Composer using Command Line in Ubuntu?
- How to create virtual host in ubuntu apache?
- How to Uninstall Cordova and Ionic in Ubuntu?
- How to Install Sublime Text Editor 3 in Ubuntu?
- How to Increase Upload File Size Limit PHP in Ubuntu?
- How to Set ANDROID_HOME Environment Variable in Ubuntu?
- How to Upgrade Node.js Version in Ubuntu?
- How to Enable Rewrite Mode for Apache in Ubuntu?
- How to Recursively Change the Permissions of Files and Directories in Ubuntu?