[rt-users] configure fastcgi with RT on RHEL 64-bit

fosterjam at adelphia.net fosterjam at adelphia.net
Tue Aug 14 15:32:01 EDT 2007


I’m trying to configure RT with fastcgi on a linux host running RHEL 4.0 Update 2 on a x86_64 server. During the make for fastcgi I get the following messages


[root at ewf05 mod_fastcgi-2.4.2]# make

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc  -pthread  -O2 -g -pipe -m64  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DSSL_EXPERIMENTAL_ENGINE -I/usr/include/pcre  -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/openssl -DAP_FNAME=\"mod_fastcgi.c\" -prefer-pic -c mod_fastcgi.c && touch mod_fastcgi.slo

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc  -pthread  -O2 -g -pipe -m64  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DSSL_EXPERIMENTAL_ENGINE -I/usr/include/pcre  -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/openssl -DAP_FNAME=\"fcgi_pm.c\" -prefer-pic -c fcgi_pm.c && touch fcgi_pm.slo

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc  -pthread  -O2 -g -pipe -m64  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DSSL_EXPERIMENTAL_ENGINE -I/usr/include/pcre  -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/openssl -DAP_FNAME=\"fcgi_util.c\" -prefer-pic -c fcgi_util.c && touch fcgi_util.slo

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc  -pthread  -O2 -g -pipe -m64  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DSSL_EXPERIMENTAL_ENGINE -I/usr/include/pcre  -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/openssl -DAP_FNAME=\"fcgi_protocol.c\" -prefer-pic -c fcgi_protocol.c && touch fcgi_protocol.slo

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc  -pthread  -O2 -g -pipe -m64  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DSSL_EXPERIMENTAL_ENGINE -I/usr/include/pcre  -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/openssl -DAP_FNAME=\"fcgi_buf.c\" -prefer-pic -c fcgi_buf.c && touch fcgi_buf.slo

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc  -pthread  -O2 -g -pipe -m64  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DSSL_EXPERIMENTAL_ENGINE -I/usr/include/pcre  -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/openssl -DAP_FNAME=\"fcgi_config.c\" -prefer-pic -c fcgi_config.c && touch fcgi_config.slo

fcgi_config.c: In function `fcgi_config_new_auth_server':

fcgi_config.c:1193: warning: cast from pointer to integer of different size

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=link gcc -pthread  -O2 -g -pipe -m64  -L/usr/lib64      -o mod_fastcgi.la -rpath /usr/lib64/httpd/modules -module -avoid-version mod_fastcgi.lo fcgi_pm.lo fcgi_util.lo fcgi_protocol.lo fcgi_buf.lo fcgi_config.lo



And When I try to start up Apache with fastcgi I get the following errors in the error_log


Unable to load DBIx::SearchBuilder database handle for 'Oracle'.

Perhaps you've picked an invalid database type or spelled it incorrectly.

Can't load '/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230.

 at /usr/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle/Oracle.pm line 10

Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle/Oracle.pm line 10.

BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle/Oracle.pm line 10.

Compilation failed in require at (eval 204) line 1.

BEGIN failed--compilation aborted at (eval 204) line 1.

Compilation failed in require at /opt/rt3/lib/RT.pm line 216.

[Mon Aug 13 16:54:19 2007] [warn] FastCGI: server "/opt/rt3/bin/mason_handler.fcgi" (pid 9829) terminated by calling exit with status '2'

[Mon Aug 13 16:54:19 2007] [warn] FastCGI: server "/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds




The Apache config is as follows:

  NameVirtualHost <host_name>:80

  <VirtualHost <host_name>:80>

    ServerAdmin <admin_user>

    ServerName <host_name>

    DocumentRoot /opt/rt3/share/html/

    AddDefaultCharset UTF-8

    # Adding the following for RT (the ticket tracker)

    AddHandler fastcgi-script fcgi

    <Directory "/opt/rt3/share/html">

      Options FollowSymLinks ExecCGI

      AllowOverride None


    <Location />

      RedirectMatch permanent (.*)/$ $1/index.html


    # Pass through requests to for noauth

    Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images

    ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/


  FastCgiIpcDir /tmp

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


And the Fastcgi.conf file is as follows

LoadModule fastcgi_module modules/mod_fastcgi.so

FastCgiConfig –restart



This RT being a 32-bit apps, do I need to make fastcgi with 32-bit libs? If so is there a simple way to do it? How about the oracle libraries should my env variable LD_LIBRARY_PATH should point to $ORACLE_HOME/lib (this is 64-bit) or should it point to $ORACLE_HOME/lib32 ( 32 bit libs)?

The AddHandler "AddHandler fastcgi-script fcgi" in the virtual host section on apache config does it refer to ".fcgi" or just 'fcgi" because I noticed documentation for both.



More information about the rt-users mailing list