Edgewall Software

Changes between Version 31 and Version 32 of TracFastCgi


Ignore:
Timestamp:
Aug 30, 2006, 8:21:31 PM (18 years ago)
Author:
xing@…
Comment:

add litespeed fcgi install guide…

Legend:

Unmodified
Added
Removed
Modified
  • TracFastCgi

    v31 v32  
    6161`.fcgi` scripts with different `ScriptAliases`, copying and appropriately
    6262renaming `trac.fcgi` and adding the above code to create each such script.
     63
     64== Simple LiteSpeed Configuration ==
     65
     66The FastCGI front-end was developed primarily for use with alternative webservers, such as [http://www.litespeedtech.com/ LiteSpeed].
     67
     68LiteSpeed web server is an event-driven asynchronous Apache replacement designed from the ground-up to be secure, scalable, and operate with minimal resources. LiteSpeed can operate directly from an Apache config file and is targeted for business-critical environments.
     69
     70Setup
     71
     721) Please make sure you have first have a working install of a Trac project. Test install with “tracd” first.
     73
     742) Create a Virtual Host for this setup. From now on we will refer to this vhost as TracVhost. For this tutorial we will be assuming that your trac project will be accessible via:
     75
     76{{{
     77http://yourdomain.com/trac/
     78}}}
     79
     803) Go “TracVhost → External Apps” tab and create a new “External Application”.
     81
     82{{{
     83Name: MyTracFCGI       
     84Address: uds://tmp/lshttpd/mytracfcgi.sock
     85Max Connections: 10
     86Environment: TRAC_ENV=/fullpathto/mytracproject/ <--- path to root folder of trac project
     87Initial Request Timeout (secs): 30
     88Retry Timeout (secs): 0
     89Persistent Connection   Yes
     90Connection Keepalive Timeout: 30
     91Response Bufferring: No
     92Auto Start: Yes
     93Command: /usr/share/trac/cgi-bin/trac.fcgi  <--- path to trac.fcgi
     94Back Log: 50
     95Instances: 10
     96}}}
     97
     984) Optional. If you need to use htpasswd based authentication. Go to “TracVhost → Security” tab and create a new security “Realm”.
     99
     100{{{
     101DB Type: Password File
     102Realm Name: MyTracUserDB               <--- any name you wish and referenced later
     103User DB Location: /fullpathto/htpasswd <--- path to your htpasswd file
     104}}}
     105
     106If you don’t have a htpasswd file or don’t know how to create the entries within one, go to http://sherylcanter.com/encrypt.php, to generate the user:password combos.
     107
     1085) Go to “PythonVhost → Contexts” and create a new “FCGI Context”.
     109
     110{{{
     111URI: /trac/                              <--- URI path to bind to python fcgi app we created   
     112Fast CGI App: [VHost Level] MyTractFCGI  <--- select the trac fcgi extapp we just created
     113Realm: TracUserDB                        <--- only if (4) is set. select ream created in (4)
     114}}}
     115
     1166) Modify /fullpathto/mytracproject/conf/trac.ini
     117
     118{{{
     119#find/set base_rul, url, and link variables
     120base_url = http://yourdomain.com/trac/ <--- base url to generate correct links to
     121url = http://yourdomain.com/trac/      <--- link of project
     122link = http://yourdomain.com/trac/     <--- link of graphic logo
     123}}}
     124
     1257) Restart LiteSpeed, “lswsctrl restart”, and access your new Trac project at:
     126
     127{{{
     128http://yourdomain.com/trac/
     129}}}
     130
    63131
    64132== Simple Lighttpd Configuration ==