Localhost install stalled with blank admin page

Localhost install stalled with blank admin page

by Stephen Overall -
Number of replies: 13
Hi:

Earlier today I successfully installed the Moodle 1.9.5+ standard package downloaded today on my commercial shared host IP server with zero problems. That was easy. smile

But I seem to be having a problem installing a localhost copy of Moodle 1.9.5+ (standard package) on my XP desktop. I already have the XAMP package with PHP 5 and MySQL installed and my localhost installs of Drupal and WordPress are up and working fine.

I can run the Moodle file install.php fine and the screens whiz by with "successful" table setups in the database, BUT when the script gets to the point of presenting me with the admin page, I get hung up with a blank page at...

http://localhost/moodle1/admin/index.php

...and nowhere to go. Going to http://localhost/moodle1/login returns a "No site found" error message.

PHPMyAdmin shows the database filled by the script with 198 tables. And the script creates this config.php file...

<?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle1';
$CFG->dbuser = '*******'; // the correct dbuser filled in
$CFG->dbpass = '******'; // the correct dbpass filled in
$CFG->dbpersist = false;
$CFG->prefix = '';

$CFG->wwwroot = 'http://localhost/moodle1';
$CFG->dirroot = 'C:\xampp\htdocs\moodle1';
$CFG->dataroot = 'C:\xampp/data_moodle1';
$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.
?>

I've tried deleting the config.php, dropping the database tables, and reinstalling, but I get the same behavior and hang up.

I tried Mary Evans' suggestion of trying the install with IE (I, too, had been using Firefox), but I encounter the same problem.

Any ideas anyone?

Maybe the situation will look different to me in the morning. It often does.

Thanks,

Steve
Average of ratings: -
In reply to Stephen Overall

Re: Localhost install stalled with blank admin page

by Paul Webster -
For kicks, just try http://localhost/ or http://localhost/index.php
without the moodle. If your moodle folder is set as your webroot by apache then that will be where it sends you.

I reinstalled moodle a couple times before I discovered that I was just off by one step on the web address.

Good luck

In reply to Stephen Overall

Re: Localhost install stalled with blank admin page

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Steve,

Just to put you straight, I didn't actually install Moodle using IE , I only went to see if I could access my site in IE after it had stalled in FireFox at the same place your's stopped as it turned out.

All I did was type in my URL in the IE browser and hey presto! it carried on from where it was left hanging in FireFox. By this time I had both browsers open. After completing the install via IE (that is setting up the admin page) it all worked well in either browser!

I still continue to work in FireFox since it is usually the better of the two, from a web designers point of view, that is!

Anyway...I hope you get your Moodle sorted soon?

Cheers

Mary


In reply to Stephen Overall

Re: Localhost install stalled with blank admin page

by Stephen Overall -
Hi:

OK, I'm back rested and fed. I've just finished trying to install twice more and I'm running into the same blank wall or in this case page. Let me run down what happens (and doesn't happen) for me.

I'm working with Moodle 1.9.5+ (Build: 20090716). I already have a working installation of Xampp on an XP desktop. Apache, MySQL, and PHP are working-- I can access my already installed WordPress and Drupal localhost sites and all seems well.

I've copied the Moodle files into C://xampp/htdocs/moodle1

I've created an empty MySQL database named "moodle1"

I'm using Firefox to access http://localhost/moodle1/install.php

The install script runs and takes me through a "Choose a language" screen, then a "Checking Your PHP Settings" screen (all passes), then "Confirm locations of this Moodle installation" which for my situation is...

web address = http://localhost/moodle1
moodle directory = C:\xampp\htdocs\moodle1
data directory = C:\xampp\data_moodle1

**BTW** the script actually presents me with "C:\xampp/data_moodle1". I'm assuming that forward slash is not correct, yes? So I changed it to a backslash. Correct?

Then I get the "Configure the database" screen

