Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   test-cgi causes Internal Server Error
Date:   2002-03-27 22:17:29
From:   tcolin
Thanks for the helpful series.


I tried working through the steps in the article today, but ran into a problem with the execution of test-cgi. After chmodding as described, printenv worked fine, but test-cgi shows an "Internal Server Error" message in the browser, and puts the following error message in the log.


malformed header from script. Bad header=bootstrap_look_up() failed (ip: /Library/WebServer/CGI-Executables/test-cgi


Anyone wanna give me a clue?


BTW, running Mac OSX 10.1.3 Japanese on Quicksilver G4 733.

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • test-cgi causes Internal Server Error
    2002-04-03 15:43:33  danastasi [View]

    OK. I'm no expert, but here's an answer:

    That error will only occur if you start apache while logged in to the terminal. Sometimes when starting a daemon from the terminal, OS X will "forget" who started it and/or where. This will happen with daemons other than Apache, too. I've had the same problem with MySQL.

    One solution is to make sure that the Apache daemon is being launched on startup, not from the Terminal.
    • test-cgi causes Internal Server Error
      2002-04-06 14:27:33  scottfeldstein [View]

      Had the same problem as above. "Internal server error" when loading a page with an include to "test-cgi."



      Oddly, I changed the include to trigger "printenv" and it worked fine. It was really puzzling.



      You already know the end of the story. I read the above comments and restarted my server. Works like a charm now. Thanks guys.
      • test-cgi causes Internal Server Error
        2002-04-06 14:28:50  scottfeldstein [View]

        And I will try to get out of the habbig of using html here. Sorry. It's spending too much time on Slashdot. :)