Change from FastCGI to fcgid

Now that I installed fcgid, and have configure Apache2 httpd.conf with the
following:
LoadModule fcgid_module modules/mod_fcgid.so

<Location /fcgid>
SetHandler fcgid-script
Options ExecCGI
allow from all

I have comment-out the LoadModule for FastCGI in httpd.conf.
What else do I need to reference RT to use fcgid instead of FastCGI?

I’m seeing the below line in httpd.conf, do I need to change FastCgiServer to
fcgid?
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 10

Regards,

Mike

Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

I sent this example rt.conf yesterday in another topic (change paths if
necessary):

LoadModule fcgid_module modules/mod_fcgid.so

Use FastCGI to process .fcg .fcgi & .fpl scripts

Don’t do this if mod_fastcgi is present, as it will try to do the same

thing
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl

Sane place to put sockets and shared memory file

SocketPath run/mod_fcgid
SharememPath run/fcgid_shm

Main instance

Alias /rt/NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

Get rid of:

FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes
10

James Moseley

         mailing list                                                  
         <sunlist@yahoo.co                                             
         m>                                                         To 
         Sent by:                  rt-users@lists.bestpractical.com    
         rt-users-bounces@                                          cc 
         lists.bestpractic                                             
         al.com                                                Subject 
                                   [rt-users] Change from FastCGI to   
                                   fcgid                               
         07/18/2007 10:52                                              
         AM                                                            

Now that I installed fcgid, and have configure Apache2 httpd.conf with the
following:
LoadModule fcgid_module modules/mod_fcgid.so

<Location /fcgid>
SetHandler fcgid-script
Options ExecCGI
allow from all

I have comment-out the LoadModule for FastCGI in httpd.conf.
What else do I need to reference RT to use fcgid instead of FastCGI?

I’m seeing the below line in httpd.conf, do I need to change FastCgiServer
to
fcgid?
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes
10

Regards,

Mike

Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Hi,

here is my working one:

Global Section:

LoadModule fcgid_module modules/mod_fcgid.so

Virtual Host Part:

Neue FCGID Config fuer rtdev

<VirtualHost *>
ServerAdmin admin@company.com
ServerName rtdev.company.com
DocumentRoot /opt/rt3/share/html/
AddDefaultCharset UTF-8
AddHandler fcgid-script .fcgi

    # FCGID Configuration. See more details:

http://fastcgi.coremail.cn/doc.htm

    IdleTimeout 7200
    # An idle fastcgi application will be terminated after IdleTimeout

seconds.

    IdleScanInterval 480
    # The scan interval for idle fastcgi applications.

    BusyTimeout 3000
    # a fastcgi application will be terminated if handing a single

request longer than busy timeout.

    BusyScanInterval 480
    # The scan interval for busy timeout fastcgi applications.

    ErrorScanInterval 3
    # The scan interval for exit pending fastcgi applications. fastcgi

applications will be terminated within
# this scanning.

    ZombieScanInterval 3
    # The scan interval for zombie process.

    ProcessLifeTime 86400
    # A fastcgi application will be terminated if lifetime expired, even

no error is detected.

    SocketPath /tmp/fcgid/sock.rt3
    # WICHTIG, das komplette Verzeichnis bis hin zum Socket muss

schreibbar sein für apache!
# The directory to put the UNIX domain socket. (UNIX only)

    SpawnScoreUpLimit 10
    # The spawn-speed control score up water limit. Score increases

while a process is spawned or terminated, and
# decreases as time progresses; while the score is higher than
SpawnScoreUpLimit, the spawning will be held

    SpawnScore 1
    # The weight of spawning.  This weight will be plused to the

spawn-control score on every spawn. The higher
# this number is, the lower speed of spawning can be.

    TerminationScore 2
    # The weight of termination. This weight will be plused to the score

while fastcgi process terminates. The
# higher this number is, the lower speed of spawning can be.

    MaxProcessCount 40
    # The max count of total fastcgi process count.

    DefaultMaxClassProcessCount 32
    # The maximum number of fastcgi application instances allowed to run

for any one fastcgi application.

    DefaultMinClassProcessCount 3
    # The minimum number of fastcgi application instances for any one

fastcgi application.

    # DefaultInitEnv  env_name env_value
    # The default environment variables before a fastcgi application is

spawned. You can set this configuration
# more than once.

    IPCConnectTimeout 100
    # The connect timeout to a fastcgi application.

    IPCCommTimeout 1200
    # The communication timeout to a fastcgi application. Please

