Installing Apache HTTP Server 1.3.20
This article describes how to do the following:
- Install Apache HTTP Server on a Linux (Intel) machine from files downloaded from the
Apache HTTP Server Download Web site at
httpd.apache.org/dist.
- Test the installation of Apache HTTP Server
.
These instructions assume the following:
- Your machine has enough memory and disk space for the installation. See the Apache HTTP Server documentation Web site at
www.apache.org/docs for more information.
- You do not have a previous version of Apache HTTP Server already installed on your machine. If you do
have a previous version of Apache HTTP Server installed, you must remove it before installing
Apache HTTP Server 1.3.20. See the Apache HTTP Server documentation Web site at
www.apache.org/docs for more information.
Note: It is recommended that you install Apache HTTP Server before installing WebSphere Application
Server. The WebSphere Application Server installation process changes a Web server's configuration
so that the Web server directs certain requests (such as servlet requests) to WebSphere
Application Server. If the Web server is not installed before WebSphere Application Server,
WebSphere Application Server could function incorrectly.
Installing Apache HTTP Server from downloaded files
You can install Apache HTTP Server from a binary distribution downloaded from the Apache Software
Foundation Web site at httpd.apache.org/dist.
Note: Binary distributions of Apache HTTP Server are provided for your convenience; current
distributions for specific platforms are not always available. Verify that the binaries you are
downloading and installing are for the correct distribution and version of Linux and correct
version the kernel.
Perform the following steps to install Apache HTTP Server from a downloaded .tar.gz file:
- Ensure that you are logged into the machine with superuser (root) privileges.
- Download the appropriate binary distribution of Apache HTTP Server from the Apache Software
Foundation Web site at httpd.apache.org/dist.
- Uncompress and untar the .tar.gz file you downloaded to extract the Apache HTTP Server packages by
using the tar command, as follows:
# tar -zxvf file_name.tar.gz
In this command, file_name is the name of the .tar.gz file you downloaded.
- Ensure that you are in the directory containing the uncompressed and untarred Apache
HTTP Server packages.
- Install the Apache HTTP Server binaries by using the install-bindist.sh script, as follows:
# ./install-bindist.sh
The Apache HTTP Server is installed in the /usr/local/apache directory,
by default.
- To change the default configuration of the Apache HTTP Server, edit the httpd.conf, srm.conf,
and access.conf files as necessary. See the Apache Directives Web site at
www.apache.org/docs/mod/directives.html
for more information about editing these files and using Apache HTTP Server runtime directives.
Testing installation of Apache HTTP Server
Perform the following steps to verify that Apache HTTP Server
is installed correctly:
- Start the server by entering the httpd command, as follows:
# /usr/local/apache/bin/httpd
The httpd command attempts to locate the httpd.conf file in the default directory,
/usr/local/apache. If the httpd.conf file is located in a different directory, you can
specify the full pathname of the httpd.conf file by using the -f option.
- Start a Web browser and enter the name of the host machine as the URL
(http://host_machine_name). If you see a Web site that contains links to the
Apache Software Foundation Web site and the Powered by Apache logo, the Apache HTTP
Server is running properly. Note that you possibly need to adjust the server's
configuration for it to run optimally on your machine. For more information, see the
Apache HTTP Server documentation Web site at
www.apache.org/docs.
|
|