-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
The module requires the LTI database tables to be added to the same database schema as WebPA. Details of these tables can be found in the PHP LTI Tool Provider class documentation (see the Installation section). The tables should be given the same prefix as used when installing WebPA. The webpa-lti-tables.sql file contains the SQL statements required to create these tables. The file assumes the default prefix of pa2_; it should be edited to replace this prefix if a different one was used for the WebPA tables.
The download file available from OSCELOT (see Licence section below) includes the following file:
lti.zip
This file contains the PHP source files for the module which should be added to the WebPA server:
- Extract the
lti.zipfile and upload it to themoddirectory on the WebPA server. - Extract the contents of the
lti.zipfile to create a directory namedlticontaining all the module source files.
The module requires the LTI database tables to be added to the same database schema as WebPA. Details of these tables can be found in the PHP LTI class library documentation (see the Installation section). The tables should be given the same prefix as used when installing WebPA. The webpa-lti2-tables.sql file contains the SQL statements required to create these tables. The file assumes the default prefix of pa2_; the file should be edited to replace this prefix if a different one was used for the WebPA tables.
The download file available from the OSCELOT repository includes the following file:
lti.zip
This file contains the PHP source files for the module which should be added to the WebPA server:
- Extract the
lti.zipfile and upload it to the mod directory on the WebPA server. - Extract the contents of the
lti.zipfile to create a directory namedlticontaining all the module source files. - Use the
composer installcommand to install the LTI class library files; or, if composer is not available, download the source files for the LTI class library and manually extract them into thevendordirectory.
An existing implementation using version 1 of this connector can be upgraded to version 2 by:
- Deleting the existing
mod/ltidirectory. - Installing the version 2 PHP source files in the
ltidirectory (see above); - Creating the version 2 LTI database tables (see above);
- Running the
webpa-upgrade-lti-tables.sqlscript.
The module requires the LTI database tables to be added to the same database schema as WebPA. Details of these tables can be found in the PHP LTI class library documentation (see the Installation section). The tables should be given the same prefix as used when installing WebPA. The webpa-lti3-tables.sql file contains the SQL statements required to create these tables. The file assumes the default prefix of pa2_; the file should be edited to replace this prefix if a different one was used for the WebPA tables.
The simplest way to install the WebPA module is by using Composer:
- Log into the WebPA server.
- Navigate to the directory containing the WebPA source files.
- Create a directory named
modif it does not already exist. - Navigate to the the
moddirectory. - Run the command
composer create-project celtic/webpa-lti lti.
Alternatively, the source files can be installed manually as follows:
- Extract the
lti.zipfile from the download file available from the OSCELOT repository. - Extract the contents of the
lti.zipfile into themoddirectory on the WebPA server to create a directory namedlticontaining all the module source files. - Use the
composer installcommand to install the LTI class library files; or, if composer is not available, download the source files for the LTI class library and its dependencies and manually extract them into thevendordirectory (see the documentation for the LTI class library for details).
The setting-dist.php file should be copied to setting.php and, when LTI 1.3 connections are to be used, the private key (in PEM format) for your instance of WebPA and a random value for its kid (key ID) should be added.
An existing implementation using version 2 of this connector can be upgraded to version 3 by:
- Keeping a copy of your existing
setting.phpfile if you have changed any of the default values. - Deleting the existing
mod/ltidirectory. - Installing the version 3 PHP source files in the
ltidirectory (see above). - Updating the new
setting.phpfile with any changes made in the old file. - Running the
webpa-lti3-upgrade-mysql.sqlscript to upgrade the LTI tables.
To enable the module, open the includes/inc_global.php file in a text editor, locate the line containing $INSTALLED_MODS = array(); and insert the following line after it:
$INSTALLED_MODS[] = 'lti';Once the module has been enabled, additional menu options will be added to the menu for administrator and tutor users.
© 2020 Stephen P Vickers. All Rights Reserved.