Women in Technology

Hear us Roar

  Apache Web-Serving with Mac OS X: Part 2
Subject:   Domain Name
Date:   2002-03-01 11:11:16
From:   fritz
Response to: CGI script error

OK, in trying to figure out what is happening I am following the error_log and keep seeing the two following entries and am concfused. (not that that is all tha uncommon <grin>)

1)To Thu Feb 28 17:00:41 2002] [alert] httpd: Could not determine the server's fully qualified domain name, using for ServerName
[Thu Feb 28 17:00:41 2002] [notice] Apache/1.3.22 (Darwin) PHP/4.0.6 configured -- resuming normal operations

First, why is it unable to determine the FQDN?

I tried going into the file ~/etc/hostconfig, and changing the "HOSTNAME=-AUTOMATIC- " ( I have an DHCP DSL connection, not a static IP) but tried just the same to a name I own and is not used yet. NO Change. Is this the proper place to do that and if so how do I make it take effect so that I don't get the error listed above? Another note is that checking the output page of index.PHP shows host name as 127.0.01 regardless of this setting.

Also if you could comment on what the following means?

[Thu Feb 28 17:00:41 2002] [notice] Accept mutex: flock (Default: flock)

Thanks for a great series!

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Domain Name
    2003-04-05 10:09:44  anonymous2 [View]

    This can actually be solved with the following steps:

    1) Edit the httpd.conf file with an editor.
    2) Search for the line that starts with ServerName
    3) Change that line to ServerName <I.P. Address of your computer> (I run it on localhost so it is: ServerName
    4) If this line does not exists then add it in the httpd.conf file.
  • Domain Name
    2002-03-03 15:13:59  philocon [View]

    I solved this problem by editing httpd.conf as follows:

    I replaced "root@fisheye" in
    "ServerAdmin root@fisheye"
    by my e-mail address.

    Good luck!