This is a copy of Ehsan's original page, which was not viewable outside ISD.
http://webpaproject.lboro.ac.uk/the-system/setup/ - customisations
Links to test instance of both WebPA and Moodle (where lti connection has been installed) -
This document give details for the first time installation of WebPA on moodle-test for proof of concept purposes.
Database created on ccspsql@moodle-test - Username & PW in KeePass.
Application to be stored /data/apache/moodle-vhosts/webpa (on moodle-test)
Installation instructions - http://webpaproject.lboro.ac.uk/the-system/installation/#install-download
Create WebPA database on ccspsql@moodle-test (/data/mysql/mysql-5.6/webpa)
Download the latest stable install of WebPA http://webpaproject.lboro.ac.uk/the-system/download/
Copy unzipped files/folders to /data/apache/moodle-vhosts/webpa
Logon to ccspsql@moodle-test with mRemoteNG
Login to MySQL as user - webpauser - mysql -uwebpauser -p
use webpa database - use webpa;
The webpa tables will now be loaded onto the webpa database.
Once you have run the WebPA script it is recommend that you remove the following files;
FYI - Files that are customised by LTA:
Open the following file;
Webpa > Includes > inc_global.php
Within this file you will find the following definitions for which you will need to change as appropriate.
The first elements to be customised are for the details of where the files are and the descriptors which will be out put by WebPA.
The file structure also needs to be set to suit the operating systems structure
The next section to customise is the logo section. This is purely optional and if left blank will not effect the appearance of the system.
The next section that needs to be customised is for the database connection. You will need to ensure that the username and password are correct and have permission to access the database from the web server address.
The next section that needs to be customised is the contact information for the help sections. These need to valid email addresses.
Following this the grade book section needs to be configured. The grade book allows the grades for an assessment to be output in the format accepted by the moodle grade book system. By default this option is set to false as it is untested at present.
The next area for configuration is the automatic emailing options. This option is dependant on cron jobs/services being set for the following files;
http://www.spvsoftwareproducts.com/php/webpa-lti/ - Documentation
Download webpa-lti-1.1.00.zip from the OSCELOT site above. Unzip the file to your local machine. You should have the following files:
Log into MySQL on moodle-test.ucl.ac.uk as webpauser - mysql -uwebpauser -p
select WebPA database - use webpa
run the sql file to automatically create the tables required for the lti connection.
Now extract the contents of the lti.zip file and upload it to the mod directory on the WebPA server. If there is no mod directory then you will need to create one at the root of the webpa installation. You should now have a directory named webpa/mod/lti containing all the module source files.
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:
Once the module has been enabled, additional menu options will be added to the menu for administrator and tutor users.
In order to set the authentication method that will be used to allow users to logon to the application the following line of code within the configuration file needs to be changed.
Within the WebPA tool a number of areas allow you to send emails. You can leave the settings as in the php ini file and the system should use the default php email system. Alternatively you can set WebPA up to use the organisational SMTP server. In order to do this you will need to edit the following lines in the config file.
If using a Windows based architecture then you need to set the send mail from
In order to integrate WebPA with Moodle you need to install a modified BasicLTI4Moodle Plugin. This plugin is only available on request from: http://celtic-project.org/Project_blog/2013/06/WebPA_and_Moodle_2 (saved as an attachment to this wiki)
Install the BassicLTI4Moodle plugin into moodle -
unzip the basiclti-2013012100.zip file and place the basiclti folder into the mod directory within Moodle.
Reload Moodle and you should be presented with a list of plugins and you will see the new basic LTI plugin in the list. Click update database button at bottom of the page
The page should eventually reload and you should get a success message displayed.
The connection between WebPA (the IMS Tool Provider) and a learning environment (an IMS Tool Consumer) is based on the following information:
Within WebPA click on the LTI Sources link
Click Add New Source Button
A unique consumer key and shared secret should be generated for each learning environment permitted to connect to WebPA. They may be any value. For example, a consumer key could be the domain name for the learning environment server or a GUID. Consumer keys should not be shared by multiple learning environments. Each consumer key and secret pair is registered within WebPA by using the lti sources menu option.
Give the new connection a Name and Key an example is shown below:
The form will already be populated with a secret. Make a note of the secret for later.
Make sure the Emabled box is checked.
Go to Site Administration, Plugins, Activity Modules, Basic LTI
Click Create a new Basic LTI activity
Enter a Remote Tool Name of “WebPA Peer Assessment” (or other name of your choice).
Enter the launch URL - The launch URL will be the same as the root of the WebPA server with /mod/lti/index.php appended to it. For example,
Enter the same consumer key and secret that were entered on the WebPA site. An example is shown below:
A preferred height may be entered later if the default is not suitable.
Set each of the Privacy settings as follows:
Set each of the Basic LTI Extension Services settings as follows:
Set each of the Setup Options settings as follows:
Leave the Organization details settings empty.
The Popup Option in the Launch Options section may be set as preferred, but the Launch tool in Moodle is recommended.
It is recommended that a separate link to WebPA be added to a course for each assessment; this will allow all the grades to be returned to Moodle.
Groups and assign students:
If a person has a role other than student in Moodle; they are still shown as a student in WebPA through the Moodle assessment activity. Potential development work to have the ability to show as a staff/tutor so they can create assessment from Moodle and avoid the need to log into WebPA website.
Currently WebPA is using the database authentication to login which needs to be changed to LDAP authentication. (refer toheading above in the wiki)
Ability to delete any uploaded data from WebPA as currently deletion is not possible through the website and can only be done directly from the database.
When logging in WebPA as a staff and creating assessments; when the student logs into their moodle it states that they have no assessment assigned to them. This is due to that staff view cannot see the specific peer assessment activity through the "change moodle" link whereas the admin can. This same functionality would need to implement into the staff access.
[Staff Login View]] [ ]