Type= MySQL
Host server = "localhost"
database = "moodle1"
user = "***" (correct one used)
password = "****" (correct one used)
tables_prefix = (I'm not using one, so left this blank)

Then the Server Checks screen = all OK except for CURL and OpenSSL not installed. I don't need Moodle Networking for my private localhost setup.

Then the "Download language pack" screen. I keep going.

Then the "Config.php has been successfully created" screen and message.

So far all this is through http://localhost/moodle1/install.php

Pressing the continue button brings me to the "Copyright notice" screen displayed via http://localhost/moodle1/admin/index.php --I press "Yes".

Then the "Current release information" screen = Moodle 1.9.5+ (Build: 20090716)

Then I get all the database table setup screens-- seven in all, I think, ending with "Setting up plugin tables". The bottom of that screen reads "Paypal tables have been setup correctly."

It's when I press the Continue button on this last page that THEN I am presented with a totally blank page (even the page source is empty) and I'm left in limbo.

At this point (or some point) shouldn't I have been presented with an Admin page where I could set up my Admin user account and site name, etc.? That's what happened when I successfully set up this same Moodle package on my real website on my Internet Provider shared hosting service. But I haven't yet seen that Admin screen in trying to install the same Moodle package on my local machine.

So I'm left with a blank page at the URL "http://localhost/moodle1/admin/index.php" and I've tried various versions of that address....

http://localhost/moodle1/admin/
http://localhost/moodle1/admin
http://localhost/moodle1
http://localhost/moodle1/index.php
http://localhost/moodle1/

...but every time I get returned to http://localhost/moodle1/admin/index.php with a completely blank page.

I'm stumped. Any suggestions? (Sorry to write so much!) Thanks for any help.

Steve


In reply to Stephen Overall

Re: Localhost install stalled with blank admin page

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
I wish I could offer advice...solutions...a quick-fix even...but sadly I can't.
The forward/backward slash might be the culprit...who knows!
Back in the good old days of DOS & FORTRAN I could perhaps have been some help.

I trust help will be on it's way soon.

Take care

Mary

In reply to Stephen Overall

Re: Localhost install stalled with blank admin page

by Stephen Overall -
SUCCESS!

After poking through the threads on this forum, I found this "quick and dirty" solution posted by Peter Shanks here...

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

...which worked like a charm for my situation.

Apparently this function call in admin/index.php on line 471...

//upgrade_RPC_functions("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards

...was what was hanging up the install.php script. I'm new to Moodle, but I'm surmising (fancy word for guessing or making something up) that the Remote Procedure Call wasn't working perhaps because in my XAMPP localhost private desktop sandbox I don't have CURL or OpenSSL installed which Moodle complained about earlier in the install routine.

Once I commented out that single line as Peter Shanks suggested, my install.php script sailed through to completion, I got to the Admin setup page, and finally arrived at the front page of my new Moodle site. I wouldn't usually "hack" a core script, but for a private test site no harm done (I hope-- I'll see). Full cure: install CURL and OpenSSL PHP modules as on my real shared hosting site and the function and install routine would work as is.

Thanks, Peter and all. big grin
In reply to Stephen Overall

Re: Localhost install stalled with blank admin page

by sean relleve -

i have the same problem...with blank admin/install.php page! when i opened and looked for the

//upgrade_RPC_functions("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards

 i can't seem to find it in install.php

any help will be much appreciated.

In reply to sean relleve

Re: Localhost install stalled with blank admin page

by Daniel Conley -
I'm also having the exact same problem. I installed Apache 2.2, php 5.3.2 and mysql 5.1.48 on my Windows 7 PC and then tried to install the Moodle 1.9.9+ build.

It went through the first few installation screens fine and then hung up with a blank screen displaying http://localhost/install.php

I also tried commenting out the upgrade_RPC_functions("$CFG->wwwroot/$CFG->admin/index.php") but the installation still stops with a blank page.

I installed Apache, php and mysql separately because I'm also doing testing on other projects and would prefer not to install the Windows XAMPP version.

Any ideas?
In reply to Daniel Conley

Re: Localhost install stalled with blank admin page

by Tom Ridge -
Did anyone find a fix for this?

On a clean kubuntu install, running

sudo apt-get install moodle


and then going to localhost/moodle and starting the installation *always* results in a blank page for me, title "setting up plugin tables"

Thanks


Tom
In reply to Tom Ridge

Re: Localhost install stalled with blank admin page

by Daniel Conley -
Tom check out the solution I implemented suggested by Daniel Del Rio on this thread:

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

I'm running Moodle on a local host too.
In reply to Tom Ridge

Re: Localhost install stalled with blank admin page

by Tom Ridge -
Follow up:

Two solutions were suggested:


* editing admin/install.php see eg here:

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


* editing install.php see eg here:

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


Unfortunately neither approach was successful. This is on a clean install of kubuntu 10.04. Oh dear.

Of course, it may be a kubuntu/ubuntu package bug. But in this case, one would expect at least an error message from moodle ie this is definitely *at least* a bug in moodle.

I am reverting to kubuntu 9.10 (I recall getting this working at some point).


Thanks

Tom