Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 7805aceed5b4cd2637d3145cb3cea75b > files > 1

loggerhead-1.18.1-1.fc13.src.rpm

To deploy loggerhead via mod_wsgi, you need to add configuration for apache and
for bazaar.  Example config files are in the loggerhead doc directory as
loggerhead.conf and bazaar.conf.  You can copy them into place and use them as
a starting point if you want.

1) Edit /etc/loggerhead/bazaar.conf.  You need to set http_root_dir to the filesystem
   path that you will find your bzr branches under.  Note that normal
   directories under that path will also be visible in loggerhead.

2) Install mod_wsgi::
     # yum install mod_wsgi

3) Install the apache conf file::
     # cp /usr/share/doc/loggerhead-*/loggerhead.conf /etc/httpd/conf.d/

4) Edit /etc/httpd/conf.d/loggerhead.conf to point to the url you desire to
   serve loggerhead on.  This should match with the setting for
   http_user_prefix in bazaar.conf

5) Restart apache and you should be able to start browsing

.. note:: If you have SELinux enabled on your system you may need to allow
   apache to execute files in temporary directories.  You will get a
   MemoryError traceback from python if this is the case.  This is because of
   the way that python ctypes interacts with libffi.  To rectify this, you may
   have to do several things, such as mounting tmpdirs so programs can be
   executed on them and setting this SELinux boolean::

       setsebool httpd_tmp_exec on

    This bug has information about how we might solve this issue permanently
    and links to bugs which diagnose the root cause.
    https://bugzilla.redhat.com/show_bug.cgi?id=582009