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