<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>Thanks.  I'll have to give this a try later tonight when I can have some downtime.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="color: rgb(31, 73, 125); ">----------<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="color: rgb(31, 73, 125); ">John Alberts<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="color: rgb(31, 73, 125); ">Cloud Optimization Engineer<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="color: rgb(31, 73, 125); ">Ex Libris (USA) Inc.<br>
1350 E. Touhy Ave.  Suite 200 East<br>
Des Plaines, IL 60018<br>
Phone: 1-219-979-6560<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span style="font-size: 10pt; color: rgb(31, 73, 125); "><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<b><span style="font-size: 10pt; color: rgb(0, 112, 192); font-family: Arial, sans-serif; ">Follow Ex Libris on Twitter: <a href="http://twitter.com/ExLibrisGroup" style="color: blue; text-decoration: underline; ">@exlibrisgroup</a></span></b></p>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>James Moseley <<a href="mailto:jmoseley@corp.xanadoo.com">jmoseley@corp.xanadoo.com</a>><br>
<span style="font-weight:bold">Date: </span>Fri, 1 Jul 2011 11:50:39 -0500<br>
<span style="font-weight:bold">To: </span>John Alberts <<a href="mailto:john.alberts@exlibrisgroup.com">john.alberts@exlibrisgroup.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>" <<a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [rt-users] rt4, centos, and fastcgi<br>
</div>
<div><br>
</div>
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:<br>
<br>
LoadModule fcgid_module modules/mod_fcgid.so<br>
<br>
# Use FastCGI to process .fcg .fcgi & .fpl scripts<br>
# Don't do this if mod_fastcgi is present, as it will try to do the same thing<br>
<IfModule !mod_fastcgi.c><br>
  AddHandler fcgid-script fcg fcgi fpl<br>
</IfModule><br>
<br>
# Sane place to put sockets and shared memory file<br>
SocketPath run/mod_fcgid<br>
SharememPath run/fcgid_shm<br>
<br>
# Main instance<br>
Alias /rt/NoAuth/images/ /opt/rt3/share/html/NoAuth/images/<br>
ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/<br>
<br>
****<br>
<br>
Since you have your RT instance inside a virtual host entry, your <span style="font-family:Consolas">
<font size="3"><span style="font-size:12px">FastCgiServer directive should also be inside that virtual host entry.</span></font></span><br>
<br>
<div class="gmail_quote">On Fri, Jul 1, 2011 at 10:52 AM, John Alberts <span dir="ltr">
<<a href="mailto:John.Alberts@exlibrisgroup.com">John.Alberts@exlibrisgroup.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word;color:rgb(0, 0, 0);font-size:14px;font-family:Calibri, sans-serif">
<div>
<div>
<div>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
<a href="http://webmux.pl" target="_blank">webmux.pl</a> in my apache configuration.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Here is my mod_fastcgi apache config</div>
<div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">LoadModule fastcgi_module modules/mod_fastcgi.so</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"><br>
</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">#FastCgiIpcDir /tmp</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"><br>
</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"><VirtualHost
<a href="http://mysite.com" target="_blank">mysite.com</a>></span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  ### Optional apache logs for RT</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  # Ensure that your log rotation scripts know about these files</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  # ErrorLog /opt/rt4/var/log/apache2.error</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  # TransferLog /opt/rt4/var/log/apache2.access</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  # LogLevel debug</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"><br>
</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  AddDefaultCharset UTF-8</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"><br>
</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"><br>
</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  DocumentRoot "/opt/rt4/share/html"</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  <Location /></span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">     Order allow,deny</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">     Allow from all</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"><br>
</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">     Options +ExecCGI</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">     AddHandler fastcgi-script fcgi</span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px">  </Location></span></font></span></div>
<div><span style="font-family:Consolas"><font size="3"><span style="font-size:12px"></VirtualHost></span></font></span></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>When I start apache, I get the following errors in /var/log/https/error_log</div>
<div>
<div>[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</div>
<div>[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"</div>
<div>[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]</div>
</div>
<span style="color:rgb(31, 73, 125)"><br>
</span>
<div>
<div>
<p class="MsoNormal" style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:11pt;font-family:Calibri, sans-serif">
<span style="font-size:10pt;color:rgb(31, 73, 125)"></span><br>
</p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
-- <br>
James Moseley<br>
<br>
</span>
</body>
</html>