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
37
38
= Required stuff =
CHANGE_THIS_PATH is equal to new third level domain url or folder that containing it
= Virtualenv =
Follow this step:
1) apt-get install python-setuptools python-dev build-essential
2) easy_install virtualenv
3) cd srv/CHANGE_THIS_PATH
4) mkdir env
5) virtualenv –python=/usr/bin/python2.6 --no-site-packages env/
6) sudo env/bin/easy_install django==1.3 South==0.7.5 Sphinx==1.0 django-openid-auth==0.2 django-debug-toolbar \\
django-migrator==0.3 html5lib markdown elementtidy sphinxsearch psycopg2
= Database =
"osqa" user and a "osqa" database.
= Apache =
See 00-apache_site_avaible_rules file.
= Deploy =
1) Put bzr lp:ubuntu-it-ask into /srv/CHANGE_THIS_PATH/www/osqa/ and apply changes in osqa.wsgi and settings_local.py in order to reflect \\
the correct url and path.
2) python manage.py syncdb --all (no create super user)
3) python manage.py migrate forum --fake
4) python manage.py makemessages -a (or "-l it" is sufficient)
= Permission =
sudo chown -R www-data:www-data osqa
sudo chmod -R g+w /srv/CHANGE_THIS_PATH/www/osqa/forum/upfiles
sudo chmod -R g+w /srv/CHANGE_THIS_PATH/www/osqa/log