bloodhound-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ollos <ryan.ol...@wandisco.com>
Subject Re: Running Bloodhound via apache: 404
Date Wed, 18 Sep 2013 20:43:23 GMT
On Tue, Sep 17, 2013 at 9:48 PM, Jared Duncan <j@jdunk.com> wrote:

> Allright, I was able to do it just as you described and everything seems
> to be working perfectly.  It ran fine via tracd and apache, and in both
> modes I tested modifying a wiki article and ticket.  While running via
> apache, I was able to upload a file attachment to a ticket, view it, and
> delete it.  Zero problems.  :)
>
> Here is the list of commands I used, which might be helpful in updating
> the docs:
>
> ===
>
> mkdir /var/www/bh.mysite.com/
> cd !$
> tar zxvf /usr/local/src/apache-bloodhound-0.7.tar.gz
> mv apache-bloodhound-0.7/ src
> cd src/installer/
> virtualenv --system-site-packages ../../python-virtualenv
> . !$/bin/activate
> pip install -r requirements.txt
> python bloodhound_setup.py --environments_directory=../../env -d sqlite
> --project=<env name> --default-product-prefix=<prefix> --admin-user=<admin
> username>
> tracd --port=8000 /var/www/bh.mysite.com/env/<env name>
> ^C
> trac-admin ../../env/<env name>/ # modify components, versions, milestones
> ^D
> trac-admin /var/www/bh.mysite.com/env/<env name>/ deploy /var/www/
> bh.mysite.com/www
> # and now, to run via apache...
> sudo useradd bloodhound
> cd /var/www/bh.mysite.com/
> sudo chown -R bloodhound.www-data env www python-virtualenv
> sudo chmod -R ug+r env www python-virtualenv
> sudo chmod -R ug+w env
> vi /etc/apache2/sites-available/bh.mysite.com
> sudo a2ensite bh.mysite.com
> sudo apache2ctl graceful
>
> ===
>
> ...and the contents of my /etc/apache2/sites-available/bh.mysite.com file:
>
> ===
>
> <VirtualHost *:80>
>     ServerName bh.mysite.com
>
>     LogLevel warn
>     ErrorLog /var/log/apache2/bh.mysite.com-error.log
>     CustomLog /var/log/apache2/bh.mysite.com-access.log combined
>
>     WSGIDaemonProcess bh_tracker user=bloodhound python-path=/var/www/
> bh.mysite.com/python-virtualenv/lib/python2.7/site-packages
>     WSGIScriptAlias / /var/www/bh.mysite.com/www/cgi-bin/trac.wsgi
>     <Directory /var/www/bh.mysite.com/www/cgi-bin>
>         WSGIProcessGroup bh_tracker
>         WSGIApplicationGroup %{GLOBAL}
>         Order deny,allow
>         Allow from all
>     </Directory>
>     <LocationMatch "/[^/]+/login">
>         AuthType Digest
>         AuthName "Bloodhound"
>         AuthDigestDomain /
>         AuthUserFile /var/www/bh.mysite.com/env/<env
> name>/bloodhound.htdigest
>         Require valid-user
>     </LocationMatch>
> </VirtualHost>
>
> ===
>
> Cheers!
> Jared
>

Thanks Jared, your feedback is very helpful. I'll run through it and draft
an update to the wiki within the next few days.

Mime
View raw message