Note: You are currently viewing documentation for Moodle 2.5. Up-to-date documentation for the latest stable version of Moodle may be available here: Administration FAQ.

Administration FAQ: Difference between revisions

From MoodleDocs
(How do the limits on uploaded files work?)
m (stopping welcome emails)
Line 27: Line 27:


Click the SQL tab, then in the "Run SQL query/queries on database moodle" field type <code>REPAIR TABLE mdl_log</code> and click the Go button.
Click the SQL tab, then in the "Run SQL query/queries on database moodle" field type <code>REPAIR TABLE mdl_log</code> and click the Go button.
== Preventing "Welcome to the course" Emails ==
You can stop moodle sending enrolment e-mails by changing two lines in the file:
.../enrol/enrol.class.php
The line (occuring twice in the file!) reads:
      email_to_user($USER, $teacher, $subject, $message);
It must be changed to:
      //    email_to_user($USER, $teacher, $subject, $message);
That way, moodle ignores the e-mail-command until you change back to the original line.  The setting works for all courses at the same time.  It does not affect other e-mails being sent (e.g. the login confirmation).  To switch enrolment e-mails on/off for individual courses, more extensive changes are necessary.
Taken from the moodle.org thread: [http://moodle.org/mod/forum/discuss.php?d=18583 Stopping "Welcome to the course" emails]


== See also ==
== See also ==

Revision as of 21:22, 1 December 2005

How do the limits on uploaded files work?

File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.

1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache's /etc/httpd/conf/httpd.conf and/or /etc/httpd/conf.d/php.conf with the upload size in bytes (different operating systems may have these files in different locations):

LimitRequestBody 10485760

2. PHP also has two more byte limits, which you can set in php.ini and sometimes in a .htaccess file:

php_value upload_max_filesize 50000000
php_value post_max_size 50000000

3. Moodle has a site-wide limit called maxbytes that may be set in Administration >> Configuration >> Variables.

4. A limit may be set by teachers in the Course settings.

5. Activity modules such as forums and assignments have their own limits which may be set when adding or editing the activity.

Users are being unenrolled for no apparent reason

Unenrolment may be controlled by the following:

  • The longtimenosee variable in Administration >> Configuration >> Variables which specifies the time limit for which, if students haven't logged in, they are unenrolled from courses.
  • The Enrolment duration in the Course settings which unenrols students after the specified time has elapsed.

My log table has disappeared - No logs found!

The most likely cause is that the mdl_log table has become corrupted. It may be repaired using MySQL Admin as follows:

Click the SQL tab, then in the "Run SQL query/queries on database moodle" field type REPAIR TABLE mdl_log and click the Go button.

Preventing "Welcome to the course" Emails

You can stop moodle sending enrolment e-mails by changing two lines in the file: .../enrol/enrol.class.php

The line (occuring twice in the file!) reads:

      email_to_user($USER, $teacher, $subject, $message);

It must be changed to:

      //     email_to_user($USER, $teacher, $subject, $message);

That way, moodle ignores the e-mail-command until you change back to the original line. The setting works for all courses at the same time. It does not affect other e-mails being sent (e.g. the login confirmation). To switch enrolment e-mails on/off for individual courses, more extensive changes are necessary.

Taken from the moodle.org thread: Stopping "Welcome to the course" emails

See also

External links