Install stops with blank page after asking for directories

Install stops with blank page after asking for directories

by Jon Holmes -
Number of replies: 34
Hi,

I am a first-time Moodler, I am trying to install Moodle on my home PC (running Vista, if that makes a difference) to have a play prior to starting at a UK College where they use Moodle (Migrating from Bb)

I downloaded the latest Windows version Moodle 1.9 and unpacked it, everything seems OK and used the 'Start Moodle' exe to run it - the web server started OK, I checked the Apache log file and it is listening

I typed http://localhost which started the Moodle install, the page asking for the Directory locations was displayed (I accepted the defualts) but after that nothing, the browser waits for a while then displays a blank page (the 2nd item in the list was greyed out, seems strange ?!)

I have re-installed twice, same problem - I've also disabled Norton firewall and Intrusion Protection in case they were causing the problem, but same result

Any ideas anyone?

I looked through the other forum posts and others seem to be having similar problems, but I didn't see an answer I could a) understand or b) use. It seems that at this point the install is trying to create config.php - I checked afterwards and this file isn't there
Average of ratings: -
In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by Mauno Korpelainen -

Vista makes difference... http://moodle.org/mod/forum/discuss.php?d=100131 - read first Ken's link. The only problem is Windows Vista User Account Control (UAC) - it does not allow moodle to create that config.php so you must create it yourself and change properties of moodledata folder like explained in http://docs.moodle.org/en/Windows_installation_using_XAMPP#Windows_Vista

In reply to Mauno Korpelainen

Re: Install stops with blank page after asking for directories

by Jon Holmes -
Thanks 4 your help Mauno,

I have tried the steps in http://docs.moodle.org/en/Installing_Moodle_on_Windows_Vista

I created the moodledata directory and changed the permissions but they haven't worked

I also disabled UAC on Vista

I've attached the config.php file I created, which was largely copied from

Cheers,
jon
In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by Mauno Korpelainen -
I'm not sure if it is necessary at all to disable UAC - changing permissions of moodledata folder from security tab or even sharing tab should work - at least with XAMPP. You may need UAC in other Windows programs - it's one of the main security features of Vista.
In reply to Mauno Korpelainen

Error for Moodle Installation on Vista

by Aranganathan B -

Hi,

That's Correct XAMPP is a Apache Server. We have install on IIS 7.0 in Vista. Could u have any idea. Could u give ur mail id

Thank U

Aranganathan

arangu_mca@yahoo.co.in

In reply to Mauno Korpelainen

Re: Install stops with blank page after asking for directories

by Jon Holmes -
Ignore last post - forgot to rename txt file to php - dumb or what!?

However using the following config.php
<?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = 'password';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';

$CFG->wwwroot = 'http://localhost';
$CFG->dirroot = 'C:\Moodle19\server\moodle';
$CFG->dataroot = 'C:\Moodle19\server\moodle\moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

This gives the following error -

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

Looks OK to me!

Any ideas?


Average of ratings: Useful (1)
In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by Mauno Korpelainen -

One reason could be that mysql does not have a user "root" with password "password"  or mysql is not running or database "moodle" has not been created to mysql. You could create them with phpmyadmin...

If this were a production site moodledata folder should be also outside localhost = web root = 'C:\Moodle19\server\moodle'

