Skip to content
Browse files

Apache log integration -- moved documentation to config-dist.php.

  • Loading branch information...
martinlanghoff committed May 17, 2005
1 parent 5c5c16b commit bd10cc11f211ab7e2362392a054b44b9a6e90dcb
Showing with 11 additions and 11 deletions.
  1. +11 −2 config-dist.php
  2. +0 −9 lang/en/docs/install.html
@@ -254,8 +254,17 @@
// $CFG->apacheloguser = 0; // Turn this feature off. Default value.
// $CFG->apacheloguser = 1; // Log user id.
// $CFG->apacheloguser = 2; // Log full name in cleaned format. ie, Darth Vader will be displayed as darth_vader.
// $CFG->apacheloguser = 3; // Log username. CAUTION: Use of this value will expose usernames in the Apache log,
// If you are going to publish your log in any cases, this will be a BIG security problem.
// $CFG->apacheloguser = 3; // Log username.
// To get the values logged in Apache's log, add to your httpd.conf
// the following statements. In the General part put:
// LogFormat "%h %l %{MOODLEUSER}n %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" moodleformat
// And in the part specific to your Moodle install / virtualhost:
// CustomLog "/your/path/to/log" moodleformat
// CAUTION: Use of this option will expose usernames in the Apache log,
// If you are going to publish your log, or the output of your web stats analyzer
// this will weaken the security of your website.
// ALL DONE! To continue installation, visit your main page with a browser
@@ -209,15 +209,6 @@ <h3 class="sectionheading"><a name="webserver" id="webserver"></a>4.1 General we
<pre>cp lib/htaccess .htaccess</pre>
<p>(Optional) To include the username of the current user in the Apache access log, add the following into your httpd.conf:</p>
LogFormat "%h %l %{MOODLEUSER}n %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" moodle
CustomLog "/your/path/to/log" moodle</pre>
<p>And then replace the "/your/path/to/log" to your http access log or to a new one. If your Moodle copy runs in a virtual host, add the lines in the corresponding <VirtualHost> block. Please refer to the Apache documentation for more information.</p>
<h3 class="sectionheading"><a name="database"></a>4.2 Creating a database</h3>

0 comments on commit bd10cc1

Please sign in to comment.
You can’t perform that action at this time.