Main Tutorials

How to determining whether Apache is already installed?

If you are running Linux system, high chance Apache is already installed by default. In case, you can use the following commands to determining whether Apache is already installed.

In RPM system like Fedora Core

Issue httpd -v or /usr/sbin/httpd -v


[root@snake init.d]# httpd -v
Server version: Apache/2.2.11 (Unix)
Server built:   Mar  6 2009 09:12:25

[root@snake init.d]# /usr/sbin/httpd -v
Server version: Apache/2.2.11 (Unix)
Server built:   Mar  6 2009 09:12:25

In Apt system like Ubuntu or Debian

Issue apache2 -v or /usr/local/apache/bin/apachectl -v


mkyong@mkyong-desktop:/$ apache2 -v
Server version: Apache/2.2.11 (Ubuntu)
Server built:   Aug 18 2009 14:28:29

mkyong@mkyong-desktop:/l$ /usr/local/apache/bin/apachectl -v
Server version: Apache/2.2.13 (Unix)
Server built:   Oct  5 2009 17:10:10

In Windows

Check in Windows service
1) Access control panel –> Administrative Tools –> Services

2) Sort the name column , if the Apache is installed, the name will shown in Windows service.

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments