- Deploy Mahara Unit
- Prepare the Mahara database
- Complete the unit configuration
- Start the unit
- Perform the installation
Deploy Mahara Unit
Using the GLServer command line utility
gl --deploy glitch-mahara
Prepare the Mahara Database
The Mahara platform necessitates the utilisation of either a PostgreSQL or MySQL database. One option to satisfy this requirement is to create a new database on an existing database server. An alternative solution would be to deploy the Glitch-MariaDB instance.
Please take into consideration that it may be necessary to refine access controls based on your specific circumstances. For more information on this topic, please refer to the MySQL documentation located at https://dev.mysql.com/doc/.
The procedure for creating a database and assigning user permissions may differ with your version of mysql / mariadb please see https://docs.oracle.com/en/industries/communications/cloud-native-core/2.2.0/cnc_install/create-mysql-database-and-user.html for more information.
mysql>CREATE database mahara;
mysql>CREATE USER 'myuser'@'myhostserver' IDENTIFIED WITH mysql_native_password BY 'mypassword';
mysql>GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhostserver' WITH GRANT OPTION;
mysql>FLUSH PRIVILEGES;
Edit the following file, adding the database details
vi /var/glitch-units/glitch-mahara/data/var/www/html/config.php
$cfg->dbtype = 'mysql';
$cfg->dbhost = 'mysqlserver';
$cfg->dbport = null; // Change if you are using a non-standard port number for your database
$cfg->dbname = 'mahara';
$cfg->dbuser = 'myuser';
$cfg->dbpass = 'mypassword';
Complete the unit configuration
Edit the following files to meet your requirements
/var/glitch-units/glitch-mahara/glitch/config/enviroment
/var/glitch-units/glitch-mahara/glitch/config/ports
/var/glitch-units/glitch-mahara/glitch/config/unit.conf
Start the unit
gl -s glitch-mahara
Perform the installation
Using your web browser visit the site

Click "Install Mahara"

Once the installation is complete click "continue"

Enter a new admin password and admin email address and click "submit"

Installation is now complete
