not reading defaults.php

not reading defaults.php

by 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.

Average of ratings: -
In reply to Ronald Vyhmeister

Re: not reading defaults.php

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
Those methods won't work - just use the GUI smile ... there is a setting for slasharguments in Admin -> Configuration -> Variables
In reply to Martin Dougiamas

Re: not reading defaults.php

by 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

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
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

by 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

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
Did you restart Apache after making the changes to httpd.conf? What OS are you using?
In reply to Martin Dougiamas

Re: not reading defaults.php

by Ronald Vyhmeister -

I have restarted apache a couple of times.. I'm running apache 2.0.47 on  Linux kernel.