Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   CGI script error
Date:   2002-02-28 11:37:05
From:   fritz
First let me say this is a Fantastic Tutorial. Thank you


When I enter http://127.0.0.1/ I was getting a directory listing, then I changed the "DirectoryIndex index.html" to "DirectoryIndex index.html index.shtml" and now I get the Gleefully served message with this below it.
[an error occurred while processing this directive]
I then changed the permissions of test-cgi to 755 and still get the same thing. ?


any thoughts?


Thanks again
Fritz


Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Domain Name
    2002-03-01 11:11:16  fritz [View]

    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 127.0.0.1 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!
    regards,
    Fritz
    • 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 127.0.0.1)
      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!