PHP settings for Moodle

elyts

New member
Joined
Feb 14, 2010
Messages
3
Hi,

I'm in the process of setting up Moodle for my work, and in the installation process, it came up with the following message:

SECURITY WARNING!

To operate properly, Moodle requires
that you make certain changes to your current PHP settings.

You must set register_globals=off.

This setting is controlled by editing your php.ini, Apache/IIS
configuration or .htaccess file.


I'm not sure how to access the php.ini or .htaccess file in order to make the change, and don't know how to get to the Apache/IIS configuration.
It would be a great help if someone could point me in the right direction here.

Thanks,
Elyts
 
log in to your ssh as root.
and then:

nano -w `php -i | grep "Loaded Configuration File" | cut -d' ' -f5-`

search there for register_globals = On
and replace with register_globals = Off

Ctrl + X and then Y (to save the changes)

good luck :)
 
How do I log in to the ssh as root? I'm a little new at this, unfortunately, and there's no one who knows it better than me in my office.

Thanks.
 
Thanks

I ended up having to call the company which hosts our websites because we didn't have access to the php.ini files. They took care of it in a few minutes.

Thank you for the help!
 
Back
Top