Forum Moderators: phranque

Message Too Old, No Replies

mod perl && fcgi parallel

         

piccard21

4:06 pm on May 29, 2012 (gmt 0)

10+ Year Member



Hello everybody,
I have to move a perl-CGI-application to a webserver which runs under fcgi. I alreday tried to wrap the CGI-application in loops but it worked just half. So my idea was to install besides mod_fcgi also mod_perl and configure the apache, so it just uses mod_perl for the directoy where the CGI-application is. so far I failed :-(
Here's a part of the configuartion of the apache which runs under fcgi:

 <IfModule mod_fcgid.c>
#SuexecUserGroup web1 web1
PHP_Fix_Pathinfo_Enable 1

<Directory /srv/www/web1/web/>
Options +ExecCGI -Indexes
AllowOverride All
AddHandler fcgid-script .php .pl
FCGIWrapper /srv/www/php-fcgi-scripts/web1/php-fcgi-starter .php
Order allow,deny
Allow from all
</Directory>
<Directory /srv/www/web1/web/perl/>
SetHandler fcgid-script
Options +ExecCGI
# Customize the next two directives for your requirements.
Order allow,deny
Allow from all
</Directory>
</IfModule>


Just below this code I did this, which doesn't work. In the apache-error-log I can see the HTMl, which is supposed to be on the screen & this one:
 mod_fcgid: process path2perlScript.pl(2005) exit(communication error), terminated by calling exit(), return code: 0


so it's a fcgi-error.
 <IfModule mod_perl.c>
<Directory /srv/www/web1/web/nasss>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /srv/www/web1/web/perl/nasss>
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
</IfModule>



Anybody of the professionel administrators out there have suggestion how I can run a CGI-application on a fcgi-server?

thanx 4 all :-D