[rt-users] rt4, centos, and fastcgi

John Alberts John.Alberts at exlibrisgroup.com
Fri Jul 1 11:52:38 EDT 2011


Hi.  I just tried to upgrade to rt4 and I'm having the hardest time getting the web server to work.  For rt3, I was using webmux.pl in my apache configuration.

I'm on CentOS 5.5 and using Apache 2.2.3.  I installed mod_fastcgi 2.4.6 from source.  I've followed the example configurations in docs/web_deployment.pod for mod_fastcgi and mod_fcgid and both give me errors.  I've heard good things about mod_fastcgi, so I would prefer to get that going.

Here is my mod_fastcgi apache config
LoadModule fastcgi_module modules/mod_fastcgi.so

#FastCgiIpcDir /tmp
FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300

<VirtualHost mysite.com>
  ### Optional apache logs for RT
  # Ensure that your log rotation scripts know about these files
  # ErrorLog /opt/rt4/var/log/apache2.error
  # TransferLog /opt/rt4/var/log/apache2.access
  # LogLevel debug

  AddDefaultCharset UTF-8

  Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
  ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/

  DocumentRoot "/opt/rt4/share/html"
  <Location />
     Order allow,deny
     Allow from all

     Options +ExecCGI
     AddHandler fastcgi-script fcgi
  </Location>
</VirtualHost>


When I start apache, I get the following errors in /var/log/https/error_log
[Fri Jul 01 10:30:32 2011] [error] [client x.x.x.x] (13)Permission denied: FastCGI: failed to connect to server "/opt/rt4/sbin/rt-server.fcgi": connect() failed
[Fri Jul 01 10:30:32 2011] [error] [client x.x.x.x] FastCGI: incomplete headers (0 bytes) received from server "/opt/rt4/sbin/rt-server.fcgi"
[Fri Jul 01 10:30:33 2011] [crit] (13)Permission denied: FastCGI: can't create server "/opt/rt4/sbin/rt-server.fcgi": bind() failed [/etc/httpd/logs/fastcgi/f758b05f8779532382e3166ad1890013]


Here's permissions for all files in that directory.  I've temporarily changed permissions from 750 to 755, just to see if I could get it working, but that didn’t help.
-=>>ls -lah /opt/rt4/sbin/
total 216K
drwxr-xr-x 2 root root 4.0K Jul  1 08:55 .
drwxr-xr-x 9 root rt   4.0K Jul  1 08:55 ..
-rwxr-xr-x 1 root rt   3.6K Jul  1 08:55 rt-attributes-viewer
-rwxr-xr-x 1 root rt   5.4K Jul  1 08:55 rt-clean-sessions
-rwxr-xr-x 1 root rt   7.7K Jul  1 08:55 rt-dump-metadata
-rwxr-xr-x 1 root rt   4.9K Jul  1 08:55 rt-email-dashboards
-rwxr-xr-x 1 root rt    12K Jul  1 08:55 rt-email-digest
-rwxr-xr-x 1 root rt    13K Jul  1 08:55 rt-email-group-admin
-rwxr-xr-x 1 root rt    12K Jul  1 08:55 rt-fulltext-indexer
-rwxr-xr-x 1 root rt   7.9K Jul  1 08:55 rt-server
-rwxr-xr-x 1 root rt   7.9K Jul  1 08:55 rt-server.fcgi
-rwxr-xr-x 1 root rt   3.6K Jul  1 08:55 rt-session-viewer
-rwxr-xr-x 1 root rt    18K Jul  1 08:55 rt-setup-database
-rwxr-xr-x 1 root rt    22K Jul  1 08:55 rt-setup-fulltext-index
-rwxr-xr-x 1 root rt   8.3K Jul  1 08:55 rt-shredder
-rwxr-xr-x 1 root rt    16K Jul  1 08:55 rt-test-dependencies
-rwxr-xr-x 1 root rt    38K Jul  1 08:55 rt-validator
-rwxr-xr-x 1 root rt   7.9K Jul  1 08:55 standalone_httpd
--- .:root at aspdev:. (/opt/rt3)
-=>>groups apache
apache : apache git rt gitweb



Any ideas?

Thanks



----------
John Alberts
Cloud Optimization Engineer
Ex Libris (USA) Inc.
1350 E. Touhy Ave.  Suite 200 East
Des Plaines, IL 60018


Follow Ex Libris on Twitter: @exlibrisgroup<http://twitter.com/ExLibrisGroup>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110701/3ed43849/attachment.htm>


More information about the rt-users mailing list