<div class="gmail_quote">On Sat, Jun 9, 2012 at 12:57 AM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Jun 08, 2012 at 10:07:16PM +0200, Natxo Asenjo wrote:<br>
> On Fri, Jun 8, 2012 at 5:34 PM, Thomas Sibley <<a href="mailto:trs@bestpractical.com">trs@bestpractical.com</a>> wrote:<br>
><br>
</div><div class="im">> My rt.conf apache virtual host config:<br>
><br>
> FastCgiServer /opt/rt4/sbin/rt-server -processes 5 -idle-timeout 300<br>
><br>
> <VirtualHost *:80><br>
>     ServerName rt.domain.tld<br>
>     ### Optional apache logs for RT<br>
>     # Ensure that your log rotation scripts know about these files<br>
>     ErrorLog /opt/rt4/var/log/apache2.error<br>
>     TransferLog /opt/rt4/var/log/apache2.access<br>
>     LogLevel debug<br>
><br>
>     AddDefaultCharset UTF-8<br>
><br>
>     Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/<br>
>     ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/<br>
><br>
>     DocumentRoot "/opt/rt4/share/html"<br>
>     <Location /><br>
>         Order allow,deny<br>
>         Allow from all<br>
><br>
>         Options +ExecCGI<br>
>         AddHandler fastcgi-script fcgi<br>
>     </Location><br>
><br>
> </VirtualHost><br>
<br>
</div>Your FastCgiServer line looks different from the one in<br>
docs/web_deployment.pod.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br>you are right, I had bee trying stuff and forgotten to set it back:<br><br>FastCgiIpcDir /var/www/html/fastcgi-rt/<br>FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300<br>
<br>SetHandler fastcgi-script<br><br><VirtualHost *:80><br>    ServerName rt.ipa.asenjo.nx<br>    ### Optional apache logs for RT<br>    # Ensure that your log rotation scripts know about these files<br>    ErrorLog /opt/rt4/var/log/apache2.error<br>
    TransferLog /opt/rt4/var/log/apache2.access<br>    LogLevel debug<br><br>    AddDefaultCharset UTF-8<br><br>    Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/<br>    ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/<br>
<br>    DocumentRoot "/opt/rt4/share/html"<br>    <Location /><br>        Order allow,deny<br>        Allow from all<br><br>        Options +ExecCGI<br>        AddHandler fastcgi-script fcgi<br>    </Location><br>
<br></VirtualHost> <br><br>If I do not set the FastCgiIpcDir directive it does not work at all.<br><br>Without FastCgiIpcDir:<br><br>/opt/rt4/var/log/apache2.error:<br><br>[Sat Jun 09 08:12:34 2012] [error] [client 192.168.0.160] (13)Permission denied: FastCGI: failed to connect to server "/opt/rt4/sbin/rt-server.fcgi": connect() failed<br>
[Sat Jun 09 08:12:34 2012] [error] [client 192.168.0.160] FastCGI: incomplete headers (0 bytes) received from server "/opt/rt4/sbin/rt-server.fcgi"<br><br>/var/log/httpd/error.log<br>[Sat Jun 09 08:13:29 2012] [crit] (13)Permission denied: FastCGI: can't create server "/opt/rt4/sbin/rt-server.fcgi": bind() failed [/etc/httpd/logs/fastcgi/f758b05f8779532382e3166ad1890013]<br>
[Sat Jun 09 08:13:30 2012] [crit] (13)Permission denied: FastCGI: can't create server "/opt/rt4/sbin/rt-server.fcgi": bind() failed [/etc/httpd/logs/fastcgi/f758b05f8779532382e3166ad1890013]<br><br>With FastCgiIpcDir *and* the dir with permissions 777, it works blocking some images:<br>
<br>[Sat Jun 09 08:15:28 2012] [error] [client 192.168.0.160] FastCGI: invalid (dynamic) server "/opt/rt4/share/html/NoAuth/images/bpslogo.png": access for server (uid -1, gid -1) not allowed: execute not allowed, referer: <a href="http://rt.ipa.asenjo.nx/">http://rt.ipa.asenjo.nx/</a><br>
[Sat Jun 09 08:15:28 2012] [error] [client 192.168.0.160] FastCGI: invalid (dynamic) server "/opt/rt4/share/html/NoAuth/images/bpslogo.png": access for server (uid -1, gid -1) not allowed: execute not allowed, referer: <a href="http://rt.ipa.asenjo.nx/">http://rt.ipa.asenjo.nx/</a><br>
<br>If the FastCgiIpcDir has perms 770 for apache:apache , it does not work.<br><br>Is this normal behaviour?<br><br>Thanks for your help.<br>-- <br>natxo<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="HOEnZb"><font color="#888888">
-kevin<br>
</font></span></blockquote></div><br>