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

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

Hi,

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
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):

        #!D:\Perl\bin\perl
        print "Content-type: text/plain\n\n";
        print "hello, world!";

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://147243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2014-09-18 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (115 votes), past polls