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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
"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 |