Edgewall Software

Changes between Version 146 and Version 147 of TracOnWindows


Ignore:
Timestamp:
Feb 12, 2006, 11:22:40 PM (18 years ago)
Author:
jornh
Comment:

A long overdue update of the instructions to 0.9.x - including some cleanup with 0.8 related issues disappearing into wiki history

Legend:

Unmodified
Added
Removed
Modified
  • TracOnWindows

    v146 v147  
    77 * [wiki:TracOnWindowsStandalone Trac running without Apache or IIS] using [source:trunk/README.tracd#latest tracd] and svnserve is the simplest setup. It is stripped for all optional dependencies. It might be taken as a first step to get things running. You should then be able to pick the missing steps from the Apache CGI based setup found on this page as a second step.
    88
    9  * The 'traditional' [wiki:TracOnWindows#InstallationofSubversionandTrac0.8.4servedviaApacheCGI Apache CGI based setup] is described just below.
     9 * The 'traditional' [wiki:TracOnWindows#InstallationofSubversionandTracservedviaApacheCGI Apache CGI based setup] is described just below.
    1010
    1111 * Also, after installing the CGI-based setup, you may want to [wiki:TracModPython switch to using mod_python] which speeds up Trac's response times considerably.
     
    1313If you are trying to upgrade to Trac 0.9, [wiki:TracOnWindows#UpgradingfromTrac0.84to0.9beta1onWindows see the instructions] at the end of this file.
    1414
    15 == Installation of Subversion and Trac 0.8.4 served via Apache CGI ==
    16 
    17 Versions used in this example (June 2005-06-29):
    18  * Trac 0.8.4
     15== Installation of Subversion and Trac served via Apache CGI ==
     16
     17Versions used in this example (Feb 2006):
     18 * Trac 0.9.x
    1919 * [http://www.clearsilver.net Clearsilver 0.9.14 binaries]
    2020 * [http://www.python.org Python 2.3.5]
     
    2222 * [http://subversion.tigris.org Subversion 1.2.0]
    2323 * [http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91&filter=_py.zip  Python 2.3 Bindings for subversion 1.2.0]
    24  * [http://www.egenix.com/files/python/eGenix-mx-Extensions.html eGenix.com mx Extensions for Python]
    25  * [http://sourceforge.net/project/showfiles.php?group_id=38414 docutils 0.3.9]
    26  * [http://www.sqlite.org SQLite 3.2.2]
     24 * [http://www.egenix.com/files/python/eGenix-mx-Extensions.html eGenix.com mx Extensions for Python] ''(only required if using PostgreSQL)''
     25 * [http://sourceforge.net/project/showfiles.php?group_id=38414 docutils 0.3.9] (Optional)
     26 * [http://www.sqlite.org SQLite 3.2.2] (optional)
    2727 * [http://initd.org/pub/software/pysqlite/releases/1.1/1.1.6/pysqlite-1.1.6.win32-py2.3.exe PySQLite 1.1.6-py2.3]
    28  * [http://gnuwin32.sourceforge.net/packages/diffutils.htm Diffutils 2.8.7-1] (Optional)
    2928
    3029'''Please update this Wiki page if you find it is different from your experience.'''
     
    5857Note: Be sure to have the MSVCP60.DLL in your PATH, otherwise Apache will refuse to start with the SVN module.
    5958
    60 5. Install [http://docutils.sourceforge.net/ docutils ]
    61 {{{
    62   expand and run from the expanded docutils-xxx directory
    63   > C:\python23\python setup.py install
    64 }}}
    65 
    6659=== Create Repository ===
    67 6. Create repository directory
     605. Create repository directory
    6861{{{
    6962C:\> md c:\svn
    7063}}}
    7164
    72 7. Create repository
    73 {{{
    74 C:\> svnadmin create --fs-type=fsfs c:\svn\repo1
    75 }}}
    76 
    77 
    78 ''FSFS should be the preferred Subversion Repository filesystem on Windows. The Python bindings are much more reliable in that case -- ChristianBoos''
    79 
    80 8. Create skeleton repository structure in c:\temp\project
     656. Create repository
     66{{{
     67C:\> svnadmin create c:\svn\repo1
     68}}}
     69
     707. Create skeleton repository structure in c:\temp\project
    8171  Example:
    8272{{{
     
    9383}}}
    9484
    95 9. Build repository tree
     858. Build repository tree
    9686{{{
    9787C:\> svn import c:\temp\project file:///c:/svn/repo1 -m "Initial Load"
    9888}}}
    9989
    100 10. Create local sandbox
     909. Create local sandbox
    10191{{{
    10292C:\> svn checkout file:///c:/svn/repo1 c:\project
     
    10494
    10595=== Configure Apache ===
    106 11. Copy files
    107 {{{
    108 C:\> copy c:\progra~1\subver~1\httpd\*.* c:\progra~1\apache~1\apache2\modules
    109 }}}
    110 In my Subversion installation (1.2.1-r15230) the so files are located
     9610. Copy Subversion module files for Apache
    11197{{{
    11298C:\> copy c:\Progra~1\Subver~1\bin\*.so c:\progra~1\apache~1\apache2\modules
     
    117103}}}
    118104
    119 12. Create password file (w/user 'admin')
     10511. Create password file (w/user 'admin')
    120106
    121107{{{
     
    123109}}}
    124110
    125 13. Configure Apache (edit httpd.conf)
    126   13.1. [http://www.webdevelopersjournal.com/software/apache_more_config.html Restrict access/lockdown ] as appropriate
    127 
    128   13.2. Add Modules to httpd.conf
    129 
    130     13.1.1. Uncomment:
     11112. Configure Apache (edit httpd.conf)
     112  12.1. [http://www.webdevelopersjournal.com/software/apache_more_config.html Restrict access/lockdown ] as appropriate
     113
     114  12.2. Add Modules to httpd.conf
     115
     116    12.1.1. Uncomment:
    131117{{{
    132118LoadModule dav_module modules/mod_dav.so
    133119LoadModule dav_fs_module modules/mod_dav_fs.so
    134120}}}
    135     13.1.2. Add (after):
     121    12.1.2. Add (after):
    136122{{{
    137123# Subversion
     
    140126}}}
    141127
    142     13.1.3. Install Apache as Service (IF NOT WORKING when installed to C:)
     128    12.1.3. Install Apache as Service (IF NOT WORKING when installed to C:)
    143129{{{
    144130C:\Progra~1\Apache~1\Apache2\bin\Apache -k install -n "Apache2"
    145131}}}
    146132
    147   13.3. Add location root for multiple repositories
     133  12.3. Add location root for multiple repositories
    148134{{{
    149135# Subversion
     
    160146}}}
    161147
    162   13.4. Add cgi handler, Uncomment:
     148  12.4. Add cgi handler, Uncomment:
    163149{{{
    164150AddHandler cgi-script .cgi
     
    166152
    167153 
    168 14. Restart Apache
    169 
    170 15. Test your install of Subversion
     15413. Restart Apache
     155
     15614. Test your install of Subversion
    171157  http://[hostname]:80/svn/repo1
    172158
     
    175161=== Create Users ===
    176162
    177 16. Add users to password file
     16315. Add users to password file
    178164{{{
    179165C:\> c:\progra~1\apache~1\apache2\bin\htpasswd -m c:\svn\.htaccess user
     
    184170(Please note: pay attention to download '''exactly''' the versions mentioned here. Do '''not''' simply download the latest stable versions. Otherwise you will probably run into several issues.)
    185171
    186 17. Install Subversion Python Bindings
    187   Download [http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91&filter=_py.zip   svn-win32-1.2.X_py.zip] from the Subversion site. [[br]]Extract and copy the libsvn and svn directories to C:\Python23\Lib\site-packages [[br]][[br]]''Note : it is '''very''' important to use the python bindings for the exact version of Subversion you have installed. e.g. when running svn 1.1.4, make sure to use svn-win32-1.1.4_py.zip instead of the zip mentioned above. Otherwise, you '''will''' run into problems (loading dlls etc.)''.
     17216. Install Subversion Python Bindings
     173  Download [http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91&filter=_py.zip   svn-win32-1.X.X_py.zip] from the Subversion site. [[br]]Extract and copy the libsvn and svn directories to C:\Python23\Lib\site-packages [[br]][[br]]''Note : it is '''very''' important to use the python bindings for the exact version of Subversion you have installed. e.g. when running svn 1.2.3, make sure to use svn-win32-1.2.3_py.zip instead of the zip mentioned above. Otherwise, you '''will''' run into problems (loading dlls etc.)''.
     174
     17517. Install [http://docutils.sourceforge.net/ docutils ] (optional)
     176
     177  This is only required if you want to support Restructured text wiki markup
     178{{{
     179  expand and run from the expanded docutils-xxx directory
     180  > C:\python23\python setup.py install
     181}}}
    188182
    18918318. Install SQLite (optional)
     
    222216  Alternatively, grab unofficial installers for ClearSilver 0.9.14 from http://clearsilver.yi.org/.
    223217
    224 21. Install eGenix.com mx Extensions for Python
     21821. Install eGenix.com mx Extensions for Python (if using PostgreSQL)
    225219  Download and install [http://www.egenix.com/files/python/eGenix-mx-Extensions.html].[[br]]
    226220  The 'initenv' command in trac-admin needs this library to create the Trac database (At least it did when using a PostgreSQL back end).
     
    285279If you get an error here stating that libdb42.dll was not found, copy ''[SVN PATH]''\bin\libdb42.dll to ''[PYTHON PATH]''\lib\libsvn\, then try again.
    286280
    287 If you get an error about execute() argument 1 on !CheckWiki.pyo, delete !CheckWiki.pyo from the c:\Python23\share\trac\templates directory.  It shouldn't be there, but is when configuring 0.8.2 by hand instead of using the installer.
    288 
    289281If you get an error like "ImportError: No module named svn" you are missing the path to the SVN Python hooks in the PYTHONPATH environment varialbe.
    290282
     
    293285For example if you have your svn repository located in c:\svn\repo1 (like supposed by this tutorial), you'll probably want to name your trac database c:\trac\repo1. You would then call "python trac-admin c:/trac/repo1" in your scripts directory and enter "c:\svn\repo1" as the "path to (svn) repository".
    294286
    295 27. (BUG) Load Wiki See Ticket #1648
    296   (NB. This is fixed in the latest trac, so ignore this step if you installed v0.8.3 or later)
    297 {{{
    298 Trac [c:/svn/trac.db]> wiki load c:/python23/share/trac/wiki-default
    299 }}}
    300 
    301 28. Add administrative permissions (the below adds all permissions for 'admin' user)
     28727. Add administrative permissions (the below adds all permissions for 'admin' user)
    302288{{{
    303289Trac [c:/svn/trac.db]>
     
    307293
    308294=== Add Trac to Apache ===
    309 29. Edit httpd.conf:
     29528. Edit httpd.conf:
    310296  Add: (copy this - there's a typo in Edgewall's version)
    311297  Edit PYTHONPATH to point to your install of SVN
     
    384370
    385371
    386 30. Restart Apache.
    387 
    388 31. Hold your breath, test Trac install
     37229. Restart Apache.
     373
     37430. Hold your breath, test Trac install
    389375  http://[hostname]:80/cgi-bin/trac.cgi
    390376
     
    393379  If your page seems to be lacking stylesheets, please check the alias of '''/trac''' in apache. Otherwise you've probably run into a known Apache bug described (and worked around) [http://www.apache.org/dist/httpd/binaries/win32/#xpbug here].
    394380
    395 === Optional Diffutils ===
    396 32. In order for Trac to display diffs, you must download and install [http://gnuwin32.sourceforge.net/packages.html diffutils]. (Be sure to download the setup executable as it will install dlls needed by diffutils for you.) After installing diffutils, you will need to add the path to the diff executable to the Windows PATH environment variable.  '''Note:''' If Apache is running as a service you will need to reboot the machine for it to receive the updated PATH setting.
    397 
    398381=== Optional Enscript ===
    399 33. In order for Trac to syntax highlight code, you must download and install [http://gnuwin32.sourceforge.net/packages.html Enscript].  After installing Enscript, you will need to add the path to the enscript executable to the Windows PATH environment variable.  '''Note:''' If Apache is running as a service you will need to reboot the machine for it to receive the updated PATH setting.
     38231. In order for Trac to syntax highlight code, you must download and install [http://gnuwin32.sourceforge.net/packages.html Enscript].  After installing Enscript, you will need to add the path to the enscript executable to the Windows PATH environment variable.  '''Note:''' If Apache is running as a service you will need to reboot the machine for it to receive the updated PATH setting.
     383
     384=== Optional pre- and post-commit hooks for Subversion ===
     38532. In order to use pre- and post-commit hooks with Subversion on Windows, please refer to diff files described in #897, as the changes are not commited into the trunk as of version 0.8-dev.
    400386
    401387=== Finally... ===
    402 34. Install Subversion clients as necessary (try [http://rapidsvn.tigris.org RapidSVN] , [http://tortoisesvn.tigris.org/ TortoiseSVN] or [http://subclipse.tigris.org/ Subclipse])
    403 
    404 35. Don't forget to lock down the security on the box!
    405 
    406 36. If the svn page would not work properly with saying that DLL is missing, FIRST try to reboot the system and if that does not work, copy the three DLL's - libdb42.dll - libeay32.dll - ssleay32.dll from your [Subversion]\bin directory to your system directory (most likely C:\Windows\system32).
    407 
    408 === In addition... ===
    409 37. In order to use pre- and post-commit hooks with Subversion on Windows, please refer to diff files described in #897, as the changes are not commited into the trunk as of version 0.8-dev.
     38833. Install Subversion clients as necessary (try [http://rapidsvn.tigris.org RapidSVN] , [http://tortoisesvn.tigris.org/ TortoiseSVN] or [http://subclipse.tigris.org/ Subclipse])
     389
     39034. Don't forget to lock down the security on the box!
     391
     39235. If the svn page would not work properly with saying that DLL is missing, FIRST try to reboot the system and if that does not work, copy the three DLL's - libdb42.dll - libeay32.dll - ssleay32.dll from your [Subversion]\bin directory to your system directory (most likely C:\Windows\system32).
    410393
    411394== Upgrading from Trac 0.84 to 0.9-beta1 on Windows ==
     
    458441 * [mailto:tim|at|igethalf.com Tim Browse]
    459442 * [mailto:sid|at|seegrid.com Sid Wiesner]
    460 
    461443 * [mailto:trac-svn-mail|at|elvendesigns.com Muir]
    462444
     
    493475==== Guía en Español ====
    494476
    495 
    496477Guía de instalación de Trac en Windows en Español. [http://traclog.blogspot.com/ Aquí.]
    497478Some help for Spanish speakers installing Trac for Windows.