help on using apache with cgi/perl

I was wondering if any one could provide a solution to a clueless person...


I just setup my apache and I want to use perl/cgi with the server...I was wondering if I need to download active perl??...I'm on Windows XP using apache 1.3...with out ay perl installed...

I went through the tutorial/docs on apache and changed httpd.conf but its still throwing up errors in the error.log and a "500 internal error" on the browser

[error] [client 127.0.0.1] couldn't spawn child process: c:/apache/cgi-bin/test.pl

I understand that if you use "/usr/local/apache/cgi-bin/" then the perl interpreter would be "#!/usr/bin/perl"

what would the perl interpreter be if I use "c:\apache\cgi-bin" ??...

I hope you understand, since I certainly do not :mad:
 
You have to get activeperl and install it first.

then change the path of the perl.exe on ALL your scripts

eg. with perl installed in c:\perl\bin

usual script will have: #!/usr/bin/perl
modify script to: #!c:\perl\bin\perl.exe

- Jojit
 
Top