~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/setup/install_proc.txt

  • Committer: William Grant
  • Date: 2009-01-20 05:03:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090120050355-1tm3j13zazd9ik32
ivle.worksheet: Add a save_exercise function.
www/apps/tutorialservice: Import db.TIMESTAMP_FORMAT locally.
    Remove last reference to ivle.db, replacing it with save_exercise.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
27
28
 
28
29
##########################################################################
29
30
# Configure postgres
30
31
##########################################################################
31
32
 
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***>'"
36
36
 
37
37
##########################################################################
38
38
# Installing ivle
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
52
52
 
53
53
# Set up IVLE
54
 
./setup.py listmake
55
54
./setup.py config
56
55
 
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
61
 
 
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}
64
 
 
65
 
sudo ./setup.py build
 
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
67
59
 
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
72
 
 
73
 
# Make the "repositories", "sessions" and "logs" directories in the home.
74
 
# Make sure they are owned by www-data.
75
 
 
76
60
# Create a user
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
79
63
 
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
92
77
 
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
131
 
 
132
 
#Change to the installed IVLE directory
133
 
cd /opt/ivle
134
 
# Fix permissions for install
135
 
cd www/php/phpBB3
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 .
139
 
 
140
 
##########################################################################
141
 
# Installing Pound reverse proxy (optional)
142
 
##########################################################################
143
 
 
144
 
sudo apt-get install pound
145
 
 
146
 
# edit /etc/default/pound so that the line reading
147
 
#     startup=0
148
 
# instead reads
149
 
#     startup=1
150
 
#
151
 
# copy pound.cfg to /etc/pound/pound.cfg
152
 
# edit IP addresses in pound.cfg