vbrtrmn has asked for the wisdom of the Perl Monks concerning the following question:

This may be the wrong place to ask, flame me if necessary, any information is always apreciated!
Here's a problem I'm having .. I need an Apache guru to help me.
I have Perl installed on my Win2k box (it is at work, i have no choice). I installed apache, to do some testing and I can't seem to get Perl working with it. I keep getting Internal Server Error messages, through http://localhost/cgi-bin/script.pl.
The \logs\error.log file comes back with: couldn't spawn child process: c:/program files/apache group/apache/htdocs/cgi-bin/test.cgi
I have Apache installed in: c:\program files\apache group\apache
I have Perl installed in: c:\Perl

In my httpd.conf I have the following parameters set:
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/htdocs/cgi +-bin/" <Directory "C:/Program Files/Apache Group/Apache/htdocs/cgi-bin"> AllowOverride None Options ExecCGI Order allow,deny Addhandler cgi-script .pl .cgi Allow from all </Directory> AddHandler cgi-script .cgi AddHandler cgi-script .pl AddHandler cgi-script .pm AddHandler cgi-script .exe

--
paul

Replies are listed 'Best First'.
(Ovid) Re: Perl on Apache on Win32
by Ovid (Cardinal) on Aug 03, 2001 at 02:34 UTC

    When I run Apache on Windows, I often see that error message when I have a shebang line that doesn't point to the Perl executable. Check that and verify the path.

    I'm always copying something from a Linux box and not changing the shebang :(

    Cheers,
    Ovid

    Vote for paco!

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Re: Perl on Apache on Win32
by converter (Priest) on Aug 03, 2001 at 03:08 UTC

    Hmm. Let's ask perldoc the bot.

    <converter> perldoc winperlcfg
    [18:00] <perldoc> For information on configuring ActiveState Perl to work with your Windows server, see:
    http://www.activestate.com/ASPN/Products/ActivePerl-5.6/faq/Windows/ActivePerl-Winfaq6.html

    Have a look at the link perldoc printed for more info.

    Ok, that was lame, but I just felt like stretching my wings. Maybe I've just been on IRC too much lately.

    conv

      Thanks for your help, I found it right away there!!
      --
      paul