
August 25th, 2001, 09:22 PM
|
|
Enter text here? Ok magic computer, whatever you say!
|
|
Join Date: Aug 2001
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
installing perl on apache
Hi, I've been trying to get Perl to work on my Apache version 1.3.2, but I can't get it. The script alias for the cgi-bin is the default, ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/" and I've been trying to test out the test script that apache already has in there, printenv.pl. I have the latest ActivePerl for win32 installed also. But when I try to access URL it asks me if I want to download the file, rather than displaying it. Why is it doing this? The shebang line on printenv.pl is #!C:\Perl\bin\perl.exe, which is where the perl.exe is located and I just can't figure out why its not working. I'm new to perl, I usually use php, so thanks for your help.
EDIT-Ah, I did some searching and figured it out. Seems it will only display if its set to "Content-type: text/html\n\n", instead of "Content-type: text/plain\n\n";, which I had it set on . 
Last edited by szfrenzy : August 25th, 2001 at 09:46 PM.
|