magic_quotes_gpc

magic_quotes_gpc

by Kris Gonnissen -
Number of replies: 8
I tried to install the moodle-nightly from today, and I get the message:
The PHP server variable 'magic_quotes_gpc' is not turned on...

My provider doesn't find it a good idea to turn this function on, and he refers to http://www.webmasterstop.com/tutorials/php-magic-quotes.shtml

The version 1.0.8.1 is working fine (www.sint-godelieve-instituut.be/elo)...

What can I do now? 

Average of ratings: -
In reply to Kris Gonnissen

Re: magic_quotes_gpc

by Kris Gonnissen -

OK,  now there is a .htaccess-file in my Moodle-directory
------
<IfDefine APACHE2>
     AcceptPathInfo on
</IfDefine>

php_value magic_quotes_gpc On
php_value magic_quotes_runtime Off
php_value file_uploads On
php_value short_open_tag On
php_value session.auto_start Off
php_value session.bug_compat_warn Off
-----

Now appears this message:

The PHP server variable 'magic_quotes_runtime' should be Off - please read the...

??

In reply to Kris Gonnissen

Re: magic_quotes_gpc

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hmm .. Is your Apache server configured to use .htaccess files?

Also try making a file to see what the settings are for magic_quotes_runtime.
In reply to Martin Dougiamas

Re: magic_quotes_gpc

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Sorry, I forgot to set the format of my post to plain text!  :-I  That should have been:

Try making a <? phpinfo() ?> file to see what the settings are for magic_quotes_runtime.
In reply to Martin Dougiamas

Re: magic_quotes_gpc

by Kris Gonnissen -

I made a new .htaccess-file without the lines
   php_value magic_quotes_runtime Off
   php_value session.auto_start Off
and Moodle made all the tables in my MySQL-database, but now I see a strange file "site.php", and it is impossible to go further with the installation: see the screen capture

(I also made a "PHP-info"-file: www.sint-godelieve-instituut.be/elotest/inst.php)

 

Attachment sitephp.jpg
In reply to Kris Gonnissen

Re: magic_quotes_gpc

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
You are seeing that because "short tags" is off.

php_value short_open_tag On

It looks like your .htaccess files are not affecting the PHP settings ... you need to talk to your admin about whether they allow .htaccess files and if so, what they should be named (on that machine it's a setting in /etc/httpd/conf/httpd.conf).

Actually, I find it strange that your 1.0.8.1 installation is working - none of this stuff has really changed since then, all I've added is more warnings to help people find the source of their errors.
In reply to Martin Dougiamas

Re: magic_quotes_gpc

by Kris Gonnissen -
My provider has been working on this issue, and now my 1.0.8.1 installation doesn't work neither. Talking about progress...
In reply to Kris Gonnissen

Re: magic_quotes_gpc

by Kris Gonnissen -

I made this .htaccess-file

php_value magic_quotes_gpc 1
php_value file_uploads 1
php_value short_open_tag 1
php_value session.auto_start 0
php_value session.bug_compat_warn 0

(not Off and On, but 0 and 1)

Both sites (my old one and my new Moodle-installation) are working fine now. Isn't it strange?