How to Find Where Apache is Installed In Linux


find where apache is installed in linux

Sometimes, you might need to know where Apache is installed to find out more about it, and be able to customize it easily. Here’s how to find where Apache is installed in Linux.

 

How to Find Where Apache is Installed In Linux

Here are the steps to find where Apache is installed in Linux. Apache is installed at different locations, depending on the type of operating system. Let us look at each case below.

If you are using Linux, then Apache is most probably already installed by default. So you can use the following commands to find out where Apache is installed.

 

In RPM systems like RHEL/Fedora/CentOS

Open a terminal session, or SSH into your Linux system and run any of the following commands.


[root@54.45.34.12]# httpd -v
Server version: Apache/2.2.11 (Unix)
Server built: Jan 6 2018 09:12:25

[root@54.45.34.12]# /usr/sbin/httpd -v
Server version: Apache/2.2.11 (Unix)
Server built: Jan 6 2018 09:12:25

 

In APT systems like Ubuntu/Debian

Open a terminal session, or SSH into your Linux system and run any of the following commands.


ubuntu@54.45.34.12:/$ apache2 -v
Server version: Apache/2.2.11 (Ubuntu)
Server built: Jan 6 2018 09:12:25

ubuntu@54.45.34.12:/l$ /usr/local/apache/bin/apachectl -v
Server version: Apache/2.2.13 (Unix)
Server built: Jan 6 2018 09:12:25

 

In Windows

You can find out installation location of Apache using Windows Service Manager.

1. Go to Control Panel -> Administrative Tools -> Services

2. Sort the name column, and look for Apache.

3. Right Click on it, and select Properties. You will see a window, under General tab, you will find the installation path named “Path to executable”.

 

 

About Sreeram Sreenivasan

Sreeram Sreenivasan is the Founder of Ubiq, a business dashboard & reporting platform for small & medium businesses. Ubiq makes it easy to build business dashboards & reports for your business. Try it for free today!