Mercurial > p > roundup > code
comparison doc/installation.txt @ 4324:c70762f2be4e
flup setup docs from Christian Glass
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 29 Jan 2010 04:31:30 +0000 |
| parents | 15834821b8c7 |
| children | 83decec7050d |
comparison
equal
deleted
inserted
replaced
| 4323:a3f88aa04735 | 4324:c70762f2be4e |
|---|---|
| 324 ------------------------- | 324 ------------------------- |
| 325 | 325 |
| 326 There are five web interfaces to choose from: | 326 There are five web interfaces to choose from: |
| 327 | 327 |
| 328 1. `web server cgi-bin`_ | 328 1. `web server cgi-bin`_ |
| 329 2. `stand-alone web server`_ | 329 2. `cgi-bin for limited-access hosting`_ |
| 330 3. `Zope product - ZRoundup`_ | 330 3. `stand-alone web server`_ |
| 331 4. `Apache HTTP Server with mod_python`_ | 331 4. `Zope product - ZRoundup`_ |
| 332 5. `WSGI handler`_ | 332 5. `Apache HTTP Server with mod_python`_ |
| 333 6. `WSGI handler`_ | |
| 333 | 334 |
| 334 You may need to give the web server user permission to access the tracker home | 335 You may need to give the web server user permission to access the tracker home |
| 335 - see the `UNIX environment steps`_ for information. You may also need to | 336 - see the `UNIX environment steps`_ for information. You may also need to |
| 336 configure your system in some way - see `platform-specific notes`_. | 337 configure your system in some way - see `platform-specific notes`_. |
| 337 | 338 |
| 383 couple lines to your Apache configuration:: | 384 couple lines to your Apache configuration:: |
| 384 | 385 |
| 385 <Location /path/to/roundup> | 386 <Location /path/to/roundup> |
| 386 SetHandler cgi-script | 387 SetHandler cgi-script |
| 387 </Location> | 388 </Location> |
| 389 | |
| 390 | |
| 391 CGI-bin for Limited-Access Hosting | |
| 392 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 393 | |
| 394 If you are running in a shared-hosting environment or otherwise don't have | |
| 395 permissiong to edit the system web server's configuration, but can create a | |
| 396 ``.htaccess`` file then you may be able to use this approach. | |
| 397 | |
| 398 1. Install flup_ | |
| 399 2. Create a script ``roundup_stub`` in your server's ``cgi-bin`` directory | |
| 400 containing:: | |
| 401 | |
| 402 #!/usr/bin/env python | |
| 403 | |
| 404 # if necessary modify the Python path to include the place you | |
| 405 # installed Roundup | |
| 406 #import sys | |
| 407 #sys.path.append('...') | |
| 408 | |
| 409 # cgitb is needed for debugging in browser only | |
| 410 #import cgitb | |
| 411 #cgitb.enable() | |
| 412 | |
| 413 # obtain the WSGI request dispatcher | |
| 414 from roundup.cgi.wsgi_handler import RequestDispatcher | |
| 415 tracker_home = '/path/to/tracker/home' | |
| 416 app = RequestDispatcher(tracker_home) | |
| 417 | |
| 418 from flup.server.cgi import WSGIServer | |
| 419 WSGIServer(app).run() | |
| 420 | |
| 421 3. Modify or created the ``.htaccess`` file in the desired (sub-)domain | |
| 422 directory to contain:: | |
| 423 | |
| 424 RewriteEngine On | |
| 425 RewriteBase / | |
| 426 RewriteRule ^(.*)$ /cgi-bin/roundup_stub/$1 [L] | |
| 427 | |
| 428 Now loading the (sub-)domain in a browser should load the tracker web | |
| 429 interface. If you get a "500" error then enable the "cgitb" lines in the | |
| 430 stub to get some debugging information. | |
| 388 | 431 |
| 389 | 432 |
| 390 Stand-alone Web Server | 433 Stand-alone Web Server |
| 391 ~~~~~~~~~~~~~~~~~~~~~~ | 434 ~~~~~~~~~~~~~~~~~~~~~~ |
| 392 | 435 |
| 1032 | 1075 |
| 1033 | 1076 |
| 1034 .. _External hyperlink targets: | 1077 .. _External hyperlink targets: |
| 1035 | 1078 |
| 1036 .. _apache: http://httpd.apache.org/ | 1079 .. _apache: http://httpd.apache.org/ |
| 1080 .. _flup: http://pypi.python.org/pypi/flup | |
| 1037 .. _mod_python: http://www.modpython.org/ | 1081 .. _mod_python: http://www.modpython.org/ |
| 1038 .. _MySQLdb: http://sourceforge.net/projects/mysql-python | 1082 .. _MySQLdb: http://sourceforge.net/projects/mysql-python |
| 1039 .. _Psycopg: http://initd.org/software/initd/psycopg | 1083 .. _Psycopg: http://initd.org/software/initd/psycopg |
| 1040 .. _pysqlite: http://pysqlite.org/ | 1084 .. _pysqlite: http://pysqlite.org/ |
| 1041 .. _`adding MySQL users`: | 1085 .. _`adding MySQL users`: |
