TITLE
    Mac OS X Server: Verifying Apache Installation
Article ID:
Created:
Modified:
60042
2/3/99
3/15/99

TOPIC

    The Apache web server is not running even though I selected it to be a web server in the Setup Assistant. What do I do?


DISCUSSION

    Open the network settings from the Apple Menu. Under the Services tab, make sure that the server has a name. Make sure the setting to be a web server is checked. If this is the case, the /etc/hostconfig file should include the following line:

    WEBSERVER=-YES-

    Check the console for any relevant errors by choosing the Console command from the Tools menu in the Workspace Manager.

    Attempt to start the server from the command line by typing the following command at the prompt (open the Terminal application first):

    apachectl start

    If there is an error about the server's name, set the server name manually by editing the apache.conf file (/Local/Library/WebServer/Configurations/apache.conf). The setting you will edit is "ServerName". You must replace "localhost" with an explicit hostname (e.g. "joesbox.apple.com") Be sure to use the hostname provided by your network administrator or ISP. Also, uncomment the line by removing the pound sign (#) before the "ServerName" on that line.

    Please backup the config file before making any change by typing the following command at the prompt:

    cp apache.conf apache.conf.old

    After saving the changes to the config file, try restarting the server manually again from the command line.

Document Information
Product Area: Mac OS System Software
Category: Mac OS X Server
Sub Category: Apache

Copyright © 2000 Apple Computer, Inc. All rights reserved.