Outbound Link Summary:
Network 3000:
12 years ago
How to run loggerhead via WSGI and Apache 2.4.
I did not find a complete instructional for doing this so I wrote down what I had to do to make it work on the “saucy” Ubuntu (13.10).
- Copied the file
/usr/share/doc/loggerhead/examples/apache-loggerhead.confto/etc/apache2/config-available/loggerhead.conf - Modified the following lines: WSGIDaemonProcess loggerhead user=www-data group=www-data maximum-requests=1000 display-name=loggerhead processes=4 threads=1 WSGISocketPrefix /var/run/apache
- Enabled the configuration by
a2enconf loggerhead - Copied the file
/usr/share/doc/loggerhead/examples/bazaar.confto/var/www/.bazaar/bazaar.conf - Created the directory
/var/cache/loggerheadand changed access permissions bychown www-data:www-data /var/cache/loggerhead - Disabled the loggerhead upstart service by
echo 'manual' >> /etc/init/loggerhead.override - Restarted Apache by
service apache2 restart
Of course, you also need to adapt the URL and file paths to your Bazaar repositories according to your setup.