I can't install moodle

I can't install moodle

by Raimon Bosch -
Number of replies: 8

Hello,

I'm trying to install moodle for a project. After a time installing php+MySQL+Apache I can execute the install.php that gives the software of moodle.

In the last step where I put my MySQL properties (user,pass,databasename,..) the process of install returns to me a page in blank with no code.

I think that it could be because I don't configure all the options necessary in my php.ini, and may be because I don't have the GD library.

What are the options php.ini that are necessary to be activated? And how I can install the GD library? And if the error can be for other reason, what is it?

Average of ratings: -
In reply to Raimon Bosch

Re: I can't install moodle

by m webb -

Hi,

I get the same thing. I had a perfect install then I tried to run it a few days later and it would not work.

No matter how I tried to install it again it keeps giving me caution on GD version and a blank page after the database config page.

I am running XP pro 512MB Ram, Moodle 1.8, Apache  2.24, PHP 5.21, MySQL 5.037.

As I said it installed fine the very first time.

To enable GD go to PHP.ini and make sure that the "extension=php_gd2.dll" does not have the ";" before it means its closed.

But mine is OK.

I have asked support for help.

I'll let you know.

In reply to m webb

Re: I can't install moodle

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
again, lack of GD won't stop you installing.

This is specific to windows. You also have to make sure that php_gd2.dll is copied to somewhere on your search path (/winnt/system32 for example) or it won't get found. There's a specific forum for Windows server issues - the guys there know a lot more than me smile
In reply to Howard Miller

Re: I can't install moodle

by Dennis Flynn -
just for future forum searchers, I would recommend setting the PHPRC environment variable instead of manually copying files into your system32 directory. Search the Internet and/or php.net for PHPRC for more info
In reply to Raimon Bosch

Re: I can't install moodle

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It's unlikely that GD is the problem. The best route is to find out what is actually causing the problem, so your first step is to make sure logging is switched on in php.ini and check the logs after your install fails. There's information in the Installation FAQ:

http://docs.moodle.org/en/Installation_FAQ#Why_is_a_particular_page_blank_or_incomplete.3F

If you haven't already you should also read through the installation instructions - there's a lot of useful information there:

http://docs.moodle.org/en/Installing_Moodle

How you install GD depends on how you installed PHP. If it was a binary package (e.g., part of a linux distro) there is almost certainly another package to get.

This makes me think that you may not have the MySQL library (for PHP) either, so you should check that first.

Let us know how you get on smile
In reply to Howard Miller

Re: I can't install moodle

by Raimon Bosch -

Finally, I decided to download the moodle version 1.9 dev with XAMP for windows. With this configuration my machine pass all the tests php,gd,etc.. But when I select the directory where I can save my data moodle installation returns me a page blank. Only is in my machine, because in other pcs the installation is correct.

I suppose that I have to change the permisions of this directory, but yesterday I dind't have errors at this installation's point.

In reply to Raimon Bosch

Re: I can't install moodle

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Almost certainly you will need to change the permissions. It's quite possible that they may need to be different.

Again, if you want to be sure check the "Why is the page blank" FAQ entry above, and see what the logs say.

I don't think you are far away from having it working smile
In reply to Howard Miller

Re: I can't install moodle

by Raimon Bosch -

Hi Howard,

I opened my log in moodle/apache/logs/error.log. I suppose that is this.

[Wed Apr 18 00:36:18 2007] [notice] Apache/2.2.3 (Win32) mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0 configured -- resuming normal operations
[Wed Apr 18 00:36:18 2007] [notice] Server built: Sep 30 2006 21:24:06
[Wed Apr 18 00:36:19 2007] [notice] Parent: Created child process 1648
[Wed Apr 18 00:36:20 2007] [notice] Child 1648: Child process is running
[Wed Apr 18 00:36:20 2007] [notice] Child 1648: Acquired the start mutex.
[Wed Apr 18 00:36:20 2007] [notice] Child 1648: Starting 50 worker threads.
[Wed Apr 18 00:36:20 2007] [notice] Child 1648: Starting thread to listen on port 443.
[Wed Apr 18 00:36:20 2007] [notice] Child 1648: Starting thread to listen on port 80.

When the log arrived to "Starting thread to listen on port 80", seems that is the moment when moodle install is blocked. Probably my port is blocked for something. Today I will do more test with my WAMP, isntead XAMPP of moodle.

Thanks,

In reply to Raimon Bosch

Re: I can't install moodle

by Raimon Bosch -

With WAMP, the error occur a little before where I am configuring the MySQL properties. The log is blocked at same point:

[Wed Apr 18 00:52:02 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Apr 18 00:52:02 2007] [notice] Child 3652: Exit event signaled. Child process is ending.
[Wed Apr 18 00:52:03 2007] [notice] Child 3652: Released the start mutex
[Wed Apr 18 00:52:04 2007] [notice] Child 3652: Waiting for 250 worker threads to exit.
[Wed Apr 18 00:52:04 2007] [notice] Child 3652: All worker threads have exited.
[Wed Apr 18 00:52:04 2007] [notice] Child 3652: Child process is exiting
[Wed Apr 18 00:52:04 2007] [notice] Parent: Child process exited successfully.
[Wed Apr 18 00:52:08 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Wed Apr 18 00:52:08 2007] [notice] Server built: Jan  9 2007 23:17:20
[Wed Apr 18 00:52:08 2007] [notice] Parent: Created child process 2624
[Wed Apr 18 00:52:08 2007] [notice] Child 2624: Child process is running
[Wed Apr 18 00:52:08 2007] [notice] Child 2624: Acquired the start mutex.
[Wed Apr 18 00:52:08 2007] [notice] Child 2624: Starting 250 worker threads.
[Wed Apr 18 00:52:08 2007] [notice] Child 2624: Starting thread to listen on port 80.

I checked also my php log(with WAMP is more accesible), and is correct.