Hit enter after type your search item

How To Install Apache on Kali Linux | Apache Web Server


The Apache HTTP Server is a free and open-source web server that delivers our content through the internet using the web service. It supports maximum all the operating systems like UNIX, Windows, Linux, etc. Now it is becoming the most popular HTTP client on the web.

Now the latest version of Apache is Apache HTTP Server version 2.4.43. In this tutorial, we will go through the steps of installing Apache on Kali Linux.


Before starting this tutorial, make sure you are logged in as a user with sudo privileges.

Install Apache on Kali Linux

Apache is available in the default Kali Linux repositories and the installation is pretty straightforward. First, update the Kali and afterward install the apache2 package with the following commands:

Update Kali Linux

sudo apt update && sudo apt full-upgrade -y
Update Kali Linux

Install Apache2

sudo apt install apache2 -y

That’s it, Apache is installed in your Kali Linux and now you have to start the service using this command:

sudo service apache2 start

Now you can check the status of the Apache service using this command:

sudo service apache2 status
Apache Status

Verifying Apache Installation

To verify that apache server working correctly in Kali Linux, open your browser, type your server IP address or domain name http://YOUR_IP_OR_DOMAIN/ and you will see the default Apache welcome page as shown below:

Apache Default Page

Manage the Apache service

Now the Apache server is installed on your system. How to manage the basic apache services, you have to know basic commands:

Stop the Apache service

sudo service apache2 stop

To start the Apache service

sudo service apache2 start

Restart the Apache service

sudo service apache2 restart

Reload the Apache service

Reload the Apache with a new configuration with:

sudo service apache2 reload

Start Apache service at boot

If you want to enable the Apache service to start at boot:

sudo systemctl enable apache2

Stop Apache service at boot

If you want to disable the Apache service to start at boot:

sudo systemctl disable apache2
Apache Services


You have successfully install the apache server on your Kali Linux. Now you can host your applications or website and use apache server a proxy server.

Important Things To Remember:

The author of this article does not promote any illegal activities It is just for education purpose All the activities provided in this article, YouTube channel, and on the website techdhee.in are only for educational purposes.

If you are using and follow this tutorial for any illegal purpose, techdhee.in can not be responsible for your action.

My purpose is to educate or share the information who have not, how to secure your self from the Internet, and the world of digital.

Also, read the Disclaimer


Thank you for reading this post and keep connected to TECH DHEE to continue enjoying excellent posts. Share your views about this post in the comment section below. If you still have any queries, throw it in the comment section. If you find this post helpful, don’t hesitate to share this post on your social network. It will only take a moment, and also it is quite easy and useful for others.


Leave a Comment

Your email address will not be published.

This div height required for enabling the sticky sidebar