88
88
Unlike the package, you will have to manually set up the database and
91
.. TODO: Separate IVLE PostgreSQL account.
93
First you must create a PostgreSQL database, and populate it with the
94
IVLE schema. You may use any name for the database. ::
96
sudo -u postgres createdb ivle
91
First, it is recommended that you create a separate database user for IVLE.
92
You may use any name for the user. ::
94
sudo -u postgres createuser ivleuser # Answer 'n' to all questions
95
sudo -u postgres psql -c "ALTER USER ivleuser WITH ENCRYPTED PASSWORD 'ivle-password';"
97
Now, you must create a PostgreSQL database, and populate it with the
98
IVLE schema. You may use any name for the database (here we use ``ivle``). ::
100
sudo -u postgres createdb -O ivleuser ivle
97
101
sudo -u postgres createlang plpgsql ivle
98
sudo -u postgres psql -d ivle < userdb/users.sql
102
psql -h localhost -W ivle ivleuser < userdb/users.sql
100
104
The configuration wizard - ``ivle-config`` - will ask you a series of
101
questions. Apart from database settings, the defaults should be correct
105
questions. You should give the database username and password as configured
106
above. Apart from database settings, the defaults should be correct
102
107
for a development system. If deploying IVLE properly - particularly on
103
108
multiple nodes - several options will need to be changed. Watching
104
109
carefully, run: ::