TREE.IO INSTALLATION ON UBUNTU

TREE.IO INSTALLATION ON UBUNTU 

1. Log on to ubuntu and open a terminal.

2. Install apache, Wsgi and mysql:
$ sudo apt-get install apache2 libapache2-mod-wsgi
$ sudo apt-get install mysql-server python-mysqldb

3. Install some stuff that we need in order to work with Python and Django (if you havent done so already):
$ sudo apt-get install python-pip python-dev build-essential
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade virtualenv

4. Install dependencies as outlined by Tree.io:
$ sudo apt-get build-dep python-lxml python-imaging

5. Create the directory Download and unzip Tree.io:
$ sudo mkdir /home/projects // if the folder does not already exist
$ wget http://tree.io/static/download/treeio.zip
$ unzip treeio.zip
cd treeio

6. You're now into the treeio directory. Lets install all of its dependencies
$ make
(If you get some error message saying that 'PIP' wasnt able to find some dependencies such as 'PIL', just remove them from the 'requirements.pip' file in the treeio directory. We have already installed them. You can than run 'make' again after running 'clean make'.)

7. Create the 'treeio'-database.
$ mysql -u username -p
("Enter password:" will popup, enter the MySQL pw you created earlier, bl********)
> create database database_name;
> grant all privileges on database_name.* to some_user@localhost identified by 'some_password';
> \q

8. Generate database tables:
$ make install
(The installer will guide you through all the steps.) We're almost done. Just a few more steps:

9. Go to and create a VirtualHost file named 'treeio' (creating it in this directory will make it easier to amend the doc).

10. Open the "treeio" file and add the following:
Listen 8080
WSGIRestrictStdout Off
<VirtualHost *:8080>
DocumentRoot /home/projects/treeio
<Directory /home/projects/treeio>
Order allow,deny
Allow from all
</Directory>

WSGIScriptAlias / /home/projects/treeio/treeio.wsgi

WSGIDaemonProcess treeio processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup treeio

</VirtualHost>

11. Save your file. Then move it to the /etc/apache2/sites-available directory
$ sudo mv /home/justs/Documents/treeio /etc/apache2/sites-available/treeio

12. Go to your treeio directory, /home/projects/treeio and create a new file.

13. Open the file and add the following:
import os
import sys

sys.path.append('/home/projects')
sys.path.append('/home/projects/treeio')

os.environ['DJANGO_SETTINGS_MODULE'] = 'treeio.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

14. Save the file as 'treeio.wsgi' in /home/projects/treeio.

15. Add the treeio-site to the apache enabled sites:
$ sudo a2ensite treeio
$ sudo service apache2 reload

16. Restart apache!
$ sudo /etc/init.d/apache2 restart

17. Enter the url in your browser: http://yourip:8080

You will now see your Tree.io installation, the default admin credentials are admin (user) and admin(pass).


Learn More :