Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: ActivePerl / Apache / WinMe config problem

by emcb (Beadle)
on Feb 25, 2002 at 01:45 UTC ( #147243=note: print w/replies, xml ) Need Help??

in reply to ActivePerl / Apache / WinMe config problem


are you sending your headers. Before any program output there must be a content-type HTTP header like this:

print "Content-Type: text/html\n\n";
Also what extension are you using .cgi, .pl.
  • Comment on Re: ActivePerl / Apache / WinMe config problem

Replies are listed 'Best First'.
Re: Re: ActivePerl / Apache / WinMe config problem
by Anonymous Monk on Feb 25, 2002 at 02:24 UTC

    Yes, I am sending the headers. I've tried using both .cgi & .pl with the same results.

      Run through this to see you have everything set properly:

      Your PATH contains the location to your perl/bin directory (most commonly installed to C:\perl\bin.

      Your ScriptAlias looks something like : ScriptAlias /cgi-bin/ "C:/Path/To/Apache/cgi-bin/"

      also could you post the contents of your script so i monks can take a look. There might be a code error.

        PATH contains the location to your perl/bin directory

        Yup. PATH=D:\Perl\bin

        ScriptAlias looks something like: ScriptAlias /cgi-bin/ "C:/Path/To/Apache/cgi-bin/"

        Yup: ScriptAlias /cgi-bin/ "D:/apache/cgi-bin/"

        I'm using a hello world script so the code shouldn't be an issue, unless there is perhaps a switch or something different I should do in the shebang? (I've tried it with back and forward slashes, tried etc\perl as well as etc\perl.exe, and tried several variations on capitalizatoin in case that matters (capitalization as below matches the o/s):

        print "Content-type: text/plain\n\n";
        print "hello, world!";

        thanks much for your help, this thing is making me nuts!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://147243]
Discipulus is Corion reading 'Gory details of parsing quoted constructs'?..
[perldigious]: That's awesome erix. One of my work friends, who coincidentally convinced me to learn Perl originally, has a Finnish pen-pal. I showed him this and he immediately wanted to send it along to her.
[perldigious]: Also coincidentally, I'm currently in the middle of a winter storm that has dropped 1 foot of snow and is expected to drop another. I might have to adapt this for customers/vendors who come visit and put it at the beggining of every presentation I give.
[Discipulus]: the photo was removed... Cyrano de Berjerac was not of the same idea..

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2016-12-06 16:24 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (112 votes). Check out past polls.