Skip to content
Readerstacks logo Readerstacks
  • Home
  • Softwares
  • Angular
  • Php
  • Laravel
  • Flutter
Readerstacks logo
Readerstacks

What is apache web server and install on ubuntu?

Aman Jain, August 28, 2021August 29, 2021

Apache is a web server which is used to serve the http request from a client computer. A client can open a webpage to view the website using web browsers like chrome, firefox etc. and browsers sent their requests to web servers like apache http server.

How to install Apache Web Server on Ubuntu ?

We can install apache using the package management tools.

Step 1

First of all update local package index

sudo apt update

Step 2

Install apache package

sudo apt install apache2

After installation you can verify the installation using below command

sudo service apache2 status

This will output:

apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
     Active: active (running) since Fri 2021-08-27 02:48:18 UTC; 1 day 7h ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 17783 ExecReload=/usr/sbin/apachectl graceful (code=exited, status>
   Main PID: 580 (apache2)
      Tasks: 8 (limit: 1159)
     Memory: 104.1M
     CGroup: /system.slice/apache2.service
             ├─  580 /usr/sbin/apache2 -k start
             ├─17791 /usr/sbin/apache2 -k start
             ├─17792 /usr/sbin/apache2 -k start
             ├─17793 /usr/sbin/apache2 -k start
             ├─17794 /usr/sbin/apache2 -k start
             ├─17795 /usr/sbin/apache2 -k start
             ├─17814 /usr/sbin/apache2 -k start
             └─18382 /usr/sbin/apache2 -k start

Aug 27 02:48:18 ip-xx-xx-xx-xxx systemd[1]: Starting The Apache HTTP Server...
Aug 27 02:48:18 ip-xx-xx-xx-xxx systemd[1]: Started The Apache HTTP Server.
Aug 28 00:00:54 ip-xx-xx-xx-xxx systemd[1]: Reloading The Apache HTTP Server.
Aug 28 00:00:54 xx-xx-xx-xxx systemd[1]: Reloaded The Apache HTTP Server.

If the apache is running then it will show as above. you can also read how to start, stop, restart and check status of apache article.

Step 3

Check the firewall and allow it

sudo ufw app list
sudo ufw allow 'Apache'

Related

Softwares Devops Ubuntu

Post navigation

Previous post
Next post

Related Posts

Ubuntu How to Reset Root Password of MySQL 8 in Ubuntu 20.04

How to Reset Root Password of MySQL 8 in Ubuntu 20.04 ?

June 1, 2022June 1, 2022

Sometimes we forget or mistakenly type wrong password during the installation of mysql, So in this article i will help you to Reset Root Password of MySQL in Ubuntu 20.04. Mysql 8 has several new features and also it has change the default password algorithm for saving the password. Mysql…

Read More

What is Access Modifiers ?

July 18, 2021August 2, 2021

In object oriented programming(oops) to set the visibility of classes, variables and methods we are using access modifiers. So Access modifiers are used the encapsulation of class properties. There are three types of access modifiers in any language (Php, java or c etc. ) Private Protected Public 1. Private Access…

Read More
Devops Install php, apache, mysql(Lamp) and phpmysadmin on Ubuntu

How to Install php apache mysql(Lamp) and phpmysadmin on Ubuntu

September 18, 2021November 8, 2023

In this article we will learn to Install php apache mysql(Lamp) and phpmysadmin on Ubuntu. PHP, Apache MySQL and phpMyAdmin is most useful part to run a web application like PHP. In this tutorial we will cover installation of PHP 7, Apache, MySQL and phpMyAdmin. Here is the list of…

Read More

Aman Jain
Aman Jain

With years of hands-on experience in the realm of web and mobile development, they have honed their skills in various technologies, including Laravel, PHP CodeIgniter, mobile app development, web app development, Flutter, React, JavaScript, Angular, Devops and so much more. Their proficiency extends to building robust REST APIs, AWS Code scaling, and optimization, ensuring that your applications run seamlessly on the cloud.

Categories

  • Angular
  • CSS
  • Dart
  • Devops
  • Flutter
  • HTML
  • Javascript
  • jQuery
  • Laravel
  • Laravel 10
  • Laravel 11
  • Laravel 9
  • Mysql
  • Php
  • Softwares
  • Ubuntu
  • Uncategorized

Archives

  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • October 2024
  • July 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • July 2023
  • March 2023
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Recent Posts

  • Mastering Schedule Management with Laravel Zap
  • The Resilience of Nature: How Forests Recover After Fires
  • Understanding Laravel Cookie Consent for GDPR Compliance
  • Understanding High Vulnerabilities: A Critical Overview of the Week of May 12, 2025
  • Installing a LAMP Stack on Ubuntu: A Comprehensive Guide
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version