bloodhound-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "altrovideo@gmail.com" <altrovi...@gmail.com>
Subject THANK Jared Duncan PLEASE add this to the official Documentation
Date Wed, 25 Sep 2013 22:36:07 GMT
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



Please add this helpfull advices, there are too many things untold in the official how to.

The software is powerfull and help the user base should be great.

Thank you all
________
C


Mime
View raw message