Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

newbie - apache and perl

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  mod_rewrite question  
Author Message
ruettger

External


Since: Oct 17, 2003
Posts: 3



(Msg. 1) Posted: Fri Oct 17, 2003 7:24 pm
Post subject: newbie - apache and perl
Archived from groups: alt>apache>configuration (more info?)

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 Wink ) 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

 >> Stay informed about: newbie - apache and perl 
Back to top
Login to vote
jeremy3

External


Since: Oct 16, 2003
Posts: 3



(Msg. 2) Posted: Fri Oct 17, 2003 10:56 pm
Post subject: Re: newbie - apache and perl [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Michael Rüttger" <ruettger RemoveThis @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 Wink ) 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<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: newbie - apache and perl 
Back to top
Login to vote
ruettger

External


Since: Oct 17, 2003
Posts: 3



(Msg. 3) Posted: Mon Oct 20, 2003 11:50 am
Post subject: Re: newbie - apache and perl [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

Michael<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie - apache and perl 
Back to top
Login to vote
jeremy3

External


Since: Oct 16, 2003
Posts: 3



(Msg. 4) Posted: Mon Oct 20, 2003 11:51 pm
Post subject: Re: newbie - apache and perl [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Michael Rüttger" <ruettger.DeleteThis@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? Sad
 >
 > 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<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie - apache and perl 
Back to top
Login to vote
ruettger

External


Since: Oct 17, 2003
Posts: 3



(Msg. 5) Posted: Tue Oct 21, 2003 5:24 pm
Post subject: Re: newbie - apache and perl [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jeremy wrote:

 > AddType application/x-httpd-pl .pl


Hi Jeremy,

thank's, that was the problem.

Michael<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie - apache and perl 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Compiling Apache 1.3.28 and PHP/Perl/SSL - I currently work with Apache 1.3.12, PHP 4.0.4, adn Perl 5.00 compiled into one honkin' static binary. Has anyone successfully compiled Apache 1.3.28, PHP 4.3.x, and Perl 5.8 like this? I started testing a Redhat 9.0 system with the above except that....

Executing perl code in apache - I have tried the AddType cgi-bin .pl and also added the directory and a name to the cgi-bin directive under the apache config but the perl code doesn't get executed, instead I get to see raw perl code in the browser. What do I need to do so apache..

Newbie problem (PHP module with Apache on XP Pro) - Hi folks I wonder if anyone can help me out. I'm a total newbie to Apache. I want to learn about online databases so I've started with a book. I installed MySQL and that works ok. Installed Apache 2.0.43 and got it running. Starting Netscape or IE and ...

apache serve doesn't launch... newbie stuff probably :) - Hi there, my apache server suddenly cannot start, the only clue I have, is that I had Zone alarm firewall installed (some time after I installed that, apache stopped launching). I didn't like this firewall anyway, so i switched to Kerio Personal Firewall...

Newbie: Debian upgrade 2.2 to 3.0 stops apache - Just upgraded from Debian 2.2 to 3.0, fortunately on a test machine, but now Apache won't start. Problem I presume is related to Tomcat. Error given is Syntax error on line 69 of /etc/apache/httpd.conf: Invalid command 'JkWorkersFile', perhaps..
   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 ]