Datasheet

Testing Your Installation
To test installation of your Apache server, open your Web browser and type the following:
http://localhost/
If your installation was successful, you will see an Apache “success” page in your browser. If not, check
your error log by opening the
error. log file, which you can find in c:\program files\Apache
Group\Apache2\logs\
. This gives you an indication of where your installation went wrong. For a
more in-depth discussion of logs, please refer to Chapter 17.
If you had installation problems, note that you might experience errors, such as the “no services installed”
error if Apache is trying to share port 80 with another Web server or application, such as a firewall. To fix
this, open your
httpd.conf file in the c:\program files\Apache group\Apache2\conf directory
and locate the following lines:
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
Change the last line of this block to read
Listen 8080
Then locate the following lines:
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName www.yourdomainnamehere.com:80
Change the last line of this code to the following:
ServerName www.yourdomainnamehere.com:8080
9
Configuring Your Installation
04_579665 ch01.qxd 12/30/04 8:09 PM Page 9