installing rt40 from ports

Roby Sadeli liweitian at gmail.com
Fri Aug 3 10:29:28 UTC 2012


Hi.

I am planning to deploy rt40 (sqlite backend) with nginx (fastcgi).
(nginx-devel and rt40 from /usr/ports)

After installing rt40, I setup the initial database by executing
/usr/local/sbin/rt-setup-database --action init

I have no problem using the standalone server:
/usr/local/bin/standalone_httpd and rt40 works as expected.

I have tried setting up rt40 using nginx with no success.
I try running fcgi from command line: /usr/local/bin/spawn-fcgi -n -u
www -g rt -p 9000 -- /usr/local/sbin/rt-server.fcgi
but always starts for a moment, then crashes.

My nginx.conf is as follows:
        location /rt/ {
            root /usr/local/share/rt40/html;
            fastcgi_pass 127.0.0.1:9000;

            fastcgi_param  QUERY_STRING       $query_string;
            fastcgi_param  REQUEST_METHOD     $request_method;
            fastcgi_param  CONTENT_TYPE       $content_type;
            fastcgi_param  CONTENT_LENGTH     $content_length;
            fastcgi_param  PATH_INFO          $fastcgi_script_name;
        } # location /rt/

        location /rt/NoAuth/ {
            alias   /usr/local/share/rt40/html/NoAuth/;
        } # location /rt/NoAuth/


Please help me.
Thanks.

Fyi, my system is:
FreeBSD  9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
amd64


More information about the freebsd-questions mailing list