Install gives me white page when config.php is setup

Install gives me white page when config.php is setup

by Michael Curtis -
Number of replies: 3

Hi,

I have installed Moodle 2.5 on my Windows 2008 r2 box. PHP is 5.4.5. I have run some test php code and it does connect to the MS SQL database server that I have put the Moodle database on. The Moodle database is still empty. The SQL server is not local to the IIS server.

When I remove the config.php, I get the normal setup wizard. Below is my database config settings. What have I missed?

 

$CFG->dbtype = 'sqlsrv'; // 'pgsql', 'mysqli', 'mssql', 'sqlsrv' or 'oci'
$CFG->dblibrary = 'native'; // 'native' only at the moment
$CFG->dbhost = 'ip address'; // eg 'localhost' or 'db.isp.com' or IP
$CFG->dbname = 'moodle_staging'; // database name, eg moodle
$CFG->dbuser = '***'; // your database username
$CFG->dbpass = '*****'; // your database password
$CFG->prefix = 'mdl_'; // prefix to use for all table names
$CFG->dboptions = array(
'dbpersist' => true, // should persistent database connections be
// used? set to 'false' for the most stable
// setting, 'true' can improve performance
// sometimes
'dbsocket' => false, // should connection via UNIX socket be used?
ecustom path
// here set dbhost to 'localhost',
// (please note mysql is always using socket
// if dbhost is 'localhost' - if you need
// local port connection use '127.0.0.1')
'dbport' => '1433', // the TCP port number to use when connecting
// to the server. keep empty string for the
// default port

Any help would be most welcome.

Best wishes

Michael

 

Average of ratings: -
In reply to Michael Curtis

Re: Install gives me white page when config.php is setup

by Guillermo Madero -

Hi Michael,

So the config.php file gets to be created, but then the installation hangs at the database tables creation step?

Is your server configured to let time-consumig processes run (i.e not to time-out)?

http://docs.moodle.org/25/en/Using_the_Microsoft_SQL_Server_Driver_for_PHP
http://docs.moodle.org/25/en/Installing_MSSQL_for_PHP
http://docs.moodle.org/25/en/Installation_FAQ#Installation_hangs_when_setting-up_database_tables

In reply to Guillermo Madero

Re: Install gives me white page when config.php is setup

by Michael Curtis -

Hi Guillermo,

No the config.php is not created by the wizard. I renamed the one that was there and I am filling in the details myself. From what I can see online it should then give me a Microsoft SQL installer page?

Best wishes

Michael

 

In reply to Michael Curtis

Re: Install gives me white page when config.php is setup

by Michael Curtis -

Hi Guillermo,

I have fixed it. I had downloaded the Windows version which doesn't seem to support MSSQL. I have downloaded the non Windows version and now I have the option in the wizard for MSSQL.

Best wishes

Michael