increase this value if your CGI have a slow
# initialization or slow respond.

    # OutputBufferSize n (64k bytes)
    # CGI output cache buffer size.

    # MaxRequestsPerProcess n (-1)
    # Adds a MaxRequestsPerProcess parameter that allows mod_fcgid to

exit after handling a certain number of
# requests, similar to the existing ProcessLifeTime option.

    # END FCGID CONFIG


    <Directory "/opt/rt3/share/html">
            Options FollowSymLinks ExecCGI
            AllowOverride None
    </Directory>
    ExpiresActive On
    ExpiresByType text/css A3600
    ExpiresByType image/png A3600
    ExpiresByType application/x-javascript A3600
    ExpiresByType image/gif A3600
    Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
    Alias /pics/ /opt/rt3/share/html/NoAuth/images/pics/
ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

Hope this helps a lilttle.

Torsten2007/7/18, mailing list sunlist@yahoo.com:

Now that I installed fcgid, and have configure Apache2 httpd.conf with the
following:
LoadModule fcgid_module modules/mod_fcgid.so

<Location /fcgid>
SetHandler fcgid-script
Options ExecCGI
allow from all

I have comment-out the LoadModule for FastCGI in httpd.conf.
What else do I need to reference RT to use fcgid instead of FastCGI?

I’m seeing the below line in httpd.conf, do I need to change FastCgiServer
to
fcgid?
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes
10

Regards,

Mike


Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

MFG

Torsten Brumm

http://www.torsten-brumm.de

I’ve untar fcgid in /usr/local/apache2, follow the INSTALL.txt and it seems to
be compiling. However, now when attempting to stop/start apache…

/etc/init.d/apache2 stop

Stopping Apache2 Server
Syntax error on line 242 of /usr/local/apache2_0_58/conf/httpd.conf:
Cannot load /usr/local/apache2_0_58/modules/mod_fcgid.so into server: ld.so.1:
httpd: fatal: relocation error: file
/usr/local/apache2_0_58/modules/mod_fcgid.so: symbol apr_shm_remove: referenced
symbol not found

This CGI stuff is throwing me a loop.

Mike

jmoseley@corp.xanadoo.com wrote:

I sent this example rt.conf yesterday in another topic (change paths if
necessary):

LoadModule fcgid_module modules/mod_fcgid.so

Use FastCGI to process .fcg .fcgi & .fpl scripts

Don’t do this if mod_fastcgi is present, as it will try to do the same

thing
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl

Sane place to put sockets and shared memory file

SocketPath run/mod_fcgid
SharememPath run/fcgid_shm

Main instance

Alias /rt/NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

Get rid of:

FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes
10

James Moseley

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC

Compiling stuff on Solaris and making it work is always difficult at best.

James Moseley

         mailing list                                                  
         <sunlist@yahoo.co                                             
         m>                                                         To 
                                   jmoseley@corp.xanadoo.com           
         07/18/2007 11:31                                           cc 
         AM                        rt-users@lists.bestpractical.com,   
                                   rt-users-bounces@lists.bestpractica 
                                   l.com                               
                                                               Subject 
                                   Re: [rt-users] Change from FastCGI  
                                   to fcgid                            

I’ve untar fcgid in /usr/local/apache2, follow the INSTALL.txt and it seems
to
be compiling. However, now when attempting to stop/start apache…

/etc/init.d/apache2 stop

Stopping Apache2 Server
Syntax error on line 242 of /usr/local/apache2_0_58/conf/httpd.conf:
Cannot load /usr/local/apache2_0_58/modules/mod_fcgid.so into server:
ld.so.1:
httpd: fatal: relocation error: file
/usr/local/apache2_0_58/modules/mod_fcgid.so: symbol apr_shm_remove:
referenced
symbol not found

This CGI stuff is throwing me a loop.

Mike

jmoseley@corp.xanadoo.com wrote:

I sent this example rt.conf yesterday in another topic (change paths if
necessary):

LoadModule fcgid_module modules/mod_fcgid.so

Use FastCGI to process .fcg .fcgi & .fpl scripts

Don’t do this if mod_fastcgi is present, as it will try to do the same

thing
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl

Sane place to put sockets and shared memory file

SocketPath run/mod_fcgid
SharememPath run/fcgid_shm

Main instance

Alias /rt/NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

Get rid of:

FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120
-processes
10

James Moseley

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC