Re: configuring apache to run cgi -perl on win32 system
Id like to say a big thankyou to everyone who help me with this.. - Original Message - From: rabs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 16, 2001 6:06 PM Subject: configuring apache to run cgi -perl on win32 system 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 #preceddingAddHandler 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 Perlis 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] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuring apache to run cgi -perl on win32 system
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 #preceddingAddHandler 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 Perlis 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]
Re: configuring apache to run cgi -perl on win32 system
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 #preceddingAddHandler 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 Perlis 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]