Network Administration: Linux Apache Installation
All the popular Linux distributions come with Apache, the most popular web server on the Internet today. In most cases, Apache is installed and configured automatically when you install Linux. Then, setting up a web server for the Internet or an intranet is simply a matter of tweaking a few Apache configuration settings and copying your HTML document files to Apache’s home directory.
You can quickly find out whether Apache is installed on your system by entering the following command from a shell prompt:
rpm -q httpd
If Apache has been installed, the package version is displayed. If not, the message package httpd is not installed is displayed.
If Apache isn’t installed on your Linux server, you can install it by following these steps:
Choose System→Administration→Add/Remove Software.
This summons the Add/Remove Software program.
Choose Package Collections in the list on the left side of the Add/Remove Software window.
This displays a list of commonly installed collections of packages.
In the main list box in the Add/Remove Software window, scroll down almost to the end of the list and select the Web Server option.
This selects the Apache Web Server packages.
The Add/Remove Software program installs the basic Apache packages.
Type Apache Configuration in the search text box and click the Find button.
This finds the Apache Configuration tool, which is a valuable tool for configuring Apache that isn’t included in the basic Web Server package collection.
The Apache Configuration Tool is installed.
Close the Add/Remove Software program.
Apache is now installed.