Forums | Mahara Community

Support /
Mahara install - does not include xml extension


Derrick Ward's profile picture
Posts: 13

27 February 2018, 19:56

Hello

I am trying to install Mahara and am getting the following error message

"Your server configuration does not include the xml extension.  Mahara requires this in order to parse XML data from a variety of sources.  Please make sure that it is located in php.ini or install it if it is not installed."

 

See below for config.php file;

 

$cfg->dbtype = 'mysql';
$cfg->dbhost = 'localhost';
$cfg->dbport = null; // Change if you are using a non-standard port number for your database
$cfg->dbname = 'maharadb';
$cfg->dbuser = 'maharauser';
$cfg->dbpass = 'linux';

/**
* dataroot: The server directory where uploaded files are stored
*
* This is an ABSOLUTE FILESYSTEM PATH. This is NOT a URL.
* For example, valid paths are:
* * /home/user/maharadata
* * /var/lib/mahara
* * c:\maharadata
* INVALID paths:
* * http://yoursite/files
* * ~/files
* * ../data
*
* This path must be writable by the webserver and outside the document root (the
* place where the Mahara files like index.php have been installed).
* For security purposes, Mahara will NOT RUN if this is inside your document root.
*/
$cfg->dataroot = '/var/www/html/mahara/upload/';

 

Derrick Ward's profile picture
Posts: 13

27 February 2018, 19:59

I am running ubuntu 16.04 with mahara 17.10

 

See link below to php.ini file;

https://drive.google.com/drive/folders/1OwOYN2S92Xumsa0Z9ntAafYS7oNUlUW0?usp=sharing

Derrick Ward's profile picture
Posts: 13

27 February 2018, 20:27

Hello

I have been able to get past the error message above but am now getting the following;

Mahara: Site unavailable
Mahara could not connect to the application database.

* If you are using Mahara, please wait a minute and try again
* If you are the administrator, please check your database settings and make sure your database is available

The error received was:
mysqli error: [1045: Access denied for user 'maharauser'@'localhost' (using password: YES)] in CONNECT(localhost, 'maharauser', '****', maharadb)

Robert Lyon's profile picture
Posts: 758

28 February 2018, 7:43

Hi Derrick,

It looks as though the credentials you are using to connect to the MySQL server are incorrect. Are you able to test via commandline/phpmyadmin to see if you can actually connect to the database?

You may need to specify the correct port or if the MySQL server is not on localhost you will need to give it the correct domain name/IP address

Cheers

Robert

4 results