Thanks. I'll have to give this a try later tonight when I can have some downtime.
---------- John Alberts Cloud Optimization Engineer Ex Libris (USA) Inc. 1350 E. Touhy Ave. Suite 200 East Des Plaines, IL 60018 Phone: 1-219-979-6560 Follow Ex Libris on Twitter: @exlibrisgroup<http://twitter.com/ExLibrisGroup> From: James Moseley <[email protected]<mailto:[email protected]>> Date: Fri, 1 Jul 2011 11:50:39 -0500 To: John Alberts <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [rt-users] rt4, centos, and fastcgi mod_fastcgi and mod_fcgid require different configurations. We haven't used mod_fastcgi in quite some time, but here is our config for mod_fcgid: 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 </IfModule> # 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/ **** Since you have your RT instance inside a virtual host entry, your FastCgiServer directive should also be inside that virtual host entry. On Fri, Jul 1, 2011 at 10:52 AM, John Alberts <[email protected]<mailto:[email protected]>> wrote: 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<http://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<http://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] -- James Moseley
-------- 2011 Training: http://bestpractical.com/services/training.html
