apache 2.0.x will not serv perl/cgi scripts -> (OS 6)The handle is invalid
am 23.10.2007 22:57:36 von Thomas SteinbachHello NG,
Help I'm stuck.
If I start my apache (2.0.61/Windows)
All seems to be fine php, ssl(mod_ssl, and all
modules are loaded -> Server-Signatuer is:
Apache/2.0.61 (Win32) DAV/2 mod_ssl/2.0.61 OpenSSL/0.9.8e SVN/1.4.5
PHP/5.2.4 mod_python/3.3.1 Python/2.5.1 mod_perl/2.0.3 Perl/v5.8.8 Server at
webserver Port 80
But if I try to call
a cgi or pl script -> the server ends
and in my error.log I have these messages:
---snip---
[crit] (22)Invalid argument: Parent: Failed to create the child process.
[crit] (OS 6)The handle is invalid. : master_main: create child process
failed. Exiting.
[notice] Parent: Forcing termination of child process 2865560
---snap---
I hope somebody can help me. Waht's my promblem?
I didn't finde any helpful websites with google :-(
Thomas
PS:
My cgi-bin is in:
"C:/www/cgi-bin"
My document root (main server) is:
"C:/www/htdocs"
My document root (used virtual host "webserver") is:
"C:/www/htdocs"
Apache Config is
---snip---
other
LoadModule cgi_module modules/mod_cgi.so
other
---snap---
My mod-perl/Perl 5.8.x config is
---snip---
LoadFile "C:/perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
PerlRequire "C:/apache/apache/conf/extra/perlsup.pl"
Options ExecCGI FollowSymLinks Includes Indexes MultiViews
AllowOverride None
AddHandler perl-script .pl .cgi
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Order deny,allow
Allow from all
---snap---
perlsup.pl is
---snip---
use ModPerl::Util ();
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';
use APR::Table ();
use Apache2::compat ();
use ModPerl::Registry ();
use CGI ();
1;
---snap---
Installed Modules in perl 58 are
---snip---
CGI
mod_perl (Apache 2.0.x)
Class-Accessor
Config-General
Encode-HanExtra
Encode-JIS2K
HTML-Encoding
HTML-Template
HTML-Tidy
Net-IP
SGML-Parser-OpenSP
XML-LibXML
XML-LibXML-Common
XML-NamespaceSupport
XML-SAX
Config-General
---snap---
"perl printenv.cgi" or "perl printenv.pl"
works fine in console
printenv.pl and printenv.cgi are:
---snip---
#!C:/perl/bin/perl.exe
##
## printenv -- demo CGI program which just prints its environment
##
print "Content-type: text/plain; charset=iso-8859-1\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
---snap---