Forums | Mahara Community

Support /
Installing mahara

Derrick Ward's profile picture
Posts: 6

21 December 2017, 5:35 PM


I have just installed Mahara 17.10 on mac osx10.9.5 running mamp pro with php myadmin 4.4.10.  When I try to connect to localhost/mahara I get a blank screen and nothing happens i.e. I don't get the option to install.

I have configured the database through php myadmin4.4.10 as utf8_bin

The privileges are set as user = mahara / host = localhost / type = database-specific / privileges = ALL PRIVILEGES / Grant = Yes

I don't have any tables in the database.

Can anybody advise on a troubleshooting process

See below for config.php file;

SyntaxEditor Code Snippet

<?php  // Mahara configuration file

global $CFG;
$CFG = new stdClass();

$CFG->dbtype    = 'mysqli’;
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'mahara’;
$CFG->dbuser    = ‘mahara’;
$CFG->dbpass    = ‘mahara’;
$CFG->prefix    = 'mhl_’;
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbport' => '',
  'dbsocket' => '1',

$CFG->wwwroot   = 'thishasbeenremoved';
$CFG->dataroot  = '/Applications/MAMP/data/maharadata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

require_once(dirname(__FILE__) . '/lib/setup.php');

// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!




Derrick Ward's profile picture
Posts: 6

21 December 2017, 5:47 PM

I have also created the Applications\mamp\data\maharadata directory

Robert Lyon's profile picture
Posts: 377

22 December 2017, 11:18 AM

Hi Derrick

The config.php information you posted looks to be a Moodle config file

Mahara and Moodle have some similar configuration elements but Mahara does not have a lib/setup.php file.

To make a config file for Mahara begin by copying the htdocs/config-dist.php to htdocs/config.php and fill in the required details.

Then look in htdocs/lib/config-defaults.php to see if there are any settings you need to override.

Also please note that it is recommended to run Mahara17.10 on ubuntu/linux rather than osx as it is more fully integrated/tested with that operating system



Derrick Ward's profile picture
Posts: 6

06 January 2018, 5:19 PM

thanks Robert

Should I install on ubuntu server or ubuntu desktop.


Kristina Hoeppner's profile picture
Posts: 3441

08 January 2018, 8:12 AM

Hello Derrick,

If you are installing Mahara on a server, I would say that Ubuntu server would be the better option as it contains server-related packages.




5 results