It may be easier to install normal XAMPP first, test that it works ( http://localhost ) and then install generic package...

Average of ratings: Useful (1)
In reply to Mauno Korpelainen

Re: Install stops with blank page after asking for directories

by Jon Holmes -
OK then Mauno, now I've installed XAMPP, and followed the instructions in http://docs.moodle.org/en/Windows_installation_using_XAMPP to the letter, i.e. created the moodledata directory, changed the permissions etc. also a database called moodle has been created with phpmyadmin, this has user root with blank password, both Apache and mySQL are running according to the control panel

I downloaded the standard Moodle package from http://download.moodle.org/ and installed it to htdocs, there is a Moodle folder there, however when I type http://localhost/moodle all I get is a list of folders, i.e. I assume that this is because there is not a install.php file there in this download ?!!!

I then tried copying the files from the root of the packaged windows version, but this only gives the original error, i.e. stops after the directories page !!!!! Then I tried creating the config.php file manually as in http://docs.moodle.org/en/Installing_Moodle_on_Windows_Vista -all this did was result in the following error:

unset($CFG); $CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'moodle'; $CFG->dbuser = 'root'; $CFG->dbpass = ''; $CFG->dbpersist = false; $CFG->prefix = 'mdl_'; $CFG->wwwroot = 'http://localhost/moodle'; $CFG->dirroot = 'C:\xampp\htdocs\moodle'; $CFG->dataroot = 'C:\xampp\htdocs/moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode $CFG->unicodedb = true; // Database is utf8 require_once("$CFG->dirroot/lib/setup.php"); // MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES, // RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE. ?>
Warning: require_once(/course/lib.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\moodle\index.php on line 34

Fatal error: require_once() [function.require]: Failed opening required '/course/lib.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\moodle\index.php on line 34


I'll get there eventually, been at this all day !
In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by Mauno Korpelainen -

Jon,

the most important thing with normal XAMPP is to know where web root is - that's the same as localhost. If you have installed XAMPP with Windows installer and XAMPP is started you have most likely started both Apache and Mysql.

You could first stopp / uninstall XAMPP from Control panel and delete all files you have installed. It's better to install only XAMPP first ( download the latest Windows installer from http://www.apachefriends.org/en/xampp-windows.html ) and use browser to find web root: http://localhost or http://127.0.0.1 - if it is not found you must start Apache and mysql first.

If XAMPP is running you should find phpMyAdmin from Tools menu

menu

and be able to create both new user with new password and all priviledges and to create a new database (for example name it to moodle - collation utf8_general_ci and charset utf8) and you can use these values in config.php later.

When Apache is running, mysql is running, php is working, permissions of moodledata folder are correct (you may use whatever name you want) and location / path is correct for webroot, dirroot and dataroot in config.php installing of moodle start and finish without problems in Vista too.

Your Vista may have some conflict with two different installs but if you can't make it to work send me email (check my profile) and I can help you to install moodle tomorrow ( I have Vista vis-à-vis right now but it's almost midnight in Finland...)

In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by Mauno Korpelainen -

In fact the main error might be that your config.php is missing the first tags

<?php

or the row is commented or php is not running because your config.php is just printed. User "root" with empty password may work but it's better to create a new user with some real password...

In reply to Mauno Korpelainen

Re: Install stops with blank page after asking for directories

by Jon Holmes -
You were right about the missing tag !! Thanks for your patience on thissmile
I'll have another go tomorrow, but it seems a bit odd that there is no PHP source files in the root of the standard stand-alone Moodle install file whereas there is in the Windows package i.e. with mySQL, Apache and PHP bundled in ...?

Following is phpmyadmin:
  • Server version: 5.0.51b-community
  • Protocol version: 10
  • Server: localhost via TCP/IP
  • User: root@localhost
  • MySQL charset: UTF-8 Unicode (utf8)
Database 'moodle' is there

This is my config.php file now:
<?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'jonholmes';
$CFG->dbpass = 'button';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';

$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dirroot = 'C:\xampp\htdocs\moodle';
$CFG->dataroot = 'C:\xampp\htdocs/moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode

$CFG->unicodedb = true; // Database is utf8

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

This is the error it gives:

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

If I change the dbuser to root and dbpass to blank again it gives Error 404 file not found when searching for http://localhost/moodle/admin/index.php

In reply to Mauno Korpelainen

Re: Install stops with blank page after asking for directories

by Jon Holmes -
I re-installed Moodle files - it worked !!!!

As I suspected, some were missing from the original unpack - don't know why

Now Moodle install starts, gives error:
Fatal error: Call to undefined method domdocument::load() in C:\xampp\htdocs\moodle\lib\xmldb\classes\XMLDBFile.class.php on line 85

At step http://localhost/moodle/admin/index.php?agreelicense=1&confirmrelease=1

  • Setting up database

No warnings - Scroll to the continue button


(mysql): SHOW TABLES

(mysql): SHOW LOCAL VARIABLES LIKE 'character_set_database'

(mysql): SET NAMES 'utf8'

(mysql): SHOW LOCAL VARIABLES LIKE 'character_set_database'

Is this just me ...?
In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by ilka ilka -
Hi,

I have the same problem, and still trying to solve it. I tried with two different version of moodle, reisntalling too....Did you solve it?

thanks,
Ilka
In reply to ilka ilka

Install stops with blank page after asking for directories

by Aranganathan B -

Hi ilka,

i didn't solve the problem. Could have idea for IIS 7.0?. We are using PHP, MSSQL, IIS 7.0 on Vista. Can have any procedure for that requirements? If have steps pls Send Mail. Can u give ur mail id.

Thanks

Aranganathan

In reply to ilka ilka

Re: Install stops with blank page after asking for directories

by Jon Holmes -
Not yet - which 2 versions did you try?

I tried Moodle 1.9.1 both the last stable and the last official version
In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by ilka ilka -
Hi,
I tried the same versions.

In reply to ilka ilka

Install stops with blank page after asking for directories

by Aranganathan B -

Hi ilka

Could u give the steps? what are the steps your using? Can u give the mail id?

Thanks

Aranganathan

In reply to ilka ilka

Moodle Installation on Vista

by Aranganathan B -

Hi,

We have installed PHP on Vista sucessfully. We have to know the procedure for installing Moodle on MSSQL using IIS 7.0 in Vista. Could you please give me the steps?


Thanks,

Aranganathan

arangu_mca@yahoo.co.in

In reply to Jon Holmes

Re: Install stops with blank page after asking for directories

by Mauno Korpelainen -

You may have some mixed versions of files...

http://moodle.org/mod/forum/discuss.php?d=82044

You may need to comment (add ; before) the extension for domxml  in php.ini - or actually BOTH of the php.ini files in XAMPP:

[path to xampp folder]/php/php.ini
and:
[path to xampp folder]/apache/bin/php.ini

I have not seen this happen but it is easy to get Vista mixed. (I have just done it while testing...big grin )

In reply to Mauno Korpelainen

Re: Install stops with blank page after asking for directories

by ilka ilka -
Thanks!

This works. smile

Ilka
In reply to Mauno Korpelainen

Re: Install stops with blank page after asking for directories

by Jon Holmes -
Hi Mauno,

Thanks for all your help, after commenting out those lines the install worked!

So if I ever get over to Finland I owe you a large beerbig grin!!

Jon
In reply to Jon Holmes

Error for Moodle Installation on Vista

by Aranganathan B -

Hi,

Already I finished that steps. We have to know the procedure for installing Moodle on IIS 7.0 in Vista. Could you please give me the steps?

Thank U

Aranganathan

In reply to Mauno Korpelainen

Moodle Installation on Vista

by Aranganathan B -

Hi,

Could you please give me the steps for MSSQL? Actually we are using the database MSSQL. i.e., Steps for IIS 7.0 or  Apache server using on MSSQL Server 2005. Not for Mysql.

Thanks

Aranganathan 

In reply to Mauno Korpelainen

Install Moodle on Vista

by Aranganathan B -

Hi,

We have installed PHP on Vista sucessfully. We have to know the procedure for installing Moodle on MSSQL using IIS 7.0 in Vista. Could you please give me the steps?


Thanks,

Aranganathan

arangu_mca@yahoo.co.in

In reply to Aranganathan B

Re: Install Moodle on Vista

by Mauno Korpelainen -
Sorry Aranganathan - I can't but you could read documentation from http://docs.moodle.org/en/Installing_MSSQL_for_PHP , use google ( iis7, php, mssql, vista ) and for example ask / send a message to Clark Burns http://moodle.org/user/view.php?id=420817&course=5 or other people in http://moodle.org/mod/forum/discuss.php?d=95322 if they have some new tips. MSSQL is not used very often with moodle and when you want to use also IIS7, PHP5 and Windows Vista you may be the first one to try this...web is full of guides how to install those programs separately - you just need to get the web server to work together with php and database before you try to install moodle. Good luck!
In reply to Mauno Korpelainen

Doubt for Install Moodle on Vista

by Aranganathan B -

Hi,

     I have doubt that can we install Moodle on Vista using MSSQL.This is possible or not? Let me know.

Cheers,

Aranganathan

In reply to Mauno Korpelainen

Doubt for Install Moodle on Vista

by Aranganathan B -

Hi,

     I have doubt that can we install Moodle on Vista using MSSQL.This is possible or not? Let me know.

Cheers,

Aranganathan

In reply to Aranganathan B

Re: Doubt for Install Moodle on Vista

by Mauno Korpelainen -

Well...it should be possible although products of Microsoft have some communication problems with eachother. At least you need Microsoft SQL Server 2005 Service Pack 2 http://www.microsoft.com/downloads/details.aspx?FamilyId=d07219b2-1e23-49c8-8f0c-63fa18f26d3a&DisplayLang=en

and read after that

http://www.microsoft.com/sql/howtobuy/windowsvistasupport.mspx

and if you get IIS7 to talk with PHP and MSSQL with IIS manager (probably similar steps as with Windows 2003 server with IIS6 and MSSQL) installing moodle should be possible.

Maybe people in Microsoft Support Center have some "insider information".

In reply to Mauno Korpelainen

Install Moodle on Vista

by Aranganathan B -

Hi,

Can we install Moodle on vista is it possible or not? Expecting your reply

Thanks

Aranganathan

In reply to Aranganathan B

Re: Install Moodle on Vista

by Mauno Korpelainen -

I thought I have answered already several times:

It is possible to install Moodle on Vista 

"Can we install Moodle on vista is it possible or not?" - I don't know...

According to MICROSOFT it is possible to build a web server using Vista, MSSQL 2005 and IIS7. Installing each program and all service packs with configuration of PHP, MSSQL and IIS7 separately takes obviously quite a lot of time. I don't know anybody who has installed moodle on Vista with MSSQL 2005, PHP5 and IIS7 but I hope that somebody has done this and has written a complete guide with nice screenshots.

If you get your server up and running with these products of Microsoft and have given users of your web server permissions to use moodledata folder and have written correct paths, usernames and passwords to config.php of moodle there is most likely no reason why moodle could not work on that server.

In reply to Mauno Korpelainen

Install Moodle on Vista

by Aranganathan B -

Hi Mauno,

Just I shared my issue with you that's all.. and i will try my level best to install moodle on vista. If you come to know regarding this let me know. Keep in touch

Thanks

Aranganathan

In reply to Aranganathan B

Re: Install Moodle on Vista

by Carlos Blanco -
Hi Aranganathan,

Yes, it's possible to install Moddle using vista. I'm actually using Apache, MySQL and Moodle. I use my laptop as a demo unit for my clients and it works fine. It did gave me a hard time installing though. For those who wants to try it, here are the 2 simple steps that I made:

1. Install XAMPP (assuming that you have already downloaded XAMPP and removed IIS from your computer). Please don't use the default settings of XAMPP. Install XAMPP using a different directory like c:\webserver.

2. Check is XAMPP is running properly. If all is good, install Moodle inside the htdocs directory of XAMPP. For this to work, you'll need to access Moodle by using http://127.0.0.1 and not http://localhost! I don't know why but it works.


That's it! Remember, the 2 important things that you need to make sure is install XAMPP using a different directory and access Moodle using http://127.0.0.1. Sorry if I wasnt more detailed on this because I haven't run into any problems yet. Please post ant errors/problems and I'll try to help you guys from there.


Regards

Carlos.
In reply to Carlos Blanco

Re: Install Moodle on Vista

by Mauno Korpelainen -

Hi Carlos,

Aranganathan asked several times this same question in several posts and the first answers were exactly the same as yours - to use XAMPP because it is easy. The problem is that he is trying to install moodle on Vista, MSSQL 2005, PHP5 and IIS7...

I had a link to http://moodle.org/mod/forum/discuss.php?d=73852 in previous link http://moodle.org/mod/forum/discuss.php?d=100131 where Mike Barker gave the same suggestion that http://localhost did not work - it worked for me as well as http://127.0.0.1 but the reason for this kind of non usual behaviour might be that you have tried to install several versions of web server and "localhost" is some way reserved (my guess). I had once a situation where neither of them worked when I had testied 3 different packages and cleaning of all Vista registers was possibly unsuccessful.

In reply to Mauno Korpelainen

Re: Install Moodle on Vista

by Carlos Blanco -
Hi Mauno,

Thanks for the feedback there. I thoughts before was exactly the same as yours about have multiple webservers and all. so I tried installing Moodle 1.9 with a newly installed Vista as a stand-alone.... Still no luck. Moodle 1.8 on the other hand didn't have the same problem. Every time I install 1.8 in Vista, it works right out the box. Hmmm, mystery still remains... I think we should have a new thread for this issue just for the fun if it... hehehehe big grin