magic_quotes_gpc

magic_quotes_gpc

על ידי Kris Gonnissen בתאריך
מספר תגובות: 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? 

ממוצע דרוגים: -
בתגובה ל: Kris Gonnissen

Re: magic_quotes_gpc

על ידי 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...

??

בתגובה ל: Kris Gonnissen

Re: magic_quotes_gpc

על ידי Martin Dougiamas בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Plugin developers תמונה של 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.
בתגובה ל: Martin Dougiamas

Re: magic_quotes_gpc

על ידי Martin Dougiamas בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Plugin developers תמונה של 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.
בתגובה ל: Martin Dougiamas

Re: magic_quotes_gpc

על ידי 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)

 

צרופה sitephp.jpg
בתגובה ל: Kris Gonnissen

Re: magic_quotes_gpc

על ידי Martin Dougiamas בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Plugin developers תמונה של 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.
בתגובה ל: Martin Dougiamas

Re: magic_quotes_gpc

על ידי 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...
בתגובה ל: Kris Gonnissen

Re: magic_quotes_gpc

על ידי 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?