1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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. On Fedora-derived distros::
su -c yum install mod_wsgi
On Debian-derived distros::
sudo apt-get install libapache2-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
|