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

Natxo Asenjo natxo.asenjo at gmail.com
Fri Jun 8 16:07:16 EDT 2012


On Fri, Jun 8, 2012 at 5:34 PM, Thomas Sibley <trs at bestpractical.com> wrote:

>
> On 06/08/2012 10:20 AM, Natxo Asenjo wrote:
> > If I try mod_fastcgi with the configuration on the web_deployment.pod I
> > get errors (selinux is disabled):
> >
> > (13)Permission denied: FastCGI: failed to connect to server
> > "/opt/rt4/sbin/rt-server.fcgi":
>
> So, did you try to fix the permissions?  I suspect it's as simple as the
> user apache is running as can't read/execute rt-server.fcgi and the
> whole directory tree above it.  You may need to change the group on files.
>
> To do that easily, re-run ./configure from the source tarball with the
> appropriate --with-web-user and/or --with-web-group options and then run
> make install again.  You can find your original configure options at the
> top of /opt/rt4/etc/RT_Config.pm.
>

these are the permissions in /opt/rt4/sbin:

 ls -l /opt/rt4/sbin/
total 216
-rwxr-xr-x. 1 root apache  3690 Jun  8 21:11 rt-attributes-viewer
-rwxr-xr-x. 1 root apache  5511 Jun  8 21:11 rt-clean-sessions
-rwxr-xr-x. 1 root apache  7816 Jun  8 21:11 rt-dump-metadata
-rwxr-xr-x. 1 root apache  4966 Jun  8 21:11 rt-email-dashboards
-rwxr-xr-x. 1 root apache 11886 Jun  8 21:11 rt-email-digest
-rwxr-xr-x. 1 root apache 13054 Jun  8 21:11 rt-email-group-admin
-rwxr-xr-x. 1 root apache 11797 Jun  8 21:11 rt-fulltext-indexer
-rwxr-xr-x. 1 root apache  4664 Jun  8 21:11 rt-preferences-viewer
-rwxr-xr-x. 1 root apache  8032 Jun  8 21:11 rt-server
-rwxr-xr-x. 1 root apache  8032 Jun  8 21:11 rt-server.fcgi
-rwxr-xr-x. 1 root apache  3684 Jun  8 21:11 rt-session-viewer
-rwxr-xr-x. 1 root apache 17612 Jun  8 21:11 rt-setup-database
-rwxr-xr-x. 1 root apache 20761 Jun  8 21:11 rt-setup-fulltext-index
-rwxr-xr-x. 1 root apache  8439 Jun  8 21:11 rt-shredder
-rwxr-xr-x. 1 root apache 15790 Jun  8 21:11 rt-test-dependencies
-rwxr-xr-x. 1 root apache 38439 Jun  8 21:11 rt-validator
-rwxr-xr-x. 1 root apache  8032 Jun  8 21:11 standalone_httpd

This is my ./configure incantation:

#   $ ./configure --with-db-type=Pg --with-db-host=host.domain.tld
--with-db-rt-pass=password --with-web-user=apache --with-web-group=apache
--with-apachectl=/usr/sbin/apachectl --with-web-handler=fastcgi

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>

In the apache error log I get plenty of these:

Fri Jun 08 22:01:02 2012] [crit] (13)Permission denied: FastCGI: can't
create server "/opt/rt4/sbin/rt-server": bind() failed
[/etc/httpd/logs/fastcgi/5ca4b3adecea1bd2fa8ffd8f7584ca93]
[Fri Jun 08 22:01:03 2012] [crit] (13)Permission denied: FastCGI: can't
create server "/opt/rt4/sbin/rt-server": bind() failed
[/etc/httpd/logs/fastcgi/5ca4b3adecea1bd2fa8ffd8f7584ca93]

in the /opt/rt4/var/log/apache2.error

Fri Jun 08 21:58:29 2012] [alert] [client 192.168.0.21] (13)Permission
denied: FastCGI: failed to connect to (dynamic) server
"/opt/rt4/sbin/rt-server.fcgi": something is seriously wrong, any chance
the socket/named_pipe directory was removed?, see the FastCgiIpcDir
directive
[Fri Jun 08 21:58:29 2012] [error] [client 192.168.0.21] FastCGI:
incomplete headers (0 bytes) received from server
"/opt/rt4/sbin/rt-server.fcgi"

I am afraid my fastcgi fu is close to zero. Learning as I go. If any one
can shed light on this, that would be great.

TIA.

-- 
groet,
natxo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120608/1df30057/attachment.htm>


More information about the rt-users mailing list