Actions

System Administrator's Guide/Installing Mahara/

From Mahara Wiki

< System Administrator's Guide‎ | Installing Mahara
Revision as of 12:40, 10 November 2015 by [email protected] (talk | contribs)
  1. Download the latest XAMPP software from https://www.apachefriends.org
  2. Once downloaded, install the software by following the steps on the screen.
  3. Once installed, make sure you have turned on Apache and MySQL from the XAMPP Control Panel

Xampp control panel.png

  1. On your favorite browser, go to http://localhost and you should see the XAMPP welcome page.
  1. Once your server is up and running with MySQL, we need to create a Mahara database. Head to http://localhost/phpmyadmin which should log you in to your mysql database . Once in, create a new database called 'mahara' having a collation of utf8_general

Mahara phpmyadmin create dn.png

  1. Clone the latest version of Mahara from https://github.com/MaharaProject/mahara.git
  1. . The next step is to configure all the variables in the config-dist.php file. You need to complete this file with the values of your installation:

$cfg->dbtype = 'mysql5'; $cfg->dbhost = 'localhost'; $cfg->dbport = null; $cfg->dbname = 'mahara'; // this is the name of the mahara database $cfg->dbuser = 'root'; // this is usually the default user for the database administrator. $cfg->dbpass = ; If you have added a password to your root user, you should add the password here. $cfg->dbprefix = ;

You need to configure the paths for the wwwroot and dataroot directories with the values in your installation. In my case: $cfg->wwwroot = 'http://localhost/mahara/'; and $cfg->dataroot = 'C:\\xampp\\data'; (the double slashes are important).

Leave the rest of the config-dist file as it is. Once you have saved the file, rename it as 'config.php'

  1. Create a VirtualHost file under XAMPP to make sure your http://localhost points to C:\xampp\htdocs\mahara\htdocs\ .More info can be found System_Administrator's_Guide/Installing_Mahara#Apache_Configuration