Mailing List Archive

FastCGI deployment
Hi!

I've migrated my current mod_perl setup to mod_fcgid (not fastcgid,
because fcgid is included in Debian) today but the processes terminate
as soon as the request has been handled which leads to really bad
performance.

Any idea why this is happening?

That's my current apache config

from the vhost:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

mods-enabled/zembperl.conf:

AddType text/html .epl

<IfModule !mod_perl.c>
# CGI version

<IfModule mod_actions.c>
#Action embperl /cgi-bin/embpcgi.pl
#Action embperlobject /cgi-bin/epocgi.pl
Action embperl-fastcgi /cgi-bin/embpfastcgi.pl

AddHandler embperl-fastcgi .epl
</IfModule>
</IfModule>

mods-enabled/fcgid.conf:

<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 20
</IfModule>


--
best regards, Alex


*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
AW: FastCGI deployment [ In reply to ]
Hi,

I never have used mod_fcgid. Maybe it does not work together with FCGI.pm,
which is used by embpfastcgi.pl

Gerald

-----Ursprüngliche Nachricht-----
Von: Alexander Hartmaier [mailto:alexander.hartmaier@t-systems.at]
Gesendet: Montag, 19. Oktober 2009 20:12
An: embperl@perl.apache.org
Betreff: FastCGI deployment

Hi!

I've migrated my current mod_perl setup to mod_fcgid (not fastcgid,
because fcgid is included in Debian) today but the processes terminate
as soon as the request has been handled which leads to really bad
performance.

Any idea why this is happening?

That's my current apache config

from the vhost:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

mods-enabled/zembperl.conf:

AddType text/html .epl

<IfModule !mod_perl.c>
# CGI version

<IfModule mod_actions.c>
#Action embperl /cgi-bin/embpcgi.pl
#Action embperlobject /cgi-bin/epocgi.pl
Action embperl-fastcgi /cgi-bin/embpfastcgi.pl

AddHandler embperl-fastcgi .epl
</IfModule>
</IfModule>

mods-enabled/fcgid.conf:

<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 20
</IfModule>


--
best regards, Alex


*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
*"*
Notice: This e-mail contains information that is confidential and may be
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
*"*

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: AW: FastCGI deployment [ In reply to ]
Hi Gerald!

It is API compatible, so yes it does work.
I use it with Catalyst without a problem.

Can you provide me a sample config for mod_fastcgi?

Am Sonntag, den 25.10.2009, 00:32 +0200 schrieb richter@ecos.de:
> Hi,
>
> I never have used mod_fcgid. Maybe it does not work together with FCGI.pm,
> which is used by embpfastcgi.pl
>
> Gerald
>
> -----Ursprüngliche Nachricht-----
> Von: Alexander Hartmaier [mailto:alexander.hartmaier@t-systems.at]
> Gesendet: Montag, 19. Oktober 2009 20:12
> An: embperl@perl.apache.org
> Betreff: FastCGI deployment
>
> Hi!
>
> I've migrated my current mod_perl setup to mod_fcgid (not fastcgid,
> because fcgid is included in Debian) today but the processes terminate
> as soon as the request has been handled which leads to really bad
> performance.
>
> Any idea why this is happening?
>
> That's my current apache config
>
> from the vhost:
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> <Directory "/usr/lib/cgi-bin">
> AllowOverride None
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> </Directory>
>
> mods-enabled/zembperl.conf:
>
> AddType text/html .epl
>
> <IfModule !mod_perl.c>
> # CGI version
>
> <IfModule mod_actions.c>
> #Action embperl /cgi-bin/embpcgi.pl
> #Action embperlobject /cgi-bin/epocgi.pl
> Action embperl-fastcgi /cgi-bin/embpfastcgi.pl
>
> AddHandler embperl-fastcgi .epl
> </IfModule>
> </IfModule>
>
> mods-enabled/fcgid.conf:
>
> <IfModule mod_fcgid.c>
> AddHandler fcgid-script .fcgi
> SocketPath /var/lib/apache2/fcgid/sock
> IPCConnectTimeout 20
> </IfModule>
>
>
> --
> best regards, Alex
>
>
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
> *"*
> T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
> Handelsgericht Wien, FN 79340b
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
> *"*
> Notice: This e-mail contains information that is confidential and may be
> privileged.
> If you are not the intended recipient, please notify the sender and then
> delete this e-mail immediately.
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
> *"*
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
--
LG Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org