Installation problems

Installation problems

by Naceur Bouziani -
Number of replies: 8

Hi Moodlers,

1. First, I would like to thanks the developpers of moodle. Particularly Martin_Dougiamas. They let me experience an interesting situation whith my students. The philosophy of Moodle meets my deep conception about learning : We learn for others and by others. Thanks Martin.

I am writing a report about this experience. It is in french. I can translate the main results and give them to you.

2. I can't install any of the new moodle versions (1.6.1, 1.6.2 or 1.7). The automatic install process just dies after some time ! I thought that have some thing to do with the server, so,  I tryed using another server but the problem seems to be persistant.

The servers I have used are : Xampp and Apache2triad

Could you help me, please ?

Naceur Bouziani  

  

 

Average of ratings: -
In reply to Naceur Bouziani

Re: Installation problems

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
>  The automatic install process just dies after some time

If you give more information, somebody may be able to help you. It is important to detail how far you get through the installation and then what is the last thing that appears on the screen before it "dies".

You may be interested in installing the "Complete Installation Package" from the Moodle downloads page. They will install everything your system needs to run Moodle, including Moodle itself, and are a great way to get started.
In reply to Gordon Bateson

Re: Installation problems

by Naceur Bouziani -

Hi Gordon,

Thank you a lot for your answer ! I downloaded the "Complete Installation Package" from the Moodle download page after reading you.

I experience the same problem. Here with some details :

The first step works well : the script ask for choosing the language

The second step also well : the script check the php settings : the server pass all the tests ( green Pass)

The tird step : I confirm the location of moodle found by the script

Web addresshttp://localhost

 Moodle Directory :

C:\Documents and Settings\naceur\Bureau\MoodleWindowsInstaller\moodle\moodle

 Data Directory :

C:\Documents and Settings\naceur\Bureau\MoodleWindowsInstaller\moodle\moodledata

The problem is at this stage of the process,  as I hit Next It takes some time to give a blanc page without any message !

I will try to install older version 1.5.4+ and see !

Looking forward ...

A bientôt

Naceur

In reply to Naceur Bouziani

Re: Installation problems

by Naceur Bouziani -
Hi Moodlers,

I have succeeded in installing the moodle new versions wich are really a great job.

However
, I think that the automatic configuration ( dialogue between the install.php file and the config.php file ) does not work for everybody ...

I had to open the config.php file and write the settings informations in this file and typing  them...

Have a great day from Charpey, a Small village from French Alpes

Regards,

Naceur
In reply to Naceur Bouziani

Re: Installation problems

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Naceur,
it's great to hear you have Moodle working. You are obviously a resourceful person approve

It would be useful for others who may be having the same problems you originally had, if you could post some information about what settings you changed in "config.php" to get your Moodle working.

best regards
Gordon
In reply to Gordon Bateson

Re: Installation problems

by Naceur Bouziani -

Hi Gordon,

I can try to help even if I am not that good in php ... By discussing with peopole like you and the philosophy of moodle; everybody can learn... and become skillful

... 

1. First, I think that it is important to have an editor installed on your computer. One can download any open source editor.

I have Dev-PHP editor which one can get here :

http://devphp.sourceforge.net/

2. This will help to open the file config-dist.php found in moodle directory

Here is some lines of this file :

...

unset($CFG);  // Ignore this line

//=========================================================================
// 1. DATABASE SETUP
//=========================================================================
// First, you need to configure the database where all Moodle data       //
// will be stored.  This database must already have been created         //
// and a username/password created to access it.                         //
//                                                                       //
//   mysql      - the prefix is optional, but useful when installing     //
//                into databases that already contain tables.            //
//
//   postgres7  - the prefix is REQUIRED, regardless of whether the      //
//                database already contains tables.                      //
//                                                                       //
// A special case exists when using PostgreSQL databases via sockets.    //
// Define dbhost as follows, leaving dbname, dbuser, dbpass BLANK!:      //
//    $CFG->dbhost = " user='muser' password='mpass' dbname='mdata'";    //
//

$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    = 'username';    // your database username
$CFG->dbpass    = 'password';    // your database password
$CFG->prefix    = 'mdl_';        // Prefix to use for all table names

$CFG->dbpersist = false;         // Should database connections be reused?
                 // "false" is the most stable setting
                 // "true" can improve performance sometimes


