Forum Moderators: coopster & phranque

Message Too Old, No Replies

apache2 with cgi, configed, but failed to run

Invalid argument: couldn't spawn child process

         

Xuefer

10:36 am on Apr 16, 2003 (gmt 0)

10+ Year Member



when got request, error log shown:
[Wed Apr 16 18:19:03 2003] [error] [client 192.168.0.1] (22)Invalid argument: couldn't create child process: 22: perl.exe, referer: [.....]
[Wed Apr 16 18:19:03 2003] [error] [client 192.168.0.1] (22)Invalid argument: couldn't spawn child process: C:/Perl/bin/perl.exe, referer: [.....]

and this is my config:
ScriptAlias /perl/ "C:/Perl/bin/"
Action perl-script "/perl/perl.exe"
<Directory C:/MyDir>
SetHandler perl-script
</Directory>

i've tried hours, but with no luck
help me pls :/

grnidone

3:18 pm on Apr 16, 2003 (gmt 0)



I'm sure you've already checked this, but is perl in your path?

Xuefer

3:51 pm on Apr 16, 2003 (gmt 0)

10+ Year Member



yes, i've also tried php.exe

using Filemonitor:

3730.00019416Apache.exe:2264OPENC:\Perl\bin\perl.exe\validator\checkPATH NOT FOUNDOptions: Open Access: All
3740.00000726Apache.exe:2264CLOSED:SUCCESS
3750.00009191Apache.exe:2264OPENC:\Perl\bin\perl.exe\validator\checkPATH NOT FOUNDOptions: Open Access: All

Brett_Tabke

8:13 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



my conf under win98/apache

ServerName localhost
DocumentRoot "/www/"
<Directory />
Options All
</Directory>
<Directory "C:/www/">
Options All Indexes FollowSymLinks MultiViews
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler cgi-script .exe

AddType text/html .shtml
AddHandler server-parsed .shtml

AddType text/html .htm
AddHandler server-parsed .htm

<VirtualHost 127.0.0.26>
DocumentRoot /home/webmasterworld
ServerName webmasterworld.com
ScriptAlias /cgi-bin /home/webmasterworld/cgi-bin
TransferLog logs/WebmasterWorld-access.log
ScriptLog logs/WebmasterWorld-scripterror.log
LogLevel info
RewriteLog logs/rewritelog
RewriteLogLevel info
</VirtualHost>

Xuefer

1:42 am on Apr 17, 2003 (gmt 0)

10+ Year Member



but my system is win2k
and apache 2.0.45

grifter

5:19 am on Apr 17, 2003 (gmt 0)

10+ Year Member



Any particular reason you're running Apache 2 on Windows? I thought 1.x is more stable and the way to go.

Xuefer

6:06 am on Apr 17, 2003 (gmt 0)

10+ Year Member



for test purpose :)
so it's not that important to enable CGI on my desktop

but i wonder why those apache2 developers didn't test on CGI :(