Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 47350

Installation Moodle with Oracle database

$
0
0
by Marin Sok.  

Does anyone has config.php for the moodle installation with Oracle?

I was not able to install through the GUI.

Here is the error message via GUI installation.

Error: Database connection failed

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php

( ! ) Warning: oci_new_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and LD_LIBRARY_PATH are set and point to the right directories in /var/www/html/moodle234oracle/lib/dml/oci_native_moodle_database.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0001254776{main}(  )../install.php:0
20.01742856328install_db_validate(  )../install.php:265
30.01742856480oci_native_moodle_database->connect(  )../installlib.php:184
40.01752874296oci_new_connect(  )../oci_native_moodle_database.php:191
( ! ) Warning: oci_new_connect(): Error while trying to retrieve text for error ORA-01804 in /var/www/html/moodle234oracle/lib/dml/oci_native_moodle_database.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0001254776{main}(  )../install.php:0
20.01742856328install_db_validate(  )../install.php:265
30.01742856480oci_native_moodle_database->connect(  )../installlib.php:184
40.01752874296oci_new_connect(  )../oci_native_moodle_database.php:191

 

 

 

but I was able to install through commandline as

#php /moodle/admin/cli/install.php

I could see tables were created under the moodle's acount that I supplied during the installation process.

But when I try to access the page, I got this error message.

 

 

Error: Database connection failed

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php

 

Below is the exact config.php that it was generated prior installation through php commandline.

 

<?php  // Moodle configuration file

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

$CFG->dbtype    = 'oci';

$CFG->dblibrary = 'native';

$CFG->dbhost    = 'test1.test.edu';

$CFG->dbname    = 'moodle';

$CFG->dbuser    = 'user';

$CFG->dbpass    = '123456';

$CFG->prefix    = 'm_';

$CFG->dboptions = array (   'dbpersist' => 0,   'dbport' => 1521, );

$CFG->wwwroot   = 'https://moodle.test.edu/moodle234oracle'; $CFG->dataroot  = '/opt/moodledataoracle'; $CFG->admin     = 'admin';

$CFG->directorypermissions = 02777;

$CFG->passwordsaltmain = 'k&=2<vtbqOao{HD?1gUL6!wm<O)T^l#';

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!

 

 

I might miss the env setting somewhere.

 

 

Thanks!!!


Viewing all articles
Browse latest Browse all 47350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>