Install not generating config.php

Install not generating config.php

by Iande Coutinho -
Number of replies: 12

Hi guys,

  I've followed all of the install steps very close, got apache2, php5 and postgres 8, all working on XP sp2. Did all the necessary steps from the install instruction. First time I go to index.php i get redired to install.php in order to generate the config.php step-by-step. After the step of configuring the database and moodle data directory  i get a blank page, and when i go to check the moodle's webroot i see that it has created the datadir, but no sign of the config.php. If i try to access index.php i go back to install.php and the same problem happens again.

Any help is very much appreciated!

thank you,

Iande

Average of ratings: -
In reply to Iande Coutinho

Re: Install not generating config.php

by Iande Coutinho -

Anyone?!?

 Oh and btw, i've checked apache's error log file, and also postgres' it all seems fine.

thanks again!

In reply to Iande Coutinho

Re: Install not generating config.php

by Iande Coutinho -

Nevermind.. after fidlying a bit.. got it sorted

In reply to Iande Coutinho

Re: Install not generating config.php

by Emad El Gergawe -

how plz

thanks

In reply to Emad El Gergawe

Re: Install not generating config.php

by andy judson -
I've got the same problem, so could you explain what you did to get it working,

Thanks Andy.
In reply to andy judson

Re: Install not generating config.php

by Eric Eberhardt -

Andy,

Make sure your web user has write permissions to the moodle directory. In Linux this would mean that the nobody user (apache user) has to have 775 permission.

In reply to andy judson

Re: Install not generating config.php

by Larry Shield -
Look into your htdocs folder and rename the index.html to something like xampp.html and try again. The xampp control page is coming up ad the default page. Rename the file and things should (Ha, Ha) go forward
In reply to Larry Shield

Re: Install not generating config.php

by andy judson -
Hi Larry, i've tried your suggestion and it made no difference..

The data directory is successfully created - so would suggest not a permissions thing, plus this is not usually an issue for apache on windows.

After providing the dbase connection settings, i just get the blank page, no database tables are created.  One obvious concern i have is the connection type i have to choose is postgres 7, but i'm using postgres 8. 
In reply to andy judson

Re: Install not generating config.php

by Larry Shield -
Do you have a config_dist.php in the htdocs directory? If not, there may have been a problem in the unzipping of moodle. If it is there, just edit it to add the correct pointers. The main pointers you need are:

$CFG->dbtype    = 'mysql';       // mysql or postgres7 (for now)
$CFG->dbhost    = 'localhost';   // eg localhost or db.isp.com
$CFG->dbname    = 'moodle';      // database name, eg moodle
$CFG->dbuser    = 'root';    // your database username
$CFG->dbpass    = '';    // your database password
$CFG->prefix    = 'mdl_';        // Prefix to use for all table names

$CFG->wwwroot   = 'http://example.com/moodle';

$CFG->dirroot   = '/home/example/public_html/moodle';
$CFG->dataroot  = '/home/example/moodledata';


In reply to Larry Shield

Re: Install not generating config.php

by andy judson -
I have the config-dist.php file, i've changed the file to used the settings it should, i then revisit the install.php and it again goes to the blank page, - but also the settings it lists differ are the default ones not the ones in config-dist.php....

I also tried to rename it to the config.php and access the page directly, but it also just gives me a blank page.... ?????
In reply to andy judson

Re: Install not generating config.php

by andy judson -
There seems to be lots of threads actively discussing the blank page after install... but all for different reasons. What i really don't get is that i've had moodle working on this server before, but i recently had to do lots of reconfiguration / upgrades.

Anyway, i've now also tried to setup connecting to a mysql (v4.1) database, but it fails. I noticed in another thread that the version of php could be problem with the password authentication in mysql. I was running php 4.3, i've tried upgrading to 5.0.4 and i've just dropped back down to 4.4.0.  Also, mentioned in another thread is use of switching on debuging by commenting out line 36 in \lib\setup.php - with this done i got no error messages on either version of php with postgres as the database - just the beloved blank page.  If i try with an mysql database, php 5 returns an warning about a function not know, and php 4.4.0 returns an access denied warning and a header update warning.

I'm totally lost with this ?

Is there any concrete requirements (ie. not the useless ones on the moodle doc site) that actually say what versions are required for what version of moodle.

Oh, and i've just tried moodle 1.4.2 but its also not working.... i must be missing something
In reply to andy judson

Re: Install not generating config.php

by andy judson -
Sorry i was mistaken, the warning message from php5 and moodle 1.5 was actually a fatal error: "Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\moodle\lib\adodb\drivers\adodb-mysql.inc.php on line 339"
In reply to andy judson

Re: Install not generating config.php

by John Papaioannou -
PHP 5 doesn't come with MySQL installed as standard. You have to install it manually. This means at the very least editing php.ini and removing the comment from the line which reads ;extension=mysql.dll (or something like that, don't remember exactly).