Forums | Mahara Community

Support /
Installing mahara


Derrick Ward's profile picture
Posts: 13

21 December 2017, 17:35

Hello

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

unset($CFG);
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

Derrick Ward's profile picture
Posts: 13

21 December 2017, 17:47

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

Robert Lyon's profile picture
Posts: 773

22 December 2017, 11:18

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

Cheers

Robert

Derrick Ward's profile picture
Posts: 13

06 January 2018, 17:19

thanks Robert

Should I install on ubuntu server or ubuntu desktop.

Derrick

Kristina Hoeppner's profile picture
Posts: 4863

08 January 2018, 8:12

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. https://help.ubuntu.com/community/ServerFaq#What.27s_the_difference_between_desktop_and_server.3F

Cheers

Kristina

 

5 results