You'll need to change your shebang line to #!c:/perl/bin/perl.exe
instead of #!/usr/local/bin/perl or something like that. Search the past archives on this list (assuming there are any) as this question has definitely come up in the last 3 months before. At 01:06 AM 10/17/01, rabs wrote: >Subject: configuring apache to run cgi -perl on win32 system > > > > Hello, thank you for taking the time to read this, I hope you can help, I > > have downloaded the release of Apache/1.3.20 to run on windows 98. I >wish > > to run perl cgi so I have made the following changes to the httpd.config > > file > > > > > > > > changed #ServerAdmin to ServerAdmin [EMAIL PROTECTED] > > > > > > changed #ServerName to ServerName 127.0.0.1 > > > > > > removed the # precedding "AddHandler cgi-script .cgi > > > > > > > > I then placed the following program named "hello.cgi" in the directory > > c:/apache/cgi-bin/ > > > > > > ############## > > > > #!/usr/local/bin/perl > > > > # hello.pl -- my first perl script! > > > > print "Content-type: text/html\n\n"; > > > > print "Hello, world!\n"; > > > > > > ############### this script runs ok from the command >line################## > > > > > > > > I then went to the url http://localhost/cgi-bin/hello.cgi > > > > > > I get this error message > > > > ############## > > > > Fri Oct 12 20:48:47 2001] [error] [client 127.0.0.1] couldn't spawn child > > process: c:/apache/cgi-bin/hello.cgi > > > > ############## > > > > > > what am I doing wrong? Activestate Perl is installed at > > C:\Perl\bin\perl.exe I think this has something to do with it. But I Ive > > been looking at this config file for the last eight hours and dont know > > anymore.. > > > > > > Anyway If you can help thanks in advance... > > > > Ric > > > > > > > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________ Gunther Birznieks ([EMAIL PROTECTED]) eXtropia - The Open Web Technology Company http://www.eXtropia.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]