[rt-users] perlbrew/cpanm installation on centos 6

Natxo Asenjo natxo.asenjo at gmail.com
Sat Jun 9 02:17:41 EDT 2012


On Sat, Jun 9, 2012 at 12:57 AM, Kevin Falcone <falcone at bestpractical.com>wrote:

> On Fri, Jun 08, 2012 at 10:07:16PM +0200, Natxo Asenjo wrote:
> > On Fri, Jun 8, 2012 at 5:34 PM, Thomas Sibley <trs at bestpractical.com>
> wrote:
> >
> > My rt.conf apache virtual host config:
> >
> > FastCgiServer /opt/rt4/sbin/rt-server -processes 5 -idle-timeout 300
> >
> > <VirtualHost *:80>
> >     ServerName rt.domain.tld
> >     ### 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>
>
> Your FastCgiServer line looks different from the one in
> docs/web_deployment.pod.
>
>
you are right, I had bee trying stuff and forgotten to set it back:

FastCgiIpcDir /var/www/html/fastcgi-rt/
FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300

SetHandler fastcgi-script

<VirtualHost *:80>
    ServerName rt.ipa.asenjo.nx
    ### 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>

If I do not set the FastCgiIpcDir directive it does not work at all.

Without FastCgiIpcDir:

/opt/rt4/var/log/apache2.error:

[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
[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"

/var/log/httpd/error.log
[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]
[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]

With FastCgiIpcDir *and* the dir with permissions 777, it works blocking
some images:

[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:
http://rt.ipa.asenjo.nx/
[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:
http://rt.ipa.asenjo.nx/

If the FastCgiIpcDir has perms 770 for apache:apache , it does not work.

Is this normal behaviour?

Thanks for your help.
-- 
natxo

-kevin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120609/8bf7d599/attachment.htm>


More information about the rt-users mailing list