not reading defaults.php

not reading defaults.php

Ronald Vyhmeister發表於
Number of replies: 6

I've had all kinds of grief, since I can't use the slashes, and I can't get the correct value read from lib/defaults.php.  I have repeatedly set it to 0, and it insists it is 1.  I have even tried to manually set $CFG->slasharguments==0; to no avail...

I'm getting around it now by just commenting out the lines in the if statements...  I am running apache 2.0 with Php 4.3.3 with GC 2.0 or above...

Any suggestions are appreciated.

評比平均分數: -
In reply to Ronald Vyhmeister

Re: not reading defaults.php

Martin Dougiamas發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
Those methods won't work - just use the GUI 微笑 ... there is a setting for slasharguments in Admin -> Configuration -> Variables
In reply to Martin Dougiamas

Re: not reading defaults.php

Ronald Vyhmeister發表於
<P>That did work, after finally finding the option... It was not the easiest to find :-(</P>
<P>At the same time, it would be interesting to know how to identify what systems will and won't work with the slash (/).&nbsp; What does it take?&nbsp; I like the caching idea...</P>
<P>Ron</P>
In reply to Ronald Vyhmeister

Re: not reading defaults.php

Martin Dougiamas發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
Almost every system (including your Apache 2) should work - see the FAQ: http://moodle.org/doc/?frame=faq.html&sub=filenotfound

(Also, if you are using the Richtext editor to post here don't change the format to "plain text", because all the HTML tags are displayed in full. Just leave the setting as HTML.)
In reply to Martin Dougiamas

Re: not reading defaults.php

Ronald Vyhmeister發表於

I have tried the solutions there, putting it both in the httpd.conf and the .htaccess in the moodle home directory, but to no avail...

Given I'm working on a relatively low-speed link, the ability of people off-campus to cache the result is quite important to us.

Thanks,

Ron

In reply to Ronald Vyhmeister

Re: not reading defaults.php

Martin Dougiamas發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
Did you restart Apache after making the changes to httpd.conf? What OS are you using?