Beginning Moodle 2.x Administration 2 FAQ
Note: You are currently viewing documentation for Moodle 2.4. Up-to-date documentation for the latest stable version of Moodle may be available here: Beginning Moodle 2.x Administration 2 FAQ.
This page is a follow on from the Beginning Moodle 2.0 Administration page.
NOTE: This FAQ is being wound down, much of the information here is now duplicated elsewhere or is being moved into more appropriate places.
- 1 How do I set the maximum upload file size limit?
- 2 The previous answer is OK if you control the server, but I am hosted, what can I do to override limitations set by my Host?
- 3 Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?
- 4 I want to change our logo and some other images but there seems no clear way of doing it.
- 5 My Password is not being accepted as valid. How can I login as an Admin?
- 6 See Also
How do I set the maximum upload file size limit?
This is probably the most frequently asked question, and the answer is not that straightforward. The changes that need be made are the same in all versions of Moodle, just in different OS' they need be made in different places. Upload file sizes are restricted in a number of ways and each one in this list restricts the following ones:
Server level Moodle site level Course level Activity level
Perhaps the best place to find this information is at File upload size There is a full explanation for a number of different OSs but there are a few missing.
This is a contentious issue, mainly because you might think that it should be set inside the Moodle. Unfortunately, this is not so, these are environment issues that need to be set in the server and PHP folders, Moodle cannot work outside itself.
The previous answer is OK if you control the server, but I am hosted, what can I do to override limitations set by my Host?
Before doing this, consult with your host, they may have very different ideas about what your Moodle should be permitted - try not to tread on their toes - they may get annoyed at you breaching your user conditions. In an Apache server, you can create a file called .htaccess which can allow you to override some of the limitations set by PHP on your Moodle. Be aware that this file only applies to your Moodle, and nothing else. Your host will often place a .htaccess file into your root folder which will usually read something like:
deny from all AllowOverride None
These are security related, so there is no need to delete them or otherwise edit them. To overwrite set values in the hosts php.ini file, you may want to use:
php_value upload_max_filesize 512M php_value post_max_size 512M php_value memory_limit 128M
To overwrite boolean or logical settings use:
php_flag register_globals off
php_flag register_globals 0
Something similar can be done in IIS, but it is a lot more complex.
Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not been changed, it certainly has, but it does not affect how you will use TeX Notation. It is supposed to be easier to add a third party plugin for TeX, but the relationship between Moodle and such tools as MathJax or Geogebra, or similar tools, is still to be determined.
- UPDATE: Mauno Korpelainen has successfully integrated a number of Maths tools onto Moodle. These tools include Geogebra, JSXGraph, Math, MathML, MathTran, tex, DragMath, Geonext, JSQuery, MathJax and if that were not enough, Mauno had also included a version of TinyMCE that has, as native, a Maths editing toolbar. Further information can be found on the Moodle 2.x Advanced Maths Tools page.
I want to change our logo and some other images but there seems no clear way of doing it.
Moodle 2 has done things very differently here. Logos and other images are all controlled by the theme. Each theme folder is constructed the same way so it makes it easy to edit. Native Moodle themes use the moodle/pix folder to store common images. Look in there to find the logo for any native theme and that can be replaced by a new logo. Third party themes often use the moodle/theme/pix folder to store images, including logos.
Go and look at the theme folder and in it you will find the name of the theme you are using. In the theme/themename folder you will also find the sub-folders for different elements. You should find your layout folder contains most of the instructions for controlling the layout, the Styles folder controls the appearance and so on. Images used in the theme can all be located there as well, in the pix folder.
If you want to use a theme that does not have an image or a logo, just the default icons, then you are talking a serious revamp. For that, you need to look at the Themes 2.0 page.
My Password is not being accepted as valid. How can I login as an Admin?
There are a couple of causes for this problem, but the main one seems to be we forget the jumble of passwords we are required to remember. There are also a number of ways of getting around it, as well.
This discussion covers just about all of them. There are a couple of scripts so be careful and use the right one if you need to.
If you do not wish to use a script, then you can try this: Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table's data should be the Guest, and the password for Guest is "guest", without the quote marks. Copy that encrypted password and then look for your identity. Paste the "guest" password over the top of yours when you locate it. You should be able to access your Moodle as an Admin.
It has been reported this does not work in every circumstance, but most. To get around that problem you might want to try commenting out the line
That should then work.