//=========================================================================
// 2. WEB SITE LOCATION
//=========================================================================
// Now you need to tell Moodle where it is located. Specify the full
// web address to where moodle has been installed.  If your web site
// is accessible via multiple URLs then choose the most natural one
// that your students would use.  Do not include a trailing slash

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


//=========================================================================
// 3. SERVER FILES LOCATION
//=========================================================================
// Next, specify the full OS directory path to this same location
// Make sure the upper/lower case is correct.  Some examples:
//
//    $CFG->dirroot = 'c:\program files\easyphp\www\moodle';    // Windows
//    $CFG->dirroot = '/var/www/html/moodle';     // Redhat Linux
//    $CFG->dirroot = '/home/example/public_html/moodle'; // Cpanel host

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


//=========================================================================
// 4. DATA FILES LOCATION
//=========================================================================
// Now you need a place where Moodle can save uploaded files.  This
// directory should be readable AND WRITEABLE by the web server user
// (usually 'nobody' or 'apache'), but it should not be accessible
// directly via the web.
//
// - On hosting systems you might need to make sure that your "group" has
//   no permissions at all, but that "others" have full permissions.
//
// - On Windows systems you might specify something like 'c:\moodledata'

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


//=========================================================================
// 5. DATA FILES PERMISSIONS
//=========================================================================
// The following parameter sets the permissions of new directories
// created by Moodle within the data directory.  The format is in
// octal format (as used by the Unix utility chmod, for example).
// The default is usually OK, but you may want to change it to 0750
// if you are concerned about world-access to the files (you will need
// to make sure the web server process (eg Apache) can access the files.
// NOTE: the prefixed 0 is important, and don't use quotes.

$CFG->directorypermissions = 02777;

...

3. According to where your moodle directory and login and passwords are Please, change and give the right settings. Please, change only the lines under the blue color.

3. Here is what my config.php looks like

<?php  /// Moodle Configuration File

unset($CFG);

$CFG->dbtype    = 'mysql';

$CFG->dbhost    = 'localhost';

$CFG->dbname    = 'moodle';

$CFG->dbuser    = 'root';

$CFG->dbpass    = 'jasmine';

$CFG->dbpersist =  false;

$CFG->prefix    = 'mdl_';

$CFG->wwwroot   = 'http://localhost/moodle';

$CFG->dirroot   = 'C:\apache2triad\htdocs\moodle';

$CFG->dataroot  = 'C:\apache2triad\htdocs\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.

?>

 Regards,

Naceur

In reply to Gordon Bateson

Re: Installation problems

by Mesk Aline -

Hi!

That is a great idea Naceur, and i precious help.
i am trying to install the last version of moodle in windows 2003 server, but so far i couldnt.
I am using :
mysql 5
php-5.1.6-Win32
IIS 6
Moodle 1.6.2

Can you tell also, Gordon, the versions of the programs that you are using?

Thanks!
Best regards,
Mesk

In reply to Mesk Aline

Re: Installation problems

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Mesk,
mostly I use something similar to you: WinXP, Apache 2, PHP 5 and MySQL 5. I also have PostgreSQL 8 setup on my main server so I can see how Moodle runs on that.

I don't use IIS nowadays. I enabled it once six years ago, but within a few hours the server got hacked into and vandalized surprise

cheers
Gordon
In reply to Gordon Bateson

Re: Installation problems

by Naceur Bouziani -

Hello Mesk , Hello Gordon,

I think that many of the problems pointed by all of us (see various messages about blank pages, difficulties of installing the new moodle's versions 1.6.1, 16.2 and 1.7,… ) comes from may be bad communication between the install.php file and the creation of a useful config.php file )

I have used

Apache2triad bundle (1.5.4), xampp 1.5.4 and easyphp all those are bundles of the triads (php, mysql and apache) with up to date versions of mysql (5.X.X), php (5) or (4) and apache (2.X.X) I think.

Since all the bundles are based on at least mysql 5.X.X, I do not think that the install problems come from the versions #.

Moodlers familiar with php will fix the bug very soon, I am sure.

If some one needs to not to wait and install the new moodle's versions, she or he have to edit and give the right settings in the config.php file.

This works for me.

Best Regards,

Naceur