23
23
apache2 libapache2-mod-python libapache2-svn \
24
24
python2.5-dev python-svn python-webpy python-cjson \
25
25
postgresql python-pygresql php5 php5-pgsql \
26
python-docutils python-epydoc python-ldap
26
python-docutils python-epydoc python-ldap \
27
python-storm python-psycopg2
28
29
##########################################################################
29
30
# Configure postgres
30
31
##########################################################################
32
# Create a new database user which will be used by IVLE to talk to the DB, and
33
# set this user's password.
33
# Set the postgres user's postgres password
34
34
# At the prompt type (substituting <***password***> with a real one).
35
sudo -u postgres psql -c "CREATE USER ivleuser WITH ENCRYPTED PASSWORD '<***password***>'"
35
sudo -u postgres psql -c "ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>'"
37
37
##########################################################################
46
46
# Create a postgres database
47
47
# (only need the first line if it was previously created and is now changed)
48
48
sudo -u postgres dropdb ivle
49
sudo -u postgres createdb --owner ivleuser ivle
49
sudo -u postgres createdb ivle
50
50
sudo -u postgres createlang plpgsql ivle
51
51
sudo -u postgres psql -d ivle < userdb/users.sql
57
# "Root directory" - type "/" or "/ivle" (without the quotes)
58
# "UID of web server process" - 1000 at this stage (informatics)
59
# Leave others default.
60
# Note: This will cause IVLE to get installed to /opt/ivle
62
sudo mkdir -p /home/informatics/{repositories/{users,groups},sessions,logs,jails,jailssrc}
63
sudo chown -R www-data:www-data /home/informatics/{repositories,sessions,logs}
56
# -j is required to rebuild all jails, not just do an update
57
sudo ./setup.py build -j
66
58
sudo ./setup.py install
68
# Make the directory containing the svn auth.
69
# Make sure it is owned by www-data.
70
sudo mkdir /opt/ivle/svn
71
sudo chown -R www-data:www-data /opt/ivle/svn
73
# Make the "repositories", "sessions" and "logs" directories in the home.
74
# Make sure they are owned by www-data.
77
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
61
sudo ivle-makeuser [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
78
62
# role = guest/student/tutor/lecturer/admin
80
64
# Configure the Apache HTTP server
88
72
# (svn.localhost). You must change this to the domain for svn access.
89
73
# * Change all paths beginning with /opt/ivle or /home/informatics to the
90
74
# locations you have installed things in.
75
# * Update all of the paths to where you installed IVLE, if required.
91
76
sudo vim /etc/apache2/sites-available/ivle
93
78
# Replace the default with the IVLE site.
125
110
# Create a postgres database
126
111
# (only need the first line if it was previously created and is now changed)
127
112
sudo -u postgres dropdb ivle_forum
128
sudo -u postgres createdb --owner ivleuser ivle_forum
113
sudo -u postgres createdb ivle_forum
129
114
sudo -u postgres psql -d ivle_forum < userdb/forum_schema.sql
130
115
sudo -u postgres psql -d ivle_forum < userdb/forum_data.sql
132
#Change to the installed IVLE directory
134
# Fix permissions for install
136
# At very minimum you apache user must be able to write to
137
# cache/ files/ store/ images/avatars/upload config.php
138
sudo chown -R www-data:www-data .
140
##########################################################################
141
# Installing Pound reverse proxy (optional)
142
##########################################################################
144
sudo apt-get install pound
146
# edit /etc/default/pound so that the line reading
151
# copy pound.cfg to /etc/pound/pound.cfg
152
# edit IP addresses in pound.cfg