installing rt40 from ports

2012-08-03 Thread Roby Sadeli
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 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
amd64
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: installing rt40 from ports

2012-08-03 Thread Matthew Seaman
On 03/08/2012 11:29, Roby Sadeli wrote:
 I am planning to deploy rt40 (sqlite backend) with nginx (fastcgi).
 (nginx-devel and rt40 from /usr/ports)

Sqlite is really only suitable for development usage: RT expects a more
fully featured database that supports concurrent usage by several
instances simultaneously.  This may well be the problem you're seeing
when trying to fire up spawn-fcgi, if that is trying to run several fcgi
threads.

Personally I prefer and recommend postgresql as the backend to RT.

 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.

Does it generate a core file?

Is there anything relevant in the Log?  If necessary, try turning up the
log level in ${LOCALBASE}/etc/rt40/RT_SiteConfig.pm --

Set($LogToSyslog, debug);

and possibly enable the 'all.log' by following the instructions in
/etc/syslog.conf

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature