Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

apache 2.0.x will not serv perl/cgi scripts -> (OS 6)The h..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Perl scripts on apache - Hi. I have windows 2000 and red hat linux 9 running on my machine. I have a local site that I would like to visit in both OSes. The problem is that it has perl scripts which run OK in windows, but when i boot to linux I just cant get them to work. The..

Configuring Apache to Execute Perl scripts - Hi, I have to work with both to configure an Apache server to execute Perl and/or CGI scripts. I browsed through the for some info but maybe it's not there or mabe being a novice I'm not getting it. I'm using Suse Linux 9.3 at the command..

perl scripts appear as text - Ive set up a virtual host which seems to work OK, except for links that are to scripts that generate pages. the script text is appearing rather than the generated page. The bit of the Directive *> .....

Mod_perl returning perl scripts! - Hi, I'm using Apache with Mod_Perl Perl scripts prepare wml cards to return to a request. This works fine if requests come from mobile phones. However, if I type the url into my web browser pointing to a perl script then the script get sent..

Perl scripts invoke the command prompt! - I have Apache 2 installed and When i go to my cgi-bin folder and try to open a .pl file it gives me the file download dialogue box and asks if i want to open it or save it. When i say open it it invoked the command prompt, executes the script..
Next:  Apache: problems with php and mod_rewrite  
Author Message
Thomas Steinbach

External


Since: Oct 21, 2007
Posts: 3



(Msg. 1) Posted: Tue Oct 23, 2007 5:58 pm
Post subject: apache 2.0.x will not serv perl/cgi scripts -> (OS 6)The handle is invalid
Archived from groups: alt>apache>configuration (more info?)

Hello 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 Sad

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"
<Directory "C:/www/cgi-bin">
Options ExecCGI FollowSymLinks Includes Indexes MultiViews
AllowOverride None
AddHandler perl-script .pl .cgi
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Order deny,allow
Allow from all
</Directory>
---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---

 >> Stay informed about: apache 2.0.x will not serv perl/cgi scripts -&gt; (OS 6)The h.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]