Edgewall Software

Changes between Version 28 and Version 29 of TracOnOsx


Ignore:
Timestamp:
Jun 22, 2005, 3:41:41 PM (19 years ago)
Author:
Henk Poley
Comment:

apt-get → fink, config example

Legend:

Unmodified
Added
Removed
Modified
  • TracOnOsx

    v28 v29  
    3434}}}
    3535
     36Though ''fink'' manages the administrator/root permissions for you, which might be handy.
     37
    3638== Installing Subversion ==
    3739
     
    3941
    4042{{{
    41 $ apt-get install svn-ssl svn-client-ssl svn-ssl-swig-py23
     43$ fink install svn-ssl svn-client-ssl svn-ssl-swig-py23
    4244}}}
    4345
     
    4547
    4648{{{
    47 $ apt-get install svn svn-client svn-swig-py23
     49$ fink install svn svn-client svn-swig-py23
    4850}}}
    4951
     
    5658}}}
    5759
    58 I found that the above apt-get had given me somewhat elderly Subversion 1.0.6 binaries; after updating with Fink, I got the current (at the time of this writing) 1.1.3 version.
     60I found that the above fink commands had given me somewhat elderly Subversion 1.0.6 binaries; after updating with Fink, I got the current (at the time of this writing) 1.1.3 version.
    5961
    6062== Installing Clearsilver, pysqlite, and Trac Itself ==
     
    7072
    7173That should be all you need to do. You can now set up your [wiki:TracEnvironment Trac environment] as per the usual instructions. If you do end up needing to install pysqlite, Clearsilver and Trac manually after having installed the rest with Fink as above, read on.
     74
     75== Setting up Trac using Apple Personal Webserver ==
     76
     77To initialize a Trac environment at {{{/path/to/projectenv}}} run the following commands (you need to have a Subversion repository ready somewhere):
     78
     79{{{
     80$ trac-admin /path/to/projectenv initenv
     81$ cd /path/to/projectenv
     82$ sudo chown -R www .
     83}}}
     84
     85'''Please remember to set approppriate permissions for your Subversion repository.'''
     86
     87Open the Apache configuration file {{{/etc/httpd/httpd.conf}}} for editing:
     88
     89{{{
     90$ sudo nano -w /etc/httpd/httpd.conf
     91}}}
     92
     93Add the following to have Trac appear at {{{yourdomain.tld/webpath}}} (with TracPrettyUrls). Change {{{/path/to/projectenv}}} to your particular setup.
     94
     95{{{
     96     Alias /trac/ /sw/share/trac/htdocs/
     97
     98     RewriteEngine On
     99
     100     <Directory "/sw/share/trac/htdocs">
     101       Options Indexes MultiViews
     102       AllowOverride None
     103       Order allow,deny
     104       Allow from all
     105     </Directory>
     106
     107    # You need this to allow users to authenticate
     108    # trac.htpasswd can be created with
     109    # cmd 'htpasswd -c trac.htpasswd' (UNIX)
     110    # do 'man htpasswd' to see all the options
     111    <Location "/webpath/login">
     112        AuthType Basic
     113        AuthName "trac"
     114        AuthUserFile /path/to/projectenv/conf/trac.passwd
     115        Require valid-user
     116    </Location>
     117
     118     SetEnv TRAC_ENV "/path/to/projectenv/"
     119     ScriptAliasMatch ^/webpath/(.*) /sw/share/trac/cgi-bin/trac.cgi/$1
     120}}}
     121
     122Now check if Apache is started, and possibly reload the configuration files:
     123{{{
     124$ sudo apachectl start
     125$ sudo apachectl graceful
     126}}}
     127
     128Your Trac installation should now be available at yourdomain.tld/webpath/
    72129
    73130== Manually Installing Clearsilver ==
     
    151208''This is required due to a bug in the way Python locates it's own library directory.  It is present in all versions of Python up to 2.3.4, but will be fixed in both 2.4 and 2.3.5.''  -- Mark Rowe
    152209
     210Update your python23 installation if you still need this fix.
     211
     212{{{
     213$ fink install python23
     214}}}
     215or:
     216{{{
     217$ fink rebuild python23
     218}}}
     219
    153220= Installing using pkgsrc =
    154221