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 < john.albe...@exlibrisgroup.com> 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 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] > > > -- James Moseley
-------- 2011 Training: http://bestpractical.com/services/training.html