Talk:Installing APC in Windows: Difference between revisions
James Rudd (talk | contribs) No edit summary |
James Rudd (talk | contribs) (→APC.php security: Cleaned) |
||
Line 5: | Line 5: | ||
==APC.php security== | ===APC.php security=== | ||
You configure APC.php to use Moodle security. | You can configure APC.php to use Moodle security. | ||
Create a new file apc.conf.php in admin directory | Create a new file apc.conf.php in the admin directory containing the following code. This will be automatically loaded by apc.php | ||
<code php> | <code php> | ||
<?php | <?php | ||
// Moodle user Authentication | // Moodle user Authentication | ||
require_once("../config.php"); | require_once("../config.php"); | ||
require_once($CFG->libdir.'/adminlib.php'); | require_once($CFG->libdir.'/adminlib.php'); | ||
require_login(); | require_login(); | ||
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID)); | require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID)); | ||
Line 23: | Line 21: | ||
?> | ?> | ||
</code> | </code> |
Revision as of 22:59, 31 October 2010
Quick question re this line: When setting the total memory available for the cache, start with the lowest that a single Moodle install can work with (64Mb)
So if I have 6 Moodles installed on one server would I therefore need the memory cache set to 64Mb or would it be 6 times 64Mb?
APC.php security
You can configure APC.php to use Moodle security. Create a new file apc.conf.php in the admin directory containing the following code. This will be automatically loaded by apc.php
<?php
// Moodle user Authentication
require_once("../config.php");
require_once($CFG->libdir.'/adminlib.php');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
// Disable APC Auth
defaults('USE_AUTHENTICATION',0);
?>