11
11
# While other install guides in this package are generic, this one is very
12
12
# specific to our intended configuration. It will be very helpful if trying to
13
# set up IVLE on Ubuntu 8.04 or higher; less helpful for other platforms.
13
# set up IVLE on Ubuntu 7.06 or higher; less helpful for other platforms.
14
14
# This refers to ivle.conf, also included.
16
16
# Author: Matt Giuca
19
19
##########################################################################
21
21
##########################################################################
22
sudo apt-get install subversion build-essential debootstrap \
23
apache2 libapache2-mod-python libapache2-svn \
24
python2.5-dev python-svn python-webpy python-cjson \
25
postgresql python-pygresql php5 php5-pgsql \
26
python-docutils python-epydoc python-ldap
23
sudo apt-get install subversion
24
sudo apt-get install gcc libc6 libc6-dev make debootstrap
25
sudo apt-get install apache2 libapache2-mod-python libapache2-svn
26
sudo apt-get install python2.5-dev python-svn python-webpy
27
sudo apt-get install postgresql python-pygresql python-ldap
28
sudo apt-get install php5 php5-pgsql
29
sudo apt-get install python-cjson
30
sudo apt-get install python-docutils python-epydoc
28
32
##########################################################################
29
33
# Configure postgres
30
34
##########################################################################
36
# Some of these instructions follow
37
# https://help.ubuntu.com/community/PostgreSQL
38
# 1. install the base packages
32
40
# Set the postgres user's postgres password
33
41
sudo -u postgres psql template1
34
# At the prompt type (substituting <***password***> with a real one).
42
# At the prompt type (substituting <***password***> with a real one.
35
43
ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>';
42
50
# Check out the IVLE trunk
44
svn co https://ivle.svn.sourceforge.net/svnroot/ivle/trunk ivle_svn
52
export IVLE_SVN=ivle_svn
53
svn co https://ivle.svn.sourceforge.net/svnroot/ivle/trunk $IVLE_SVN
47
56
# Create a postgres database
48
57
# (only need the first line if it was previously created and is now changed)
73
82
sudo mkdir repositories sessions
74
83
sudo chown -R www-data:www-data repositories sessions
76
cd /home/informatics/ivle_svn
79
86
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
80
87
# role = guest/student/tutor/lecturer/admin
82
89
# Configure the Apache HTTP server
83
sudo cp doc/setup/ivle-both.conf /etc/apache2/sites-available/ivle
90
sudo cp doc/setup/ivle-both.conf /etc/apache2/sites-available/ivle.conf
84
91
# MODIFY the first few lines so it is specific to your server.
85
92
# * Change ServerAdmin and ServerName (for error reporting).
86
93
# * Inside the first VirtualHost block, there are two ServerNames
90
97
# (svn.localhost). You must change this to the domain for svn access.
91
98
# * Change all paths beginning with /opt/ivle or /home/informatics to the
92
99
# locations you have installed things in.
93
sudo vim /etc/apache2/sites-available/ivle
95
# Replace the default with the IVLE site.
96
sudo a2dissite default
100
sudo /etc/init.d/apache2 restart
100
vim /etc/apache2/sites-available/ivle.conf
102
# Replace the existing config link with the ivle one
103
cd /etc/apache2/sites-enabled/
104
sudo ln -fs /etc/apache2/sites-available/ivle.conf 000-default
102
106
# Make sure the 3 domains given in Apache conf all lookup to your server.
103
107
# (By default these are localhost, public.localhost and svn.localhost).
104
108
# For testing purposes, this can be done by editing /etc/hosts, for example:
105
# 127.0.0.1 svn.localhost public.localhost
109
127.0.0.1 public.localhost
110
127.0.0.1 svn.localhost
113
sudo apache2ctl -k restart
108
115
##########################################################################
109
116
# User management server: usrmgt-server