rom has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Can't get cgi to work
by Fletch (Bishop) on May 02, 2005 at 15:11 UTC

    Ah, obviously your vreemflitzer's clogged. You'll need some ball bearings, some WD40, and a case of Quaker State . . . No, make that Penzoil.

    Hint: Try reading How to ask questions the smart way. and posting THE ACTUAL ERROR AND CODE.

Re: Can't get cgi to work
by PodMaster (Abbot) on May 02, 2005 at 16:22 UTC
    Read CGI Help Guide, it shows you how to go about resolving server errors.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Can't get cgi to work
by jbrugger (Parson) on May 02, 2005 at 17:21 UTC
    hi rom, i see you're new here, so try to read first if you want to be helped
    Anyway, as i understand you, your module (script?) works, but when you put it in a cgi directory, using CGI you get a server error? unknown to us on this moment :).

    Well, you probably need to set the rights to execute the script (aka on linux chmod 750 script.pl, and see if the proper user is the owner, and the group that apache runs on, can execute the script.

    Look if you have sudo enabeled in apache, then the rights are even more strict.

    Next, look at the output of your script, when you run it from the command-line, to see if there might be weird output of your script. (Do you create a proper html-header?) etc.etc., next when running on Windows, delete your os, install linux and practice. If all is ok, you might run on Windows again (if you still want it) ;-)....

    Good luck

    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
Re: Can't get cgi to work
by tcf03 (Deacon) on May 02, 2005 at 15:10 UTC
    first read How (Not) To Ask A Question then post some sample code and your server error.
    Ted
    --
    "Men have become the tools of their tools."
      --Henry David Thoreau
Re: Can't get cgi to work
by rom (Initiate) on Nov 13, 2005 at 09:16 UTC
    Been a while since I posted this message, at the time, I had just come acrross apache/ perl/ cgi. It turned out that the module did not have the correct permissions. So I am now able to use modules with apache. I have also recently read a bit about perl module mechanics. So I am a little wiser now. Mabey next time my question will be a little more intelligent :) Perhaps I will write it in perl...