1. Installing Ubuntu Server (one can install it with LAMP and OpenSSH software included, but I did not do this)Installing mysql 5.5.37
2. Sudo apt-get install mysql-server
3. Sudo apt-get install mysql-client
4. sudo apt-get install libmysqlclient-dev
Install apache and mod_wsgi
5. Sudo apt-get apache
6. sudo aptitude install libapache2-mod-wsgi
7. sudo service apache2 restart
Installing python 2.6
8. sudo add-apt-repository ppa:fkrull/deadsnakes
9. sudo apt-get update
10. sudo apt-get install python2.6 python2.6-dev
11. Make sure python link points to 2.6 (edit @python and @python-config)
12. sudo apt-get install python-setuptools python-mysqldb
Installing Gcc
13. Sudo apt-get install build-essential
Getting ScrumDo installation files
14. Sudo apt-get install git
15. Git clone https://github.com/ScrumDoLLC/ScrumDo.git
Getting piston django
16. wget https://bitbucket.org/jespern/django-piston/downloads/django-piston-0.2.2.tar.gz
17. tar -xzvf django-piston-0.2.2.tar.gz cd django-piston-0.2.2
18. python setup.py install
Installing pinax
19. Python scripts/pinax-boot.py ../pinax-env
Local_setting.py
20. Creating local_setting.py in scrumdo-web dir
SCRUMDO_EXTRAS = ()
DATABASE_NAME = 'backlog'
DATABASE_USER = 'backlog'
DATABASE_PASSWORD = 'somepassword'
Starting up pinax env
21. Sudo sd
22. Source pinax-env/bin/activate
Installing scrumdo pre-requistes
23. Pip install -r requierments.txt
24. Pip -U 'Django<1.2'
Setting Up Mysql
25. Mysql -u root -p
26. CREATE USER 'backlog'@'localhost' IDENTIFIED BY 'somepassword';
27. GRANT ALL PRIVILIGES ON backlog.* to backlog IDENTIFIED BY 'somepassword';
Run manage script
28. Python manage.py sync.db
Run Server
29. Python manage.py runserver
30. Press control+c to quit and since we are not finished yet. We need to set up apache frontend.
Setting up apache server in front of django
31. Create new file "scrumdo.conf" in the following directory: /etc/apache2/sites-available
32. Edit the file based on example below:
Hi Gerry,
I'm no expert when it comes to these things, the simplest config to get it running in WSGI looks something like this:
WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess mysite-production python-path=/home/ec2-user/backlog-site/pinax-env/lib/python2.6/site-packages/
WSGIProcessGroup mysite-production
WSGIScriptAlias / /home/ec2-user/backlog-site/scrumdo-web/deploy/pinax.wsgi
<Directory /home/ec2-user/backlog-site/backlog-site/deploy>
Order deny,allow
Allow from all
</Directory>
Assuming the the scrumdo source repo is cloned to: /home/ec2-user/backlog-site
Hope that helps,
-Marc
<http://support.scrumdo.com/discussions/problems/10-running-scrumdo-behind-apache-server-on-ubuntu>
33. Sudo a2ensite scrumdo.conf
34. Service apache2 reload
35. /etc/init.d/apache2 restart
36. Python manage.py runserver
Caught ImportError while rendering: cannot import name urlRequest Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: TemplateSyntaxError
Exception Value:
Caught ImportError while rendering: cannot import name url
Exception Location:
/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/site-packages/t
astypie/api.py in <module>, line 3
Python Executable: /home/werkstatt/scrumdo/ScrumDo/pinax-env/bin/python
Python Version: 2.6.9
Python Path: ['/home/werkstatt/scrumdo/ScrumDo/scrumdo-web/apps',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/site-packages/
pinax/apps', '/home/werkstatt/scrumdo/ScrumDo/scrumdo-web',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/site-packages/
setuptools-0.6c11-py2.6.egg',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/site-packages/
pip-0.6.1-py2.6.egg',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/plat-linux2',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/lib-tk',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/lib-old',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/lib-dynload',
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/site-packages'
,
'/home/werkstatt/scrumdo/ScrumDo/pinax-env/lib/python2.6/site-packages/
PIL',
'/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/django_piston-0.2.2-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg',
'/usr/local/lib/python2.6/site-packages',
'/usr/local/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages']
Server time: Thu, 15 May 2014 08:45:28 -0400
Template error
In template
/home/werkstatt/scrumdo/ScrumDo/scrumdo-web/templates/site_base.html,
error at line 37
Caught ImportError while rendering: cannot import name url
27 {% openid_icon openid user %}<b><a href="{% url home %}">{{ user
}}</a></b> | <a href="{% url acct_email %}">{% trans "Account" %} {%
trans "Settings" %}</a> | <a href="{{ SUPPORT_URL }}">Help</a> <!-- |
<strong><a href="{% url tutorial_page "scrumdo" "start"
%}">Tutorial</a></strong> {% silk "new" %} -->|
28 {% ifloaded biblion %}
29 <a href="{% url blog %}">Blog</a> |
30 {% endifloaded %}
31 <a href="/openid/logout/?next={% url acct_logout %}">{% trans
"Logout" %}</a>{% if user.is_staff %} | <a href="/admin/">{% trans
"Admin" %}</a>{% endif %}
32 {% else %}
33 <a href="{% url acct_login %}">Login<!--<img src="{{ STATIC_URL
}}images/loginButton.png">--></a> {% ifsetting ACCOUNT_OPEN_SIGNUP %} |
<a href="{% url acct_signup %}">Sign Up<!--<img src="{{ STATIC_URL
}}images/signUpButton.png">--></a>{% endifsetting %}
34 {% endif %}
35 {% endblock %}
36
37 {% block logo_link_image %}<a href="{% url home %}"><img src="{{
STATIC_URL }}images/logo.png" alt="ScrumDo"/></a>{% endblock %}
38
39
40 {% block extra_body_base %}
41 {% block extra_body %}{% endblock %}
42 {% endblock %}
43
44
45
46
47