newbie - apache and perl

This is a discussion on newbie - apache and perl within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, after the installation of apache 2.0 on a Win XP system I have problems to execute pl-scripts. ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-17-2003
Michael Rüttger
 
Posts: n/a
Default newbie - apache and perl

Hi,

after the installation of apache 2.0 on a Win XP system I have problems to
execute pl-scripts. I read the Manual and I think I have done the same
things. The version of perl is 5.6.1-635. In the file httpd.conf I have
added the following lines:

ScriptAlias /cgi-bin/ "c:/programme/apache group/apache2/cgi-bin/"
AddHandler cgi-script pl
Options +Includes

After execute apache says I had an error. In the logfile I can find the
following lines:
[Fri Oct ...][error][client ...](OS 2)Das System kann die angegebene Datei
nicht finden. : couldn't create child process: 720002: cgitest.pl
[Fri Oct ...][error][client ...] (OS 2)Das System kann die angegebene Datei
nicht finden : couldn't spawn child process: c:/Programme/Apache
Group/Apache2/cgi-bin/cgitest.pl

On the older System 1.32.x I delete the file access.conf (ok, ok, not so
good ;-) ) and I had no problems. But now I don't know what I should do?
Please, can you help me? I use the apache webserver only for personal tests
so that I don't use special security.

p.s.: Excuse my english!

Michael
  #2 (permalink)  
Old 10-17-2003
Jeremy
 
Posts: n/a
Default Re: newbie - apache and perl

"Michael Rüttger" <ruettger@gmx.de> schrieb im Newsbeitrag
news:bmou3b$p2t3o$1@ID-116237.news.uni-berlin.de...
> Hi,
>
> after the installation of apache 2.0 on a Win XP system I have problems to
> execute pl-scripts. I read the Manual and I think I have done the same
> things. The version of perl is 5.6.1-635. In the file httpd.conf I have
> added the following lines:
>
> ScriptAlias /cgi-bin/ "c:/programme/apache group/apache2/cgi-bin/"
> AddHandler cgi-script pl
> Options +Includes
>
> After execute apache says I had an error. In the logfile I can find the
> following lines:
> [Fri Oct ...][error][client ...](OS 2)Das System kann die angegebene Datei
> nicht finden. : couldn't create child process: 720002: cgitest.pl
> [Fri Oct ...][error][client ...] (OS 2)Das System kann die angegebene

Datei
> nicht finden : couldn't spawn child process: c:/Programme/Apache
> Group/Apache2/cgi-bin/cgitest.pl
>
> On the older System 1.32.x I delete the file access.conf (ok, ok, not so
> good ;-) ) and I had no problems. But now I don't know what I should do?
> Please, can you help me? I use the apache webserver only for personal

tests
> so that I don't use special security.
>
> p.s.: Excuse my english!
>
> Michael


is the file cgitest.pl in your cgi-bin?? That would seem to be the first
problem.

Jeremy


  #3 (permalink)  
Old 10-20-2003
Michael Rüttger
 
Posts: n/a
Default Re: newbie - apache and perl

Jeremy wrote:

> is the file cgitest.pl in your cgi-bin?? That would seem to be the first
> problem.


Hi Jeremy,

yes, I use the cgi-bin-Folder. I don't know, what the problem is... any
ideas? :(

Michael
  #4 (permalink)  
Old 10-20-2003
Jeremy
 
Posts: n/a
Default Re: newbie - apache and perl


"Michael Rüttger" <ruettger@gmx.de> schrieb im Newsbeitrag
news:bn00j7$rqej6$1@ID-116237.news.uni-berlin.de...
> Jeremy wrote:
>
> > is the file cgitest.pl in your cgi-bin?? That would seem to be the first
> > problem.

>
> Hi Jeremy,
>
> yes, I use the cgi-bin-Folder. I don't know, what the problem is... any
> ideas? :(
>
> Michael


You need to make sure the following are set in you httpd.conf:
LoadModule perl_module /path/to/mod_perl.so(or dll)
ScriptAlias /cgi-bin/ "path/to/cgi-bin/"
AddType application/x-httpd-pl .pl
AddHandler cgi-script .pl

Also remember Apache need the "shebang" line of your perl script for example
#!C:\ProgramFiles\ActivePerl\Bin\

Hope that helps

Jeremy


  #5 (permalink)  
Old 10-21-2003
Michael Rüttger
 
Posts: n/a
Default Re: newbie - apache and perl

Jeremy wrote:

> AddType application/x-httpd-pl .pl



Hi Jeremy,

thank's, that was the problem.

Michael
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0