Skip to content

Installation Instructions

Vinícius B. Matos edited this page Mar 11, 2025 · 5 revisions

Installing HarpIA Ajax

Development environments

Please use the HarpIA Survey repository.

Production and test environments

  1. Set up HarpIA Model Gateway and take a note of its address.
  2. Upload the plugin to the server by using one of these methods:
    • Method a: upload from the web interface. This method only works if the web server's user (e.g. www-data) can write on the local/ subdirectory of Moodle (often /var/www/html/local/).
      ⤷ Download this repository as ZIP. On your Moodle instance, log in as an administrator and go to Site Administration > Plugins > Install plugins. Click Choose a file, Upload a file, and select the ZIP file containing the plugin. Click Upload this file and Install plugin from the ZIP file. Then, click Continue and Continue.
    • Method b: manual installation. This method only works if you have access to a shell on the server where Moodle is running.
      ⤷ Obtain the contents of this repository by downloading it as ZIP or cloning it with Git. Create the directory harpiaajax/ under the local/ subdirectory of Moodle (the path will usually be /var/www/html/local/harpiaajax/) and move the contents of this repository to the newly created directory.
  3. On the web interface as an administrator, click Continue, Upgrade Moodle database now and Continue.
  4. Under New settings - HarpIA AJAX, fill in the value of HarpIA Model Gateway address (e.g. http://localhost:42774), which must be accessible from the Moodle server, and click Save changes. This setting will be available at Site administration > Plugins > Local plugins > HarpIA AJAX, in case it needs to be updated later.
Clone this wiki locally