Moodle 2.0 Install Problem

Moodle 2.0 Install Problem

by Donna Dailey -
Number of replies: 2

I've been using Moodle for about 11/2 years.  I decided to try the 2.0 with a new test install.  During the installation I receive the common error:

You must set register_globals=off

I worked with my host compay to compile a php.in file per the specs for 2.0.  However, the error will not go away.  Attached is the php.ini file.

HELP!

Average of ratings: -
In reply to Donna Dailey

Re: Moodle 2.0 Install Problem

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

I had this same problem, but I was only installing 1.9.7 then.

The fact is your Host company should be able to fix this by upgrading you to a higher version of PHP where Register_Globals is turned OFF by default.

In reply to Donna Dailey

Re: Moodle 2.0 Install Problem

by Olumuyiwa Taiwo -
Picture of Plugin developers

Hi Donna,

In both files you attached, register_globals is still set On (in line 365).  You need to change that line to

register_globals = Off

If changing it in php.ini doesn't work, you can try changing it in the .htaccess file for your hosting account.  Put these two lines somewhere near the top of the .htaccess file

php_flag register_globals on
php_flag register_long_arrays on

Some people have reported that they have to use the following code instead, so if the above doesn't work, try the below

php_admin_flag register_globals on
php_admin_flag register_long_arrays on

Hope that helps.

Muyi