Determining Whether Apache Is Already Installed


rpm q httpd rpm q apache rpm q apache2


If you are running a Linux system, chances are that Apache is already installed. If your distribution uses the rpm package management system, you can check to see whether Apache is installed with the preceding commands. There are several different commands because not all distributions use the same name for packages.

In most Unix-like systems, including Mac OS X, you can also directly check whether the Apache binary is installed with one of

httpd -v /usr/sbin/httpd v


If found, it should return something similar to

Server version: Apache/2.0.54 Server built:   Apr 16 2005 14:25:31


You can get an even more detailed response using httpd -V.

On Windows systems, you can check whether Apache is installed in the Add/Remove Programs section of the Control Panel. The installation path is under C:\Program Files\Apache Group.

Where Can I Get Apache?

Apache is included by default in most Linux distributions and in Mac OS X. You can also download binaries and source code for a variety of platforms, including Windows, from the official Apache website at http://www.apache.org.





Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net