<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/39/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ColinFraser</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/39/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ColinFraser"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/Special:Contributions/ColinFraser"/>
	<updated>2026-04-13T15:09:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=FontAwesome_filter&amp;diff=128151</id>
		<title>FontAwesome filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=FontAwesome_filter&amp;diff=128151"/>
		<updated>2017-06-11T11:23:40Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Filters}}&lt;br /&gt;
This is a [[:Category:Contributed_code|contributed (third party)]] filter for Moodle written by Julian (Moodleman) Ridden and shared on Moodle.org&lt;br /&gt;
&lt;br /&gt;
Font Awesome provides sites with scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS. Font Awesome is fully open source and is GPL compatible. No attribution is required when using the fonts although the project does say it is appreciated.&lt;br /&gt;
&lt;br /&gt;
This filter makes it easy to add FontAwesome icons to course content in any FontAwesome enabled moodle site. Please be sure to target any questions related to this filter in the [https://moodle.org/mod/forum/discuss.php?d=240159 Filter&#039;s forums] at moodle.org and bugs to the [[Tracker|Moodle Tracker]]&lt;br /&gt;
&lt;br /&gt;
==Filter Objectives==&lt;br /&gt;
The aim of this filter was to provide an easy and functional way for content creators to easily add FontAwesome icons anywhere in course content. If using the recommended method provide by FontAwesome which involves creating custom &amp;lt;i&amp;gt; classes you will find that the text editor strips these out automatically as unrecognised/bad code&amp;lt;/i&amp;gt;. This filter provides another mechanism to add FontAwesome icons that won&#039;t be stripped out by the editor.&lt;br /&gt;
&lt;br /&gt;
==Enabling FontAwesome in Moodle==&lt;br /&gt;
FontAwesom icon&#039;s will not work just by adding this filter to your Moodle. The filter just facilitates adding them to content. You will need to first ensure your site has the FontAwesome font enabled before you can use this filter. You can get FontAwesome running one of two ways.&lt;br /&gt;
&lt;br /&gt;
==Install a FontAwesome enabled theme==&lt;br /&gt;
&lt;br /&gt;
Some Moodle themes are now coming with FontAwesome already enabled. To find out if they do just read the information found about them in the Modules and Plugins Database.&lt;br /&gt;
&lt;br /&gt;
One such theme that already has FontAwesome contained within is the [[https://moodle.org/plugins/view.php?plugin=theme_essential Essential Theme]] by Julian Ridden.&lt;br /&gt;
&lt;br /&gt;
==Load FontAwesome via CDN==&lt;br /&gt;
A content delivery network or content distribution network (CDN) is a large distributed system of servers deployed in multiple data centers across the Internet. The goal of a CDN is to serve content to end-users with high availability and high performance. You can pull FontAwesome into your site using any theme by adding a single line to your Admin settings. This line will connect to a dedicated CDN to reliably load FontAwesome into your moodle site.&lt;br /&gt;
&lt;br /&gt;
To add the CDN to your Moodle you need to add the following line to your &#039;&#039;&#039;&amp;quot;Additional HTML&amp;quot;&#039;&#039;&#039; settings in Site Administration. You can find this located under the &amp;quot;Appearance&amp;quot; menu.&lt;br /&gt;
&lt;br /&gt;
[[File:additionalhtml.png]]&lt;br /&gt;
&lt;br /&gt;
Once you are in the &amp;quot;Additional HTML&amp;quot; settings we need to add the following line to the &#039;&#039;&#039;&amp;quot;Within HEAD&amp;quot;&#039;&#039;&#039; section. This will then load the FontAwesome as part of every page load.&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;link href=&amp;quot;//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should look like the image below. Once done you are now ready to use the FontAwesome filter.&lt;br /&gt;
&lt;br /&gt;
[[File:fontawesomecdn.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding an icon==&lt;br /&gt;
&lt;br /&gt;
Adding an icon to anywhere in your course that you wish is now a simple process. The hardest part is finding the icon you wish to use. To browse the full list of over 360 icons please visit [[http://fontawesome.io/icons/ this link]]. Once you have found the icon you are after you just have to surround it with a set of square brackets. e.g.:&lt;br /&gt;
&lt;br /&gt;
      [fa-retro-camera]&lt;br /&gt;
&lt;br /&gt;
If you have typed in the icon name correctly you will see the icon appear once you have hit save.&lt;br /&gt;
&lt;br /&gt;
==Configurable Options==&lt;br /&gt;
&lt;br /&gt;
If you wish to make the icon larger you can use a multiplier. e.g.:&lt;br /&gt;
&lt;br /&gt;
      [fa-camera-retro fa-2x]    or    [fa-camera-retro fa-4x]&lt;br /&gt;
&lt;br /&gt;
If you wish to rotate the icon you can specify how many degrees clockwise. e.g.:&lt;br /&gt;
&lt;br /&gt;
      [fa-camera-retro fa-rotate-90]&lt;br /&gt;
&lt;br /&gt;
You can also flip an icon horizontally or vertically. e.g.:&lt;br /&gt;
&lt;br /&gt;
      [fa-camera-retro fa-flip-horizontal]    or     [fa-camera-retro fa-flip-vertical]&lt;br /&gt;
&lt;br /&gt;
You can mute the colour to a dull grey. e.g.:&lt;br /&gt;
&lt;br /&gt;
      [fa-camera-retro fa-muted]&lt;br /&gt;
&lt;br /&gt;
You can &amp;quot;pull&amp;quot; the icon to the left or right. If it is &amp;quot;pulled&amp;quot; to the left text will wrap to the right. e.g.:&lt;br /&gt;
&lt;br /&gt;
      [fa-camera-retro pull-left]&lt;br /&gt;
&lt;br /&gt;
===Advanced Tip===&lt;br /&gt;
&lt;br /&gt;
All the settings above can be mixed and matched. For example if I was to type in:&lt;br /&gt;
&lt;br /&gt;
      [fa-quote-left fa-4x pull-left fa-muted]&lt;br /&gt;
&lt;br /&gt;
Use a few of the new styles together, and you&#039;ve got easy pull quotes or a great introductory article image. Or spinning icons for loading and refreshing content. Or fun big icons in multi-line buttons. You can combine all of them in any combination to get lots of new possibilities.&lt;br /&gt;
&lt;br /&gt;
You would generate:&lt;br /&gt;
&lt;br /&gt;
[[File:fontawesome_advancedtip.png]]&lt;br /&gt;
&lt;br /&gt;
==Download link==&lt;br /&gt;
This filter is only available for Moodle 2.5 and above.&lt;br /&gt;
You can download the filter from https://moodle.org/plugins/view.php?plugin=filter_fontawesome&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[https://moodle.org/plugins/view.php?plugin=filter_fontawesome FontAwesome Filter]&#039;s Plugin database listing&lt;br /&gt;
*[https://github.com/moodleman/moodle-filter_fontawesome/archive/FontAwesomeFilter_1.0.zip Download latest version]&lt;br /&gt;
*[https://github.com/moodleman/moodle-filter_fontawesome Browse GIT]&lt;br /&gt;
*[https://moodle.org/mod/forum/discuss.php?d=240159#p1052928 Discussion in English] in the Forum&lt;br /&gt;
*[http://features.demo.moodle.com.au/ Demo site]&lt;br /&gt;
*[http://fontawesome.io/ FontAwesome Official website]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;br /&gt;
[[es:Filtro FontAwesome]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125423</id>
		<title>Talk:Security FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125423"/>
		<updated>2016-09-21T10:56:13Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not sure how long it has been (at least Moodle 2.5) since it was changed however to enable ReCAPTCHA you need to go to:&lt;br /&gt;
&lt;br /&gt;
Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&lt;br /&gt;
&lt;br /&gt;
... not ...&lt;br /&gt;
&lt;br /&gt;
Site Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication.&lt;br /&gt;
&lt;br /&gt;
Please update the Security FAQ as there is no Authentication under Users.&lt;br /&gt;
&lt;br /&gt;
Best regards,&lt;br /&gt;
&lt;br /&gt;
Michael Milette&lt;br /&gt;
&lt;br /&gt;
:Thanks Michael, I have amended the text. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 14:53, 4 February 2014 (WST)&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
Can you please add [[es:Seguridad FAQ]] to this protected page for the English Moodle 3.0, 2.x and 1.9 docs? Thanks in advance. [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
:Thanks German, I have added the link to the 2.8 - 3.0 English docs. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 22:39, 17 November 2015 (AWST)&lt;br /&gt;
:Thanks Helen. That was fast :) [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
I understand that reCaptcha has been hacked as recently as April 2016. Not a big fan of using Captcha or reCaptcha, is there anything else that can be used to validate human/nonhuman identities? Something that is free and maybe not easy to hack? Also, bearing in mind the blind and visually impaired who have difficulty with reCaptcha, there has to be some discussion or some alternative. --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 17:06, 19 September 2016 (AWST)&lt;br /&gt;
&lt;br /&gt;
A little digging and I ran across this article from Vision Australia on Effective alternatives to  [https://www.visionaustralia.org/business-and-professionals/digital-access-consulting/resources/blog---accessibility-and-assistive-technology-blog/blog/accessibility-blog/2014/12/09/effective-alternatives-to-inaccessible-captchas inaccessible CAPTCHAS]. --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 19:54, 19 September 2016 (AWST)&lt;br /&gt;
&lt;br /&gt;
:Hi Colin, if you&#039;ve not done so already, I suggest you post on moodle.org about alternatives to Captcha and also make sure there is an issue for it in the tracker, since not many people watch pages in Moodle Docs. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 20:08, 19 September 2016 (AWST)&lt;br /&gt;
&lt;br /&gt;
Yes, of course, I knew that...:) Doh!!--[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 18:56, 21 September 2016 (AWST)&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125407</id>
		<title>Talk:Security FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125407"/>
		<updated>2016-09-19T11:54:45Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not sure how long it has been (at least Moodle 2.5) since it was changed however to enable ReCAPTCHA you need to go to:&lt;br /&gt;
&lt;br /&gt;
Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&lt;br /&gt;
&lt;br /&gt;
... not ...&lt;br /&gt;
&lt;br /&gt;
Site Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication.&lt;br /&gt;
&lt;br /&gt;
Please update the Security FAQ as there is no Authentication under Users.&lt;br /&gt;
&lt;br /&gt;
Best regards,&lt;br /&gt;
&lt;br /&gt;
Michael Milette&lt;br /&gt;
&lt;br /&gt;
:Thanks Michael, I have amended the text. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 14:53, 4 February 2014 (WST)&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
Can you please add [[es:Seguridad FAQ]] to this protected page for the English Moodle 3.0, 2.x and 1.9 docs? Thanks in advance. [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
:Thanks German, I have added the link to the 2.8 - 3.0 English docs. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 22:39, 17 November 2015 (AWST)&lt;br /&gt;
:Thanks Helen. That was fast :) [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
I understand that reCaptcha has been hacked as recently as April 2016. Not a big fan of using Captcha or reCaptcha, is there anything else that can be used to validate human/nonhuman identities? Something that is free and maybe not easy to hack? Also, bearing in mind the blind and visually impaired who have difficulty with reCaptcha, there has to be some discussion or some alternative. --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 17:06, 19 September 2016 (AWST)&lt;br /&gt;
&lt;br /&gt;
A little digging and I ran across this article from Vision Australia on Effective alternatives to  [https://www.visionaustralia.org/business-and-professionals/digital-access-consulting/resources/blog---accessibility-and-assistive-technology-blog/blog/accessibility-blog/2014/12/09/effective-alternatives-to-inaccessible-captchas inaccessible CAPTCHAS]. --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 19:54, 19 September 2016 (AWST)&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125406</id>
		<title>Talk:Security FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125406"/>
		<updated>2016-09-19T09:11:11Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not sure how long it has been (at least Moodle 2.5) since it was changed however to enable ReCAPTCHA you need to go to:&lt;br /&gt;
&lt;br /&gt;
Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&lt;br /&gt;
&lt;br /&gt;
... not ...&lt;br /&gt;
&lt;br /&gt;
Site Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication.&lt;br /&gt;
&lt;br /&gt;
Please update the Security FAQ as there is no Authentication under Users.&lt;br /&gt;
&lt;br /&gt;
Best regards,&lt;br /&gt;
&lt;br /&gt;
Michael Milette&lt;br /&gt;
&lt;br /&gt;
:Thanks Michael, I have amended the text. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 14:53, 4 February 2014 (WST)&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
Can you please add [[es:Seguridad FAQ]] to this protected page for the English Moodle 3.0, 2.x and 1.9 docs? Thanks in advance. [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
:Thanks German, I have added the link to the 2.8 - 3.0 English docs. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 22:39, 17 November 2015 (AWST)&lt;br /&gt;
:Thanks Helen. That was fast :) [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
I understand that reCaptcha has been hacked as recently as April 2016. Not a big fan of using Captcha or reCaptcha, is there anything else that can be used to validate human/nonhuman identities? Something that is free and maybe not easy to hack? Also, bearing in mind the blind and visually impaired who have difficulty with reCaptcha, there has to be some discussion or some alternative. --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 17:06, 19 September 2016 (AWST)&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125404</id>
		<title>Talk:Security FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125404"/>
		<updated>2016-09-19T09:08:09Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not sure how long it has been (at least Moodle 2.5) since it was changed however to enable ReCAPTCHA you need to go to:&lt;br /&gt;
&lt;br /&gt;
Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&lt;br /&gt;
&lt;br /&gt;
... not ...&lt;br /&gt;
&lt;br /&gt;
Site Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication.&lt;br /&gt;
&lt;br /&gt;
Please update the Security FAQ as there is no Authentication under Users.&lt;br /&gt;
&lt;br /&gt;
Best regards,&lt;br /&gt;
&lt;br /&gt;
Michael Milette&lt;br /&gt;
&lt;br /&gt;
:Thanks Michael, I have amended the text. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 14:53, 4 February 2014 (WST)&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
Can you please add [[es:Seguridad FAQ]] to this protected page for the English Moodle 3.0, 2.x and 1.9 docs? Thanks in advance. [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
:Thanks German, I have added the link to the 2.8 - 3.0 English docs. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 22:39, 17 November 2015 (AWST)&lt;br /&gt;
:Thanks Helen. That was fast :) [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
I understand that reCaptcha has been hacked as recently as April 2016. Not a big fan of using Captcha or reCaptcha, is there anything else that can be used to validate human/nonhuman identities? Something that is free and maybe not easy to hack? --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 17:06, 19 September 2016 (AWST)&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125403</id>
		<title>Talk:Security FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Security_FAQ&amp;diff=125403"/>
		<updated>2016-09-19T09:07:06Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not sure how long it has been (at least Moodle 2.5) since it was changed however to enable ReCAPTCHA you need to go to:&lt;br /&gt;
&lt;br /&gt;
Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&lt;br /&gt;
&lt;br /&gt;
... not ...&lt;br /&gt;
&lt;br /&gt;
Site Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication.&lt;br /&gt;
&lt;br /&gt;
Please update the Security FAQ as there is no Authentication under Users.&lt;br /&gt;
&lt;br /&gt;
Best regards,&lt;br /&gt;
&lt;br /&gt;
Michael Milette&lt;br /&gt;
&lt;br /&gt;
:Thanks Michael, I have amended the text. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 14:53, 4 February 2014 (WST)&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
Can you please add [[es:Seguridad FAQ]] to this protected page for the English Moodle 3.0, 2.x and 1.9 docs? Thanks in advance. [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
:Thanks German, I have added the link to the 2.8 - 3.0 English docs. --[[User:Helen Foster|Helen Foster]] ([[User talk:Helen Foster|talk]]) 22:39, 17 November 2015 (AWST)&lt;br /&gt;
:Thanks Helen. That was fast :) [[User:German Valero|German Valero]] ([[User talk:German Valero|talk]])&lt;br /&gt;
&lt;br /&gt;
I understand that reCaptcha has been hacked as recently as April 2016. Not a big fan of using Captcha or reCaptcha, is there anything else that can be used to validate human/nonhuman identities? --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 17:06, 19 September 2016 (AWST)&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Help:Editing&amp;diff=122852</id>
		<title>Help:Editing</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Help:Editing&amp;diff=122852"/>
		<updated>2016-04-07T11:25:45Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Help}}&lt;br /&gt;
This page is for editing Moodle Documentation (MoodleDocs), which is based on MediaWiki format (similar to Wikipedia).&lt;br /&gt;
&lt;br /&gt;
==Edit tab==&lt;br /&gt;
Every MoodleDoc page has an &amp;quot;edit&amp;quot; tab at the top .  This link will let you edit the page you are viewing. Please try editing a page by using this  [[Sandbox|sandbox link]]. We will cover more formatting and special MoodleDoc features below.  The edit tool bar is easy to use. &lt;br /&gt;
&lt;br /&gt;
There are 3 parts to the edit page: the content areas to edit with its toolbar at the top;  the save, preview, changes and summary box; the preview area.&lt;br /&gt;
&lt;br /&gt;
===Edit tool bar===&lt;br /&gt;
[[Image:MoodleDocs Edit Toolbar.png|frame|center|Edit tool bar]]&lt;br /&gt;
Hold the mouse cursor over the edit tool bar to see what functions each icon will do.  From left to right:  Bold, Italics, Internal (page) link, external link, Level 2 heading, embedded image, media file link, mathematical formula, no wiki, signature and time stamp, horizontal line.&lt;br /&gt;
&lt;br /&gt;
=== Show preview ===&lt;br /&gt;
[[Image:MoodleDocs save edit area 1.png|frame|center|Example of the save, preview, comment area below the edit box]]&lt;br /&gt;
In edit mode, the show preview button at the bottom of the page lets you see what the page will look like after your edit, before you actually save.  We all make mistakes; this feature lets you catch them immediately.  Using Show preview before saving also lets you try format changes and other edits without cluttering up the page history, and has a number of other advantages.  Don&#039;t forget to save your edits after previewing, though!&lt;br /&gt;
&lt;br /&gt;
=== Edit summary ===&lt;br /&gt;
Before saving the page, it&#039;s considered good practice to enter a very brief summary of your changes in the summary box below the edit-box.  &lt;br /&gt;
&lt;br /&gt;
In the example above, the contributor used the edit link next to a heading called &amp;quot;Tips and tricks&amp;quot;. MoodleDocs automatically added &amp;quot;/* Tips and tricks */&amp;quot; to the summary box. The  The contributor added a comment &amp;quot;Put comment here about edit - will rollback&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
See [[Help:Editing#Page history|Page history below]] where the example is continued.&lt;br /&gt;
&lt;br /&gt;
===Show changes===&lt;br /&gt;
This button will change the preview area. One column will show current areas that will be changed and another column will show the resulting changes from what has been done in the content editing box.&lt;br /&gt;
&lt;br /&gt;
== Formatting ==&lt;br /&gt;
&lt;br /&gt;
Most &#039;&#039;&#039;formatting&#039;&#039;&#039;  in MoodleDocs is usually done with MediaWiki markup - you don&#039;t have to learn HTML!&lt;br /&gt;
&lt;br /&gt;
=== Bold and italics ===&lt;br /&gt;
&#039;&#039;&#039;Bolding&#039;&#039;&#039; and &#039;&#039;italicizing&#039;&#039; is done by surrounding a word or phrase with multiple apostrophes (&amp;lt;tt&amp;gt;&#039;&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&#039;&#039;italics&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; appears as &#039;&#039;italics&#039;&#039;. (2 apostrophes on both sides)&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&#039;&#039;&#039;bold&#039;&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; appears as &#039;&#039;&#039;bold&#039;&#039;&#039;. (3 apostrophes on both sides)&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&#039;&#039;&#039;&#039;&#039;bolded italics&#039;&#039;&#039;&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; appears as &#039;&#039;&#039;&#039;&#039;bolded italics&#039;&#039;&#039;&#039;&#039;.  (5 apostrophes on both sides)&lt;br /&gt;
&lt;br /&gt;
=== Headings and subheadings ===&lt;br /&gt;
Headings and subheadings are an easy way to improve the organization of an article. &lt;br /&gt;
&lt;br /&gt;
Headings can be created like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;==Top level heading==&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (2 equals signs)&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;===Subheading===&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (3 equals signs)&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;====Another level down====&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (4 equals signs)&lt;br /&gt;
&lt;br /&gt;
If an article has at least four headings, a table of contents will automatically be generated.&lt;br /&gt;
&lt;br /&gt;
=== Indentations ===&lt;br /&gt;
The simplest way of indenting is to place a colon (&amp;lt;code&amp;gt;:&amp;lt;/code&amp;gt;) at the beginning of a line. The more colons you put, the further indented the text will be. A newline marks the end of the indented paragraph e.g.&lt;br /&gt;
:&amp;lt;code&amp;gt;This is aligned all the way to the left.&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;This is indented slightly.&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;::&amp;lt;/nowiki&amp;gt;This is indented more.&amp;lt;/code&amp;gt;&lt;br /&gt;
is shown as&lt;br /&gt;
:This is aligned all the way to the left.&lt;br /&gt;
::This is indented slightly.&lt;br /&gt;
:::This is indented more.&lt;br /&gt;
&lt;br /&gt;
=== Lists ===&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!What it looks like&lt;br /&gt;
!What you type&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
* &#039;&#039;Unordered lists&#039;&#039; are easy to do:&lt;br /&gt;
** start every line with a star&lt;br /&gt;
*** more stars means deeper levels&lt;br /&gt;
*A newline&lt;br /&gt;
*in a list  &lt;br /&gt;
marks the end of the list.&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;* Unordered Lists are easy to do:&lt;br /&gt;
** start every line with a star&lt;br /&gt;
*** more stars means deeper levels&lt;br /&gt;
*A newline&lt;br /&gt;
*in a list  &lt;br /&gt;
marks the end of the list.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
# Numbered lists are also good&lt;br /&gt;
## very organized&lt;br /&gt;
## easy to follow&lt;br /&gt;
#A newline&lt;br /&gt;
#in a list  &lt;br /&gt;
marks the end of the list.&lt;br /&gt;
|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;# Numbered lists are also good&lt;br /&gt;
## very organized&lt;br /&gt;
## easy to follow&lt;br /&gt;
#A newline&lt;br /&gt;
#in a list  &lt;br /&gt;
marks the end of the list.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Descriptive lists:&lt;br /&gt;
; first tag : accompanying description&lt;br /&gt;
; second tag : more description&lt;br /&gt;
; third tag : surprise! more description&lt;br /&gt;
|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Descriptive lists:&lt;br /&gt;
; first tag : accompanying description&lt;br /&gt;
; second tag : more description&lt;br /&gt;
; third tag : surprise! more description&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Preserving formatting ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!What it looks like&lt;br /&gt;
!What you type&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Leading spaces are another way to preserve formatting.&lt;br /&gt;
&lt;br /&gt;
 Putting a space at the beginning of each line&lt;br /&gt;
 stops the text from being reformatted. &lt;br /&gt;
|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Leading spaces are another way to preserve formatting.&lt;br /&gt;
&lt;br /&gt;
 Putting a space at the beginning of each line&lt;br /&gt;
 stops the text from being reformatted.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can also use &amp;lt;nowiki&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;/nowiki&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;nowiki&amp;quot; tag on either side of text area, starts and stops wiki formatting within a line of text. For example, placing the tags here &amp;lt;nowiki&amp;gt; &amp;lt;nowiki&amp;gt; turns off linking [[Main page]] &amp;lt;/nowiki&amp;gt; &amp;lt;/nowiki&amp;gt; and then starts the wiki formatting again. Here is the same link [[Main page]] without the tags on either side. &lt;br /&gt;
&lt;br /&gt;
The HTML edit tool bar has a nowiki icon.&lt;br /&gt;
&lt;br /&gt;
===PHP syntax higlighting===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!What it looks like&lt;br /&gt;
!What you type&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;code php&amp;gt;$user = $DB-&amp;gt;get_record(&#039;user&#039;, array(&#039;id&#039;=&amp;gt;&#039;1&#039;);&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;code php&amp;gt;$user = $DB-&amp;gt;get_record(&#039;user&#039;, array(&#039;id&#039;=&amp;gt;&#039;1&#039;);&amp;lt;/code&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Tables===&lt;br /&gt;
&lt;br /&gt;
See [http://meta.wikimedia.org/wiki/Help:Table#Spreadsheet_to_wiki_table_format the Mediawiki help] for full details of the table syntax.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!What it looks like&lt;br /&gt;
!What you type&lt;br /&gt;
|-&lt;br /&gt;
| A table:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! header 1&lt;br /&gt;
! header 2&lt;br /&gt;
! header 3&lt;br /&gt;
|-&lt;br /&gt;
| row 1, cell 1&lt;br /&gt;
| row 1, cell 2&lt;br /&gt;
| row 1, cell 3&lt;br /&gt;
|-&lt;br /&gt;
| row 2, cell 1&lt;br /&gt;
| row 2, cell 2&lt;br /&gt;
| row 2, cell 3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;A table:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! header 1&lt;br /&gt;
! header 2&lt;br /&gt;
! header 3&lt;br /&gt;
|-&lt;br /&gt;
| row 1, cell 1&lt;br /&gt;
| row 1, cell 2&lt;br /&gt;
| row 1, cell 3&lt;br /&gt;
|-&lt;br /&gt;
| row 2, cell 1&lt;br /&gt;
| row 2, cell 2&lt;br /&gt;
| row 2, cell 3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note, the class=&amp;quot;nicetable&amp;quot; is our local hack for Moodledocs.  You can leave it out to get a table without borders.&lt;br /&gt;
&lt;br /&gt;
You can also add in more attributes if you do not want to use class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Or perhaps you want a floating table. &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;style=&amp;quot;float: right;&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Like HTML, you can also have a combined use of &amp;quot;colspan&amp;quot; and &amp;quot;rowspan&amp;quot;:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;| rowspan=&amp;quot;2&amp;quot; | A&lt;br /&gt;
 | colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | B&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(from mediaWiki Help pages)&lt;br /&gt;
&lt;br /&gt;
== Using Images == &lt;br /&gt;
Images are included in two parts. The first part is a link in the page to an image and the second is uploading the image. For example:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[[Image:MoodleDocs Edit Toolbar.png|frame|center|Edit tool bar]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is how an image is edited onto the page. The brackets place a link to an image. The Image name tells the wiki renderer that an image is following. The name of the image follows then after that the presentation style of that image is determined. There are a number of different styling possibilities and include thumbnails, resizing, borders, etc. &lt;br /&gt;
&lt;br /&gt;
Images are initially rendered on the page as text, you click the text and a very simple upload process begins. Wikis store images automagically and maintain links internally.    &lt;br /&gt;
&lt;br /&gt;
For practical and stylistic reasons, Moodle Docs tend to keep images in the centre of a page and do not often use thumbnails.&lt;br /&gt;
&lt;br /&gt;
For full documentation about images, see [https://www.mediawiki.org/wiki/Help:Images Mediawiki Image Docs]&lt;br /&gt;
&lt;br /&gt;
==Embedding videos==&lt;br /&gt;
&lt;br /&gt;
To embed a YouTube video, simply add &amp;lt;nowiki&amp;gt;&amp;lt;mediaplayer&amp;gt;&amp;lt;/nowiki&amp;gt; tags around the video URL e.g. &amp;lt;nowiki&amp;gt;&amp;lt;mediaplayer&amp;gt;http://www.youtube.com/watch?v=U7M3sZL6wts&amp;lt;/mediaplayer&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links and Anchors ==&lt;br /&gt;
&lt;br /&gt;
=== Page links ===&lt;br /&gt;
To make a wiki page link, simply put the word in double square brackets, like this: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Sandbox]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; .  Highlight text and using the &amp;quot;internal link&amp;quot; tool will do this as well.&lt;br /&gt;
&lt;br /&gt;
If you want to use words other than the article title as the text of the link, you can do so by adding the pipe &amp;quot;|&amp;quot; divider followed by the alternative name or text.&lt;br /&gt;
&lt;br /&gt;
For example, if you wanted to make a link to the [[Sandbox]], but wanted it to say &amp;quot;my text&amp;quot; you would write it as: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Sandbox|my text]]&amp;lt;/nowiki&amp;gt;...&amp;lt;/code&amp;gt; It would appear as: [[Sandbox|my text]]... but would link to the sandbox.&lt;br /&gt;
&lt;br /&gt;
There are some special internal link notations. For example &amp;lt;nowiki&amp;gt;[[#top]]&amp;lt;/nowiki&amp;gt; will always jump to the top of the current page.&lt;br /&gt;
&lt;br /&gt;
=== External links ===&lt;br /&gt;
&lt;br /&gt;
The easiest way to make an external link is to simply type in the full URL for the page you want to link to e.g. http://school.demo.moodle.net/.&lt;br /&gt;
&lt;br /&gt;
If you want the link to appear with text that you specify, add an alternative title after the address separated by a &#039;&#039;&#039;space&#039;&#039;&#039; (&#039;&#039;not&#039;&#039; a pipe). So if you want the link to appear as [http://school.demo.moodle.net/ School demo site], just type &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[http://school.demo.moodle.net/ School demo site] &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Tracker links===&lt;br /&gt;
&lt;br /&gt;
To automatically link to an issue in the Moodle tracker, simply type the issue number MDL-xxxx e.g. MDL-1234.&lt;br /&gt;
&lt;br /&gt;
=== Categories links ===&lt;br /&gt;
A category is a type of index page, a page of links listed in alphabetical order. In page view mode, a list of categories that a page is linked to, appears at the bottom.&lt;br /&gt;
&lt;br /&gt;
To &#039;&#039;&#039;put a page in a category&#039;&#039;&#039;, just type &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and put the name of the category between the colon and the brackets.&lt;br /&gt;
&lt;br /&gt;
To &#039;&#039;&#039;link directly to a category&#039;&#039;&#039; use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[:Category:Teacher | teacher]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, this will show as [[:Category:Teacher | teacher]], note the preceding &amp;quot;:&amp;quot;, which is different to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Teacher | teacher]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. The second will put the current page in the teacher category as mentioned above.&lt;br /&gt;
&lt;br /&gt;
If you put a page in a category, it&#039;s usually a good idea to &#039;&#039;&#039;add a sort key&#039;&#039;&#039; to the category like so: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Developer|Eclipse]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. This will result in the page being placed under &amp;quot;E&amp;quot; like &amp;quot;Eclipse&amp;quot; in the alphabetical link list where most users will look for it.&lt;br /&gt;
&lt;br /&gt;
You can also use MediaWiki&#039;s &#039;&#039;&#039;PAGENAME variable&#039;&#039;&#039; (= the article title without its namespace) as a sort key: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Developer|{PAGENAME}]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This page is linked to the single category &amp;quot;MoodleDocs&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Inter-language links===&lt;br /&gt;
&lt;br /&gt;
Simply type &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[es:Corresponding page title in Spanish]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in the English Moodle Docs, or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[en:Corresponding page title in English]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in the [[:es:Portada|Spanish Moodle Docs]], at the bottom of the page, below the category link. Inter-language links will appear automatically in the &amp;quot;In other languages&amp;quot; block.&lt;br /&gt;
&lt;br /&gt;
If for some reason you want to refer to a page in another language version in the running text, precede the language code by a colon.  Thus, the reference in the preceeding paragraph was produced by the text &amp;lt;nowiki&amp;gt;[[:es:Portada|Spanish Moodle Docs]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You can also, using the same way, make link to developper documentation, using links like this one : &amp;lt;nowiki&amp;gt;[[:dev:Page name|Page title to use]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;[[:en:Page name|Page title to use]]&amp;lt;/nowiki&amp;gt; links to the latest version of the page in English.&lt;br /&gt;
&lt;br /&gt;
=== User-page links ===&lt;br /&gt;
User names can be linked to a user page.  For example &amp;lt;nowiki&amp;gt;[[User:Helen Foster|Helen Foster]] &amp;lt;/nowiki&amp;gt; will appear [[User:Helen Foster|Helen Foster]] and link to the user&#039;s page. Comments by other users are generally left on the Users page comment tab.&lt;br /&gt;
&lt;br /&gt;
=== Interwiki links ===&lt;br /&gt;
To link to the Moodle Development Wiki, use the notation &amp;lt;nowiki&amp;gt;[[dev:source|cue]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Manual Anchors===&lt;br /&gt;
Other than automated anchors ([[#Automatic_Anchors|see below]]) manual anchors can be inserted by using something this this:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span id=&amp;quot;anchor_one&amp;quot;&amp;gt;&#039;&#039;&#039;My Anchor.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which if implemented will create an anchor &amp;lt;span id=&amp;quot;anchor_one&amp;quot;&amp;gt;&#039;&#039;&#039;My Anchor.&#039;&#039;&#039;&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Inside the page I can now refer to this link as [[#anchor_one|the link to My Anchor]] by using this:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[#anchor_one|the link to My Anchor]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to have a link back to the top of a (long) page, just insert:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[#top|Back to top of page]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Page comments ==&lt;br /&gt;
The page comment tab is used for discussion about the page.  Sometimes before making an edit on the page for the first time, it is a good idea to check the page comments. It can be formatted the same as a main page, thus can be used to show a draft of a proposed change.&lt;br /&gt;
&lt;br /&gt;
Talk page contributions may be signed and dated by typing four tildes &amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;. This will appear as [[User:Helen Foster|Helen Foster]] 06:35, 19 February 2006 (WST), for example.&lt;br /&gt;
: There&#039;s also a handy button for signing in the toolbar of the editing field: [[Image:Signature Icon.png]]&lt;br /&gt;
&lt;br /&gt;
==Page history==&lt;br /&gt;
The page history tab allows a way to look at changes between different edits by using the &amp;quot;Compare versions&amp;quot; button and selecting the versions to compare.  &lt;br /&gt;
&lt;br /&gt;
It is also possible to revert (roll back) an edit to a previous version from this tab.  Usually rollback are left to the MoodleDoc Sysops (administrators), but you certainly can rollback your recent edits.  Hopefully, both MoodleDoc sysops and you will comment why the rollback was performed.&lt;br /&gt;
[[Image:MoodleDocs history 1.png|frame|center|Example of top 2 entries on a history tab]]&lt;br /&gt;
&lt;br /&gt;
==Watch and unwatch page==&lt;br /&gt;
A watched page will appear on &amp;quot;my watchlist&amp;quot; when ever someone edits the page. There is a tab next to history which acts as a toggle between watch and unwatch. In edit mode, there is also at the bottom of the edit area a &amp;quot;Watch this page&amp;quot; check off box.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://meta.wikimedia.org/wiki/Help:Editing MediaWiki Help:Editing]&lt;br /&gt;
*[http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext Help:HTML in wikitext]&lt;br /&gt;
*[http://wikipedia.mozdev.org/ Firefox Wikipedia extension] - The Wikipedia extension makes editing of  wiki pages easier by adding a new toolbar to your browser and by providing new menu items in the context menu (right mouse key).&lt;br /&gt;
&lt;br /&gt;
[[Category:MoodleDocs]]&lt;br /&gt;
&lt;br /&gt;
[[de:Bearbeitung von Moodle Docs Seiten]]&lt;br /&gt;
[[es:Ayuda:Cómo se edita una página]]&lt;br /&gt;
[[fr:Aide:Comment éditer une page]]&lt;br /&gt;
[[ja:Help:編集方法]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Installation_FAQ&amp;diff=122850</id>
		<title>Installation FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Installation_FAQ&amp;diff=122850"/>
		<updated>2016-04-07T11:20:11Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How to enable and check PHP error logs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
== System information needed for Installation problems forum ==&lt;br /&gt;
When posting questions to the [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum], try to provide as much background information as possible about your Moodle system. Consider providing some or all of the following:&lt;br /&gt;
* Server Operating System name (version also if possible): &lt;br /&gt;
* PHP version (e.g. PHP 5.4.4)&lt;br /&gt;
* Database server type and version (e.g. MySQL 5.5.18)&lt;br /&gt;
* Browser and version (e.g. Firefox, IE8):&lt;br /&gt;
* Moodle version (e.g. 3.0):&lt;br /&gt;
* Moodle install type? (New/Upgrade):&lt;br /&gt;
* Moodle config.php attached (please remove passwords):&lt;br /&gt;
* Phpinfo attached?:&lt;br /&gt;
&lt;br /&gt;
Make sure you provide a sensible description (never HELP! or URGENT!) and a full description of what you did and what happened. Copy and paste any error messages accurately in full. &#039;Nothing&#039; is not a symptom, even a blank page is something!&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==PHP - is it installed and what version do I have?==&lt;br /&gt;
&lt;br /&gt;
Make a new file on your web site called &#039;&#039;info.php&#039;&#039;, containing the following text, and call it from your browser:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
&amp;lt;?PHP phpinfo() ?&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If nothing happens then you don&#039;t have PHP installed or your webserver is not configured to handle .php files properly. See the installation docs for some information about where to download it for your computer. See the [[phpinfo]] page for details about the content of this page.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x==&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions (&#039;&#039;&#039;Windows Only&#039;&#039;&#039;)&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==What &amp;amp; where are Moodle&#039;s configuration settings stored?==&lt;br /&gt;
Configuration settings are stored in the config.php file stored in your moodle folder. This file is created during the installation process. If there is a problem and the installation cannot create the file, you can try creating it manually from the [[Configuration file]] docs. &lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Downloading previous releases of Moodle==&lt;br /&gt;
It is possible to download previous versions of Moodle that are not found on the  [http://download.moodle.org Standard Moodle Download page].  There are zip and tgz compressed located at &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]&amp;lt;/nowiki&amp;gt; (see links below). &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width:75%; height:75px&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| 2.0 Versions || [http://download.moodle.org/stable19 1.9 Versions]  || [http://download.moodle.org/stable18 1.8 Versions] &lt;br /&gt;
|- &lt;br /&gt;
|[http://download.moodle.org/stable17 1.7 Versions] || [http://download.moodle.org/stable16 1.6 Versions] || [http://download.moodle.org/stable15/ 1.5 Versions] &lt;br /&gt;
|-&lt;br /&gt;
| [http://download.moodle.org/stable14 1.4 Versions] || [http://download.moodle.org/stable13 1.3 Versions]  || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can download previous releases by using wget, lynx or curl with this URL:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]&amp;lt;/nowiki&amp;gt;. &lt;br /&gt;
:For example: to download Moodle version 1.5, use &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable15&amp;lt;/nowiki&amp;gt;. You&#039;ll see a directory tree with the files displayed. Click on the one you want and download as normal - if you require the latest update of the version, scroll to the end of the list and download the &amp;quot;moodle-latest&amp;quot; file.&lt;br /&gt;
* &#039;&#039;&#039;Windows Packages&#039;&#039;&#039;: To download other releases not found in [http://download.moodle.org/windows/ Moodle packages for Windows], use this URL:&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/windows/MoodleWindowsInstaller-latest-[version_number].zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Mac Packages&#039;&#039;&#039;: To download other releases not found in [http://download.moodle.org/macosx/ Mac packages], use either of these URLs (depending on whether you need the Intel or PPC package):&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/macosx/Moodle4Mac-Intel-[version_number].dmg&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/macosx/Moodle4Mac-PPC-[version_number}.dmg&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== How to enable and check PHP error logs==&lt;br /&gt;
PHP can be set up to log errors in a variety of different ways: two of these involve the use of the php.ini file and the ini_set command.  See [[dev:PHP error logs|PHP_error_logs]].&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Could not find a top level course&amp;quot; ==&lt;br /&gt;
If this appears immediately after you have attempted to install Moodle it almost certainly means that the installation did not complete. A complete installation will ask you for the administrator profile and to name the site just before it completes. Check your logs for errors. Then drop the database and start again. If you used the web-based installer try the command line one. Does your computer definitely have sufficient resource to run Moodle?&lt;br /&gt;
&lt;br /&gt;
==Email copies are not being sent from my forums==&lt;br /&gt;
&lt;br /&gt;
You &#039;&#039;must&#039;&#039; set up cron properly if you want Moodle to send out automatic email from forums, assignments etc. This same process also performs a number of clean-up tasks such as deleting old unconfirmed users, unenrolling old students and so on. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
Tips:&lt;br /&gt;
* Try the default settings in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Email&#039;&#039;. This generally works. Except...&lt;br /&gt;
* On a Windows server you *must* supply the address of an SMTP server (Windows, unlike Unix, does not have a build in mail server) in the above settings page&lt;br /&gt;
* Make sure that &#039;&#039;allowuseremailcharset&#039;&#039; in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Email&#039;&#039; is set to No unless you really know what you are doing. Setting this to Yes can cause a problem in some versions of Moodle.&lt;br /&gt;
* Check your firewall or ask your network administrator. Many mail servers are heavily locked down and you may need permission to send mail through them.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t log in - I just stay stuck on the login screen==&lt;br /&gt;
&lt;br /&gt;
This may also apply if you are seeing  “Your session has timed out. Please login again” or &amp;quot;A server error that affects your login session was detected. Please login again or restart your browser&amp;quot; and cannot log in.&lt;br /&gt;
&lt;br /&gt;
The following are possible causes and actions you can take (in no particular order):&lt;br /&gt;
&lt;br /&gt;
* Check first that your main admin account (which will be a manual account) is also a problem. If your users are using an external authentication method (e.g. LDAP) that could be the problem. Isolate the fault and make sure it really is Moodle before going any further.&lt;br /&gt;
* Check that your hard disk is not full or if your server is on shared hosting check that you have not reached your disk space quota. This will prevent new sessions being created and nobody will be able to log in. &lt;br /&gt;
* Carefully check the permissions in your &#039;moodledata&#039; area. The web server needs to be able to write to the &#039;sessions&#039; subdirectory. &lt;br /&gt;
* Your own computer (not your Moodle server) may have a firewall that is stripping referrer information from the browser. Here are some instructions for fixing [http://service1.symantec.com/SUPPORT/nip.nsf/46f26a2d6dafb0a788256bc7005c3fa3/b9b47ad7eddd343b88256c6b006a85a8?OpenDocument&amp;amp;src=bar_sch_nam Norton firewall products].&lt;br /&gt;
* Try deleting the &#039;&#039;sessions&#039;&#039; folder in your moodledata directory (anybody currently logged in will be thrown out)&lt;br /&gt;
* Try deleting cookies on your computer and/or try another browser or another client computer&lt;br /&gt;
* In &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; Session Handling&#039;&#039;, try setting a value for &#039;Cookie prefix&#039;. You can also do this by setting &amp;lt;code&amp;gt;$CFG-&amp;gt;sessioncookie=&#039;something&#039;;&amp;lt;/code&amp;gt; in config.php. This is especially true if you are using multiple Moodles on the same browser. &lt;br /&gt;
* Make sure you have not removed or changed the [[Password salting|Password Salt]] value(s) in config.php. If passwords were created using a salt the correct salt must be in config.php for those passwords to continue to work. This is easily done if you recreate config.php while performing an upgrade and forget to transfer the salt values. &lt;br /&gt;
* Do you have a .htaccess file in your Moodle folder (or its parent directories). If so, is there anything in there that might be causing trouble (strange redirects, access restrictions etc.)?&lt;br /&gt;
* Check the value of &#039;&#039;&#039;mnet_localhost_id&#039;&#039;&#039; in the mdl_config database table. It&#039;s normally 1 but must match the &#039;&#039;&#039;mnet_hostid&#039;&#039;&#039; field in your user records in the mdl_user table for the user to be recognised. It can sometimes get changed spuriously during upgrades or site migrations. &lt;br /&gt;
* Check config.php - it should NOT have any spaces/new lines at the end of code.&lt;br /&gt;
* You are using the correct username and password, yes?&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, read the [[Can_not_log_in | Cannot log in]] page. You &#039;&#039;&#039;could&#039;&#039;&#039; also try changing the admin password. Proceed as if you have lost it - see [[Administration FAQ]].&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==I log in but the login link doesn&#039;t change. I am logged in and can navigate freely.==&lt;br /&gt;
&lt;br /&gt;
Make sure the URL in your &amp;lt;code&amp;gt;$CFG-&amp;gt;wwwroot&amp;lt;/code&amp;gt; setting is exactly the same as the one you are actually using to access the site.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Uploaded files give &amp;quot;File not found&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg was not found on this server.&lt;br /&gt;
&lt;br /&gt;
This indicates that slash arguments are not enabled on your web server. Please see [[Using slash arguments]] for details.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Why are all my pages blank?==&lt;br /&gt;
&lt;br /&gt;
Check the dirroot variable in &#039;&#039;config.php&#039;&#039;. You must use complete, absolute pathnames (e.g.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$CFG-&amp;gt;dirroot = &amp;quot;/var/www/moodle&amp;quot;;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another reason might be that PHP has not been configured to support MySQL (or whatever other database you are using). This is common on RedHat and OpenBSD installations. In this case, an error is generated, but since error displays are often disabled by default, all that is seen on the browser is a blank screen. To enable PHP error displays see [[Installation_FAQ#How_to_enable_and_check_PHP_error_logs | How to enable and check PHP error logs]].&lt;br /&gt;
&lt;br /&gt;
To determine if database support is your problem, insert this as the second line in your &#039;&#039;config.php&#039;&#039; file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
phpinfo();&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then reload the web page. Examine the output closely to see if you chosen database is supported. If not, look for a package you are missing.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== Why is a particular page blank or incomplete? ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Check your web server log files!!&#039;&#039;&#039; &lt;br /&gt;
:If a particular page is blank or incomplete (it doesn&#039;t display the footer), before you do anything else switch on [[Debugging]] and  [[Installation_FAQ#How_to_enable_and_check_PHP_error_logs | check your PHP error logs]]. Having established that PHP error logging is working, reproduce the error. Immediately check the error log file right at the end. Hopefully you will see a PHP error message at or very near the end of the file. This may solve your problem directly or makes it a lot easier to diagnose the problem in the Moodle forums.&lt;br /&gt;
&lt;br /&gt;
*If you are &#039;&#039;&#039;upgrading to a new version of Moodle&#039;&#039;&#039;, check that you do not have an old version of a non-standard block or module installed. Remove any such blocks or modules installed using the admin settings page and start the install process again. However, do also make sure that you have included all optional plugins that were required by your courses. This is particularly common with &amp;quot;editing on&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*If you &#039;&#039;&#039;do not see any blocks listed&#039;&#039;&#039;, turn editing on and remove any blocks that you have added to that page and try reloading.&lt;br /&gt;
&lt;br /&gt;
*You may get this error immediately after &#039;&#039;&#039;selecting a language&#039;&#039;&#039;. At this stage of the installation process your Moodle computer may need to connect to the Internet and download a language pack, so check that the computer can access the Internet by using a browser. Check also that your PHP settings are as given in the Moodle [[Installing_Moodle#Requirements | Moodle Requirements]] page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=97734 PHP configuration error] forum discussion&lt;br /&gt;
&lt;br /&gt;
==Installation hangs when setting-up database tables==&lt;br /&gt;
Sometimes the installation will hang when setting up tables, where only half the page displayed in the browser and/or other outputs are removed.  You may see truncated MySQL statements, or the “Scroll to continue” link is displayed but no “Continue” button is there. &lt;br /&gt;
&lt;br /&gt;
See [[Unexpected installation halts]] for more about solutions that involve:&lt;br /&gt;
*Checking for MySQL limits&lt;br /&gt;
*Checking the .htaccess files &lt;br /&gt;
*Code customizations issues&lt;br /&gt;
*Checking memory limit &lt;br /&gt;
*Upgrade incrementally&lt;br /&gt;
*Fix fopen function&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Why can&#039;t I upload a new image into my profile?==&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t see anything on your user profile pages to let you upload user images then it&#039;s usually one of the following:&lt;br /&gt;
*The permissions associated with the role you are using are preventing you from changing your profile picture.&lt;br /&gt;
* GD is not installed, or is not enabled on your server. Make sure &#039;&#039;&#039;GD has been included in your PHP installation&#039;&#039;&#039;. You can check this by going to &#039;&#039;Site Administration &amp;gt; Server &amp;gt; PHP info&#039;&#039; and looking for the gdversion setting. This setting is chosen automatically every time you visit that page. If it shows GD version 1 or version 2 then everything should be fine. Save that configuration page and go back to your user profile.&lt;br /&gt;
* GD is installed, but is in some way corrupt. For instance, [http://moodle.org/mod/forum/discuss.php?d=44271#p386194 see this discussion on empty lines or white spaces in config files.]&lt;br /&gt;
GD is a library that allows image processing. For example, when all is well with your system, and you upload a new profile image, GD compresses the image and produces two thumbnails, one is 100x100 pixels, and the other is 35x35 pixels.&lt;br /&gt;
&lt;br /&gt;
If Moodle thinks GD is not installed, then you will need to &#039;&#039;&#039;install the GD library&#039;&#039;&#039;. &lt;br /&gt;
*On Unix you may need to re-compile PHP with arguments something like this:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-gd &lt;br /&gt;
 --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-ttf --enable-gd-native-ttf &lt;br /&gt;
 --enable-magic-quotes --with-mysql --enable-sockets --enable-track-vars &lt;br /&gt;
 --enable-versioning --with-zlib&lt;br /&gt;
&lt;br /&gt;
* On Windows this is usually a matter of &amp;quot;turning on&amp;quot; the extension in PHP by editing your php.ini file. To do this remove the semicolon for the php_gd2.dll extension - check that this file is actually present in your php extensions  folder first (search your php.ini for extension_dir to determine where this points to on your hard disk). You should then have a line that looks like this:&lt;br /&gt;
 extension=php_gd2.dll&lt;br /&gt;
&lt;br /&gt;
:Windows users should see the [[Installing AMP|installation instructions]] for further help. &lt;br /&gt;
&lt;br /&gt;
3. Remember to &#039;&#039;&#039;restart your webserver&#039;&#039;&#039; (if possible) and re-visit the Moodle configuration page after making any changes to PHP so it can pick up the correct version of GD.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.&lt;br /&gt;
&lt;br /&gt;
== Why doesn&#039;t my Moodle site display the time and date correctly? ==&lt;br /&gt;
&lt;br /&gt;
Please check the timezone settings in settings in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Location &amp;gt; Location settings&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== How do I uninstall Moodle?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Webhost/manual installation&#039;&#039;&#039;: If you have installed Moodle manually or have installed onto a webhost, follow these steps:&lt;br /&gt;
*Delete the moodle database using this mysql command (or delete using your mysql client, e.g. PHPMyAdmin):&lt;br /&gt;
&amp;lt;pre&amp;gt;sql&amp;gt;DROP DATABASE moodle;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:In the above example replace &#039;moodle&#039; with the name of the moodle database you created when installing.&lt;br /&gt;
*Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.&lt;br /&gt;
*Delete the moodle directory itself. This will delete all of the moodle PHP script files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;XAMPP windows installation&#039;&#039;&#039;: If you have installed Moodle on windows through the XAMPP package, follow these steps:&lt;br /&gt;
*Open cmd.exe and navigate to this directory within your installation directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;server/mysql/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Run this command, replacing USERNAME with your database username (the default is &amp;quot;root&amp;quot;) and DATABASE with your database name (the default is &amp;quot;moodle&amp;quot;):&lt;br /&gt;
&amp;lt;pre&amp;gt;mysqladmin.exe -u USERNAME -p drop DATABASE&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Enter your database password at the prompt (the default is &amp;quot;&amp;quot; [blank]).&lt;br /&gt;
*Enter &amp;quot;y&amp;quot; to confirm the database drop.&lt;br /&gt;
*Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.&lt;br /&gt;
*Delete the moodle directory itself. This will delete all of the moodle PHP script files.&lt;br /&gt;
&lt;br /&gt;
==Migrating Moodle to a new site or server==&lt;br /&gt;
Migrating Moodle means that you have to move the current installation to a new server, and so may have to change IP addresses or DNS entries. To do this you will need to change the $CFG-&amp;gt;wwwroot value in the config.php on the new server. You will also have to change any absolute links stored in the database backup file (before restoring the file on the new server) either using the [[Search and replace tool]], your text editor or another &amp;quot;search and replace&amp;quot; tool, e.g. sed. For more details see the [[Moodle_migration | Moodle Migration]] page.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Why does my new installation display correctly on the server, but when I view it from a different machine, styles and images are missing?==&lt;br /&gt;
In the installation instructions, one of the suggested settings for &#039;webroot&#039; is &#039;localhost&#039;. This is fine if all you want to do is some local testing of your new Moodle installation. If, however, you want to view your new installation from another machine on the same local area network, or view your site on the internet, you will have to change this setting:&lt;br /&gt;
*For local testing, &#039;localhost&#039; is fine for the webroot ($CFG-&amp;gt;wwwroot in config.php). &lt;br /&gt;
*If you want to test your site from other machines on the same local area network (LAN), then you will have to use the private ip address of the serving machine, (e.g. 192.168.1.2/moodle) or the network name of the serving computer (e.g. network_name_of_serving_machine/moodle) as the web root. Depending on your LAN setup, it may be better to use the network name of the computer rather than its (private) ip address, because the ip address can and will change from time to time. If you don&#039;t want to use the network name, then you will have to speak to your network administrator and have them assign a permanent ip address to the serving machine.&lt;br /&gt;
*Finally, if you want to test your new installation across the internet, you will have to use either a domain name or a permanent (public) ip address/moodle as your web root. To handle both types of access, see [https://docs.moodle.org/en/masquerading masquerading].&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Maximum upload file size - how to change it?==&lt;br /&gt;
There are several places to change the maximum file upload size. The first place to check is the Administration block.   Security -&amp;gt; Site Policies -&amp;gt; and look for &amp;quot;Maximum Uploaded File Size&amp;quot;.  This is the &amp;quot;maxbyte&amp;quot; variable found in older versions of Moodle (under Admin &amp;gt; Variables). Teachers may also set the maximum file size by the [[Course_settings#Maximum_upload_size|course administration block]].&lt;br /&gt;
&lt;br /&gt;
If the above does not provide a large enough figure you will need to make changes in your server settings. The usual place is in your php.ini file (go to Site administration &amp;gt; Server &amp;gt; PHPinfo and check a few lines down for its location). Look for settings &#039;&#039;&#039;upload_max_filesize&#039;&#039;&#039; and &#039;&#039;&#039;post_max_size&#039;&#039;&#039;, setting them both to your desired new value (e.g. &#039;64MB&#039;). You will need to restart the web server for these changes to take effect - e.g. on Linux, &#039;&#039;&#039;/etc/init.d/apache2 force-reload&#039;&#039;&#039;. Check your documentation or just reboot the server. [http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size NGINX] system administrators should also add client_max_body_size=XXX to the &amp;quot;http&amp;quot; section of their nginx main configuration file. ([https://rtcamp.com/tutorials/php/increase-file-upload-size-limit/#change-in-nginx-config see more info])&lt;br /&gt;
&lt;br /&gt;
For more help see:&lt;br /&gt;
*[[Administration_FAQ#How_do_the_limits_on_uploaded_files_work.3F]]&lt;br /&gt;
*[[Installing_Moodle#Recheck_PHP_settings]]&lt;br /&gt;
*[[Installing_Moodle#Using_a_.htaccess_file_for_webserver_and_PHP_settings]]&lt;br /&gt;
*[[Site_policies#Maximum_uploaded_file_size]]&lt;br /&gt;
*These forum posts: http://moodle.org/mod/forum/discuss.php?d=63840#287960 and http://moodle.org/mod/forum/discuss.php?d=93882#p414650&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Moodle claims PHP float handling is not compatible==&lt;br /&gt;
&lt;br /&gt;
The symptom is that when you try to install or upgrade your Moodle, you get a message &amp;quot;Detected unexpected problem in handling of PHP float numbers&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=114945 This forum thread] and MDL-18253 have more information. In short, this problem should not happen, you can help us by telling posting information about exactly which version of PHP, and OS you are using. That may let us find a way to work around this problem.&lt;br /&gt;
&lt;br /&gt;
You may be able to solve this issue by installing a more recent PHP versions. If you compile PHP yourself from source, changing the compilation options may help. However, since we don&#039;t understand the cause, we don&#039;t really know. If you do find a solution that works for you, please do tell us about it.&lt;br /&gt;
&lt;br /&gt;
Update: we have a guess that the problem may be the [http://au2.php.net/manual/en/ini.core.php#ini.precision &#039;precision&#039; setting in your php.ini file]. In a default PHP install this is set of 14. On at least one server that exhibited this problem it had been changed to a smaller value. So, if you see this problem, please try adding &lt;br /&gt;
 ini_set(&#039;precision&#039;, 14);&lt;br /&gt;
to your config.php file, and report your success in MDL-18253.&lt;br /&gt;
&lt;br /&gt;
==When upgrading Moodle claims my MySQL database is not UTF8 when I&#039;m sure it is==&lt;br /&gt;
&lt;br /&gt;
The UTF-8 detection for MySQL databases was finally fixed in Moodle 2.5, some incorrectly configured databases were previously reported as compatible. &lt;br /&gt;
&lt;br /&gt;
Please note it is not enough to alter the charset and collation of the database, you must fix each text column in each database table!&lt;br /&gt;
&lt;br /&gt;
Before going any further make sure you understand the difference between character encoding (how text is stored) and collations (the rules for comparing text strings). Collation problems will never cause this error but have a bunch of problems of their own.&lt;br /&gt;
&lt;br /&gt;
See [[Converting your MySQL database to UTF8]]&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== How do I run multiple instances of Moodle without duplicating base code? ==&lt;br /&gt;
&lt;br /&gt;
See [http://moodle.org/mod/forum/discuss.php?d=13211 this thread] for a detailed explanation by [[User:Martin_Langhoff| Martin Langhoff]].&lt;br /&gt;
&lt;br /&gt;
== What is FreeTDS and how can I use it in my installation? ==&lt;br /&gt;
[[Installing MSSQL for PHP|FreeTDS]] is an open source implementation of the Tabular Data Stream protocol used by Microsoft SQL Server and Sybase for their databases. Unfortunately, Microsoft servers don&#039;t usually accept TDS 5.0 connections. FreeTDS allows your Unix/Linux applications to talk to these other database products and import and export data between different systems successfully.&lt;br /&gt;
&lt;br /&gt;
== How do I install a plugin? ==&lt;br /&gt;
&lt;br /&gt;
Please see [[Installing plugins]].&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t enable a plugin on the Plugins overview page because the icon is not clickable==&lt;br /&gt;
The open and closed eye icon on the Plugins overview page is simply there to show whether or not a plugin is enabled. You can&#039;t edit plugins from this screen. If you wish to enable a plugin, to to the appropriate page for managing the type of plugin you need, for instance &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Plugins&amp;gt;Repositories&amp;gt;Manage repositories&#039;&#039; or &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Plugins&amp;gt;Activity modules&amp;gt;Manage activities.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Errors FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum]&lt;br /&gt;
* [[Beginning_Moodle_2.0_Administration|Beginning Moodle 2.0 Administration FAQ]]&lt;br /&gt;
&lt;br /&gt;
Installing Moodle in a shared web hosting environment:&lt;br /&gt;
* [[Finding_and_Selecting_A_Web_Host|Finding and Selecting a web host]]&lt;br /&gt;
* [[Installing_Moodle_on_SmarterASP.NET|Installing Moodle on SmarterASP.NET web hosting]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Instalación]]&lt;br /&gt;
[[fr:FAQ d&#039;installation]]&lt;br /&gt;
[[ja:インストールFAQ]]&lt;br /&gt;
[[de:Installation FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Errors_FAQ&amp;diff=121855</id>
		<title>Errors FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Errors_FAQ&amp;diff=121855"/>
		<updated>2015-12-27T22:15:48Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing a Moodle site}}==Error: database connection failed==&lt;br /&gt;
&lt;br /&gt;
If you get errors like &amp;quot;database connection failed&amp;quot; or &amp;quot;could not connect to the database you specified&amp;quot;, here are some possible reasons and some possible solutions.&lt;br /&gt;
&lt;br /&gt;
* Your &#039;&#039;&#039;database server&#039;&#039;&#039; isn&#039;t installed or running. To check this for MySQL try typing the following command line&lt;br /&gt;
 $telnet database_host_name 3306&lt;br /&gt;
:You should get a cryptic response which includes the version number of the MySQL server. &lt;br /&gt;
* If you are attempting to run &#039;&#039;&#039;two instances of Moodle on different ports&#039;&#039;&#039;, use the ip address of the host (not localhost) in the $CFG-&amp;gt;dbhost setting, e.g. $CFG-&amp;gt;dbhost = 127.0.0.1:3308.&lt;br /&gt;
* You don&#039;t have the &#039;&#039;&#039;PHP mysql or postgresql extensions&#039;&#039;&#039; installed (please refer to FAQ re. whether PHP is installed).&lt;br /&gt;
* You haven&#039;t created a &#039;&#039;&#039;Moodle database and assigned a user&#039;&#039;&#039; with the correct privileges to access it. &lt;br /&gt;
* The &#039;&#039;&#039;Moodle database settings&#039;&#039;&#039; are incorrect. The database name, database user or database user password in your Moodle configuration file &#039;&#039;config.php&#039;&#039; are incorrect. Use phpMyAdmin to set up and check your MySQL installation.&lt;br /&gt;
* Check that there are &#039;&#039;&#039;no apostrophes or non-alphabetic letters&#039;&#039;&#039; in your MySQL username or password.&lt;br /&gt;
* You are using MySQL version 4.1 or higher but the PHP MySQL extension is pre-4.1 (check in your phpinfo output). In this case the &#039;&#039;&#039;default password hashing algorithm&#039;&#039;&#039; is incompatible with that available in the PHP mysql extension versions 4.x.x. Use these MySQL commands to change the passwords to the old format:&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt;SET PASSWORD FOR &#039;root&#039;@&#039;localhost&#039; = OLD_PASSWORD(&#039;password&#039;);&lt;br /&gt;
 mysql&amp;gt;SET PASSWORD FOR &#039;moodleuser&#039;@&#039;localhost&#039; = OLD_PASSWORD(&#039;password&#039;);&lt;br /&gt;
&lt;br /&gt;
:Also, consider upgrading your PHP MySQL extension. See [http://dev.mysql.com/doc/mysql/en/old-client.html this MySQL document] for further information on how to deal with this problem.&lt;br /&gt;
* You are using Fedora core 3 or some other Linux system with &#039;&#039;&#039;SELinux installed&#039;&#039;&#039; and enabled. See the following URL for information on how to disable SELinux: http://fedora.redhat.com/projects/selinux/ If you don&#039;t want to disable SELinux, you have to allow httpd process to create network connections:&lt;br /&gt;
&lt;br /&gt;
 setsebool httpd_can_network_connect true&lt;br /&gt;
 &lt;br /&gt;
* Mac OSX users -- if you are running MySQL on a Mac OSX, try changing &#039;&#039;&#039;$CFG-&amp;gt;dbhost&#039;&#039;&#039; from &#039;localhost&#039; to &#039;127.0.0.1&#039;&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: MySQL page on [http://dev.mysql.com/doc/refman/5.0/en/common-errors.html common errors] which lists several possible scenarios for connection failure, with advice on how to fix the problems.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t log in with message &amp;quot;Please verify that the current setting of session.save_path is correct&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
This error occurs when PHP is having problems saving its session files. You may also see these other error messages displayed on the screen or in your log files:&lt;br /&gt;
&lt;br /&gt;
 Warning: Unknown: open(some-path/sessions/sess_acbf942a7399db3489ffa910e35d5242, O_RDWR)&lt;br /&gt;
 failed: Permission denied (13) in Unknown on line 0&lt;br /&gt;
&lt;br /&gt;
 Warning: Unknown(): open(some-path/sessions/sess_acbf942a7399db3489ffa910e35d5242, O_RDWR) &lt;br /&gt;
 failed: No space left on device (28) in Unknown on line 0&lt;br /&gt;
&lt;br /&gt;
 Warning: Unknown: Failed to write session data (files). Please verify that the current &lt;br /&gt;
 setting of session.save_path is correct (some-path/sessions) in Unknown on line 0 &lt;br /&gt;
&lt;br /&gt;
To temporarily bypass these errors, &#039;&#039;&#039;use database sessions&#039;&#039;&#039; by editing your [[Configuration_file | moodle configuration file]] and adding this line:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;dbsessions = true;&lt;br /&gt;
&lt;br /&gt;
Database sessions may overload your mysql database and are not ideal in a shared hosting environment, so if this solves the problem, you can start fixing the problem as follows:&lt;br /&gt;
* Check &#039;&#039;&#039;access rights&#039;&#039;&#039;. The session.save_path should be accessible by the apache user. Try this command:&lt;br /&gt;
&lt;br /&gt;
 chown -R apache:apache some-path/sessions&lt;br /&gt;
&lt;br /&gt;
:This assumes that &#039;apache&#039; is the name of the user your webserver runs under - it could also be &#039;nobody&#039;.&lt;br /&gt;
* Check the &#039;&#039;&#039;permissions&#039;&#039;&#039; to the directory that PHP is trying to save to (session.save_path = some-path/sessions). Set the permissions initially to 0777 (everyone read, write, execute) with this command:&lt;br /&gt;
&lt;br /&gt;
 chmod -R 0777 some-path/sessions&lt;br /&gt;
&lt;br /&gt;
:If this fixes the problem, reduce the permissions (700 is recommended).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: Session problems can be specific to your server environment. As an example, see [http://moodle.org/mod/forum/discuss.php?d=55925#254596 this forum discussion] about session problems with Lycos hosting.&lt;br /&gt;
&lt;br /&gt;
==Error: A server error that affects your login session was detected==&lt;br /&gt;
If restarting your browser and logging in again to your Moodle site does not work, see the Using Moodle [http://moodle.org/mod/forum/discuss.php?d=73716 forum discussion about this error message].&lt;br /&gt;
&lt;br /&gt;
If this was received at a Moodle.org site, the site could be in the process of updating.  Please try the suggestion and/or wait and try it again. Or report it in [[Tracker]].&lt;br /&gt;
&lt;br /&gt;
==Error: Failed opening required &#039;/web/moodle/lib/setup.php&#039;==&lt;br /&gt;
&lt;br /&gt;
In your &#039;&#039;config.php&#039;&#039;, the setting that you use for the dirroot variable must be the complete path from the root of your server&#039;s hard drive.&lt;br /&gt;
&lt;br /&gt;
Sometimes people only use the path from their home directory, or relative to the root of the web server directory.&lt;br /&gt;
&lt;br /&gt;
==My pages show fatal errors such as : Parse error, call to undefined function: get_string()==&lt;br /&gt;
&lt;br /&gt;
If you see errors like:&lt;br /&gt;
&lt;br /&gt;
 Parse error: parse error, unexpected T_VARIABLE in /path/to/moodle/config.php on line 94 &lt;br /&gt;
 Fatal error: Call to undefined function: get_string() in /path/to/moodle/mod/resource/lib.php&lt;br /&gt;
 on line 11&lt;br /&gt;
&lt;br /&gt;
then you have probably left out a semi-colon or closing quote from a line in &#039;&#039;config.php&#039;&#039; (previous to line 94).&lt;br /&gt;
&lt;br /&gt;
Another possibility is that you edited &#039;&#039;config.php&#039;&#039; in a program like Word and saved it as a HTML web page, instead of using a plain text editor like Notepad.&lt;br /&gt;
&lt;br /&gt;
Another thing to check, particularly if you are using additional plugins, is whether any of the php scripts use short open tags (&amp;lt;? ?&amp;gt;) instead of proper ones (&amp;lt;?php ?&amp;gt;). Short tags are bad for various reasons, so first contact the author of that extension to tell them about the problem. Then either replace short tags with conventional ones, or set this line in php.ini:&lt;br /&gt;
&lt;br /&gt;
 short_open_tag = On&lt;br /&gt;
&lt;br /&gt;
You should never find short tags in core moodle code. If you do, please file a bug in the tracker.&lt;br /&gt;
&lt;br /&gt;
==When I go to the admin page, I get told to make dirroot blank!==&lt;br /&gt;
&lt;br /&gt;
If you see errors like this:&lt;br /&gt;
&lt;br /&gt;
 Please fix your settings in config.php: &lt;br /&gt;
 You have: $CFG-&amp;gt;dirroot = &amp;quot;/home/users/fred/public_html/moodle&amp;quot;; &lt;br /&gt;
 but it should be: $CFG-&amp;gt;dirroot = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
then you have encountered a small bug that occurs on some servers. The problem is with the error-checking mechanism, not with your actual path. To fix it, find this line (line 66) in the file &#039;&#039;admin/index.php&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 if ($dirroot != $CFG-&amp;gt;dirroot) {&lt;br /&gt;
&lt;br /&gt;
and change it to this:&lt;br /&gt;
&lt;br /&gt;
 if (!empty($dirroot) and $dirroot != $CFG-&amp;gt;dirroot) {&lt;br /&gt;
&lt;br /&gt;
==Why do I keep getting error messages about &amp;quot;headers already sent&amp;quot;?==&lt;br /&gt;
&lt;br /&gt;
If you see errors like this:&lt;br /&gt;
&lt;br /&gt;
 Warning: Cannot add header information - headers already sent by &lt;br /&gt;
 (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php &lt;br /&gt;
 on line 1322 &lt;br /&gt;
&lt;br /&gt;
 Warning: Cannot add header information - headers already sent by &lt;br /&gt;
 (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php &lt;br /&gt;
 on line 1323 &lt;br /&gt;
&lt;br /&gt;
 Warning: Cannot add header information - headers already sent by &lt;br /&gt;
 (output started at /webs/moodle/config.php:87) in /webs/moodle/login/index.php &lt;br /&gt;
 on line 54&lt;br /&gt;
&lt;br /&gt;
you have blank lines or spaces after the final &amp;lt;code&amp;gt;?&amp;gt;&amp;lt;/code&amp;gt; in your &#039;&#039;config.php&#039;&#039; file. Sometimes text editors add these - for example Notepad on Windows - so you may have to try a different text editor to remove these spaces or blank lines completely.&lt;br /&gt;
&lt;br /&gt;
==Error: &amp;quot;500:Internal Server Error&amp;quot;==&lt;br /&gt;
There are several possible causes for this error. It is a good idea to start by checking your web server error log which should have a more comprehensive explanation. However, here are some known possibilities....&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;&#039;Syntax error&#039;&#039;&#039;: There is a syntax error in your .htaccess or httpd.conf files. The way in which directives are written [http://httpd.apache.org/docs/1.3/howto/htaccess.html#when differs] depending on which file you are using. You can test for configuration errors in your Apache files using the command:&lt;br /&gt;
 #apachectl configtest&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;&#039;PHPsuexec&#039;&#039;&#039;: Your server does not support .htaccess files, especially if it is running PHPsuexec, which is an Apache module used for increasing the security of a site on a hosted system. In this situation:&lt;br /&gt;
&lt;br /&gt;
- you may also see a 403: Forbidden error.&lt;br /&gt;
&lt;br /&gt;
- the webserver executes under your own username and all files have a maximum permissions level of 755. Check that this is set for your Moodle directory in your control panel or (if you have access to the shell) use this command:&lt;br /&gt;
 #chmod -R 755 moodle&lt;br /&gt;
&lt;br /&gt;
- use a PHP.INI file instead of a .htaccess in the directory where the Moodle PHP script is being executed. For example: if you are receiving a memory exhausted error when your server is executing the file moodle/admin/cron.php, use a PHP.INI file to change your memory_limit and copy it to the moodle/admin directory. Remember that for PHP4, PHP.INI files are per-directory, so you&#039;ll need to copy it to each sub-directory. If you are using PHP5 or higher on a shared host, check with your host on whether they support custom PHP.INI files, and how to create them. The syntax used in a PHP.INI file is different from a .htaccess file and you need to take out php_value/php_flag at the beginning of the line and use an equals sign to assign a value, e.g.&lt;br /&gt;
 php_value memory_limit 128M &amp;lt;-- .htaccess&lt;br /&gt;
 memory_limit = 128M         &amp;lt;-- php.ini equivalent &lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;&#039;Incompatible directive&#039;&#039;&#039;: You may have a directive in your .htaccess or httpd.conf files which are not compatible with your web server version. Check your webserver documentation.&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;403: Forbidden&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
Check your webserver configuration. See also the section above &amp;quot;500:Internal Server Error&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Fatal error allowed memory size exhausted. How do I increase my php memory limit?==&lt;br /&gt;
You will sometimes see an error message something like this:&lt;br /&gt;
 Fatal error: Allowed memory size of 67108864 bytes exhausted &lt;br /&gt;
 (tried to allocate xx bytes) in /var/www/moodle/yyyy.php&lt;br /&gt;
This error means that the php memory_limit value is not enough for the php script. The memory_limit value is the &amp;quot;allowed memory size&amp;quot; - 64M in the example above (67108864 bytes / 1024 = 65536 KB. 65536 KB / 1024 = 64 MB). You will need to increase the php memory_limit value until this message is not shown anymore. There are two methods of doing this.&lt;br /&gt;
*On a hosted installation you should ask your host&#039;s support how to do this. However, many allow .htaccess files. If yours does, add the following line to your .htaccess file (or create one in the moodle directory if it does not already exist):&lt;br /&gt;
 php_value memory_limit &amp;lt;value&amp;gt;M&lt;br /&gt;
 Example: php_value memory_limit 40M&lt;br /&gt;
*If you have your own server with shell access, edit your php.ini file (make sure it&#039;s the correct one by checking in your phpinfo output) as follows:&lt;br /&gt;
 memory_limit &amp;lt;value&amp;gt;M&lt;br /&gt;
 Example: memory_limit 40M&lt;br /&gt;
* For later versions of Moodle you could be looking at figures in the region of 512M for all functions to work properly (backup and restore are particularly memory hungry). It is sensible to monitor the memory usage on your server if using these large settings.&lt;br /&gt;
Remember that you need to restart your web server to make changes to php.ini effective. An alternative is to disable the memory_limit by using the command &#039;&#039;memory_limit 0&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Error: &amp;quot;Your session has timed out. Please login again.&amp;quot; or &amp;quot;The page isn&#039;t redirecting properly&amp;quot; or &amp;quot;This webpage has a redirect loop&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
Please do one/all of the following:&lt;br /&gt;
* Try deleting cookies manually from your browser and close it down, then access your site again. Sometimes this clears up the problem.&lt;br /&gt;
* Check that your &#039;&#039;moodledata/sessions&#039;&#039; directory has write permissions. When you access Moodle a new file should be created there.&lt;br /&gt;
* If you are running two versions of Moodle on the same computer, set a cookie prefix in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Session handling]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The discussion [http://moodle.org/mod/forum/discuss.php?d=46580 Your session has timed out. Please login again] has further suggested solutions:&lt;br /&gt;
* Browse to: http://yoursite/subdir/admin/purgecaches.php , it should prompt you to login first and then redirect to a page that has a button to purge all caches.&lt;br /&gt;
* If you can access your server files, go to the &#039;moodledata&#039; folder, go to the &#039;cache&#039; folder inside and erase all the contents there (usually only two files). Moodle will delete the frozen session with the redirect loop and Moodle will work again.&lt;br /&gt;
&lt;br /&gt;
==Fatal error: Maximum execution time of 30 seconds exceeded in...(when installing)==&lt;br /&gt;
* Your computer is taking too much time to execute the installation scripts.&lt;br /&gt;
* Press F5 (refresh) until it finishes the installation process.&lt;br /&gt;
&lt;br /&gt;
==How can I fix just one bug, without upgrading my whole site?==&lt;br /&gt;
&lt;br /&gt;
Suppose:&lt;br /&gt;
* You are running an older Moodle version.&lt;br /&gt;
* You are experiencing a particular bug.&lt;br /&gt;
* You have searched in the [http://tracker.moodle.org/ tracker], and found that your problem is MDL-abc, and that it has been fixed in the latest version.&lt;br /&gt;
* For some reason, you cannot upgrade your whole site, even though the latest version probably has security fixes.&lt;br /&gt;
&lt;br /&gt;
Then, how can you get the fix for just this one bug, without upgrading your whole site? Well, if you are prepared to manually patch the code, you can probably get this information from the tracker. Please see [[How to fix just one bug without upgrading|this guide]].&lt;br /&gt;
&lt;br /&gt;
==error/moodle/cannot finish ui if not setting ui==&lt;br /&gt;
An occasionally reported intermittent error that may or may not be related to the php ini value of max_execution_time. So far proven intractable, as it has not been found to have a consistent cause and cannot be consistently duplicated. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Error]] for a list of Moodle error pages. &lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Error]]&lt;br /&gt;
&lt;br /&gt;
[[es:Errores FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108714</id>
		<title>Algebra filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108714"/>
		<updated>2014-01-04T01:53:45Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Improve}}&lt;br /&gt;
{{Filters}}&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; While the Algebra filter is included in later versions of Moodle, a more effective way of writing mathematical notation is by using the [[TeX notation filter]]. TeX is more cross platform and appears far more flexible, than the Algebra Filter.  &lt;br /&gt;
&lt;br /&gt;
==Generally==&lt;br /&gt;
&lt;br /&gt;
Moodle has an  &amp;quot;algebra filter&amp;quot; which can display mathematical expressions as if they were typeset. The filter is included in the standard Moodle packages but the administrator must activate it before you can use it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; the use of the algebra filter &#039;&#039;&#039;REQUIRES&#039;&#039;&#039; that the Moodle Tex filter also be working as the algebra filter simply parses math expressions in one syntax and then converts the expressions to LaTex expressions for the Tex filter to render and display. The filter uses a borrowed perl script&lt;br /&gt;
&lt;br /&gt;
The filter (see http://cvs.moodle.org/moodle/filter/algebra/ ) uses algebra2tex.pl, a perl script (and its associated perl module, AlgParser.pm) to parse text expressions delimited by double@ signs as tokens (though the tokens employed can be tweaked manually.)&lt;br /&gt;
&lt;br /&gt;
NOTE perl script REQUIRES &#039;&#039;&#039;Perl&#039;&#039;&#039;. This is no problem with most Linux servers, but may be the cause for malfunctions in the Win world like broken connections. Exceptions / failures are NOT catched and reported via this Moodle filter.&lt;br /&gt;
If there is no Perl available, activate Moodle Tex (as mentioned above) and use the JAVA Math Formula Editor. It is available after activating Tex. Minor corrections in the resulting Tex code dont need deeper digging in Tex fundamentals.&lt;br /&gt;
&lt;br /&gt;
While many have argued that the algebra filter is easy to use, there is apparently no Moodle reference on its &amp;quot;grammar&amp;quot; or &amp;quot;syntax&amp;quot;. Research in to Webworks produced these two links for using webworks text expressions (the first one is arguably replaced by the second):&lt;br /&gt;
&lt;br /&gt;
* http://webwork.math.rochester.edu/docs/docs/pglanguage/availableFunctions.html (no longer available.) &lt;br /&gt;
* http://webwork.maa.org/wiki/Mathematical_notation_recognized_by_WeBWorK  (the connection is not clear.) &lt;br /&gt;
&lt;br /&gt;
See http://moodle.org/mod/forum/discuss.php?d=126522&amp;amp;parent=554632.&lt;br /&gt;
&lt;br /&gt;
There is a discussion of Algebra filter syntax at http://moodle.org/mod/forum/discuss.php?d=5402 offered by [http://moodle.org/user/view.php?id=2466&amp;amp;course=5 Zbigniew Fiedorowicz].&lt;br /&gt;
&lt;br /&gt;
It appears that as of Moodle.org moving to Moodle 2 (late 2010) the Algebra filter in the forums is no longer working. It also appears that the Algebra filter does not work in Moodle Docs (which is not Moodle code, but MediaWiki, which I don&#039;t believe has a ready filter based on algebra2tex.pl.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
The file algebradebug.php is provided in the filter folder for the purpose of debugging. Problems may arise comes from the first tags in algebradebug.php &lt;br /&gt;
&lt;br /&gt;
 define(&#039;NO_MOODLE_COOKIES&#039;, true); // Because it interferes with caching&lt;br /&gt;
&lt;br /&gt;
You can delete the line or set it to false.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Filtre Algebra]]&lt;br /&gt;
[[es:Filtro de álgebra]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Algebra_filter&amp;diff=108713</id>
		<title>Talk:Algebra filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Algebra_filter&amp;diff=108713"/>
		<updated>2014-01-04T01:52:14Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There is a question as to whether the Algebra Filter is even working in v2.x. So is this page even necessary? It is my understanding that the Algebra Filter works using a Perl script. As this is so, then why persist with it? Perl runs in Linux servers but more and more servers are surrendering to Microsoft, which does not use Perl, I am given to understand. TeX is a more accessible across platforms, so if the TeX Notation Filter was developed further, would it not make better sense to drop support for the Algebra Filter altogether in a future version of Moodle? --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 09:51, 4 January 2014 (WST)&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Algebra_filter&amp;diff=108712</id>
		<title>Talk:Algebra filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Algebra_filter&amp;diff=108712"/>
		<updated>2014-01-04T01:51:34Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There is a question as to whether the Algebra Filter is even working in v2.x. So is this page even necessary? It is my understanding that the Algebra Filter works using a Perl script. As this is so, then why persist with it? Perl runs in Linux servers but more and more servers are surrendering to Microsoft, which does not use Perl, I am given to understand. TeX is a more accessible across platforms, so if the TeX Notation Filter was developed further, it would make better sense to drop support for the Algebra Filter altogether in a future version of Moodle. --[[User:Colin Fraser|Colin Fraser]] ([[User talk:Colin Fraser|talk]]) 09:51, 4 January 2014 (WST)&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Algebra_filter&amp;diff=108711</id>
		<title>Talk:Algebra filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Algebra_filter&amp;diff=108711"/>
		<updated>2014-01-04T01:51:24Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: Created page with &amp;quot;There is a question as to whether the Algebra Filter is even working in v2.x. So is this page even necessary? It is my understanding that the Algebra Filter works using a Perl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There is a question as to whether the Algebra Filter is even working in v2.x. So is this page even necessary? It is my understanding that the Algebra Filter works using a Perl script. As this is so, then why persist with it? Perl runs in Linux servers but more and more servers are surrendering to Microsoft, which does not use Perl, I am given to understand. TeX is a more accessible across platforms, so if the TeX Notation Filter was developed further, it would make better sense to drop support for the Algebra Filter altogether in a future version of Moodle.&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108697</id>
		<title>Algebra filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108697"/>
		<updated>2014-01-03T11:13:54Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Generally */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Improve}}&lt;br /&gt;
{{Filters}}&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; While the Algebra filter is included in later versions of Moodle, a more effective way of writing mathematical notation is by using the [[TeX notation filter]]. &lt;br /&gt;
&lt;br /&gt;
==Generally==&lt;br /&gt;
&lt;br /&gt;
Moodle has an  &amp;quot;algebra filter&amp;quot; which can display mathematical expressions as if they were typeset. The filter is included in the standard Moodle packages but the administrator must activate it before you can use it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; the use of the algebra filter &#039;&#039;&#039;REQUIRES&#039;&#039;&#039; that the Moodle Tex filter also be working as the algebra filter simply parses math expressions in one syntax and then converts the expressions to LaTex expressions for the Tex filter to render and display. The filter uses a borrowed perl script&lt;br /&gt;
&lt;br /&gt;
The filter (see http://cvs.moodle.org/moodle/filter/algebra/ ) uses algebra2tex.pl, a perl script (and its associated perl module, AlgParser.pm) to parse text expressions delimited by double@ signs as tokens (though the tokens employed can be tweaked manually.)&lt;br /&gt;
&lt;br /&gt;
NOTE perl script REQUIRES &#039;&#039;&#039;Perl&#039;&#039;&#039;. This is no problem with most Linux servers, but may be the cause for malfunctions in the Win world like broken connections. Exceptions / failures are NOT catched and reported via this Moodle filter.&lt;br /&gt;
If there is no Perl available, activate Moodle Tex (as mentioned above) and use the JAVA Math Formula Editor. It is available after activating Tex. Minor corrections in the resulting Tex code dont need deeper digging in Tex fundamentals.&lt;br /&gt;
&lt;br /&gt;
While many have argued that the algebra filter is easy to use, there is apparently no Moodle reference on its &amp;quot;grammar&amp;quot; or &amp;quot;syntax&amp;quot;. Research in to Webworks produced these two links for using webworks text expressions (the first one is arguably replaced by the second):&lt;br /&gt;
&lt;br /&gt;
* http://webwork.math.rochester.edu/docs/docs/pglanguage/availableFunctions.html (no longer available.) &lt;br /&gt;
* http://webwork.maa.org/wiki/Mathematical_notation_recognized_by_WeBWorK  (the connection is not clear.) &lt;br /&gt;
&lt;br /&gt;
See http://moodle.org/mod/forum/discuss.php?d=126522&amp;amp;parent=554632.&lt;br /&gt;
&lt;br /&gt;
There is a discussion of Algebra filter syntax at http://moodle.org/mod/forum/discuss.php?d=5402 offered by [http://moodle.org/user/view.php?id=2466&amp;amp;course=5 Zbigniew Fiedorowicz].&lt;br /&gt;
&lt;br /&gt;
It appears that as of Moodle.org moving to Moodle 2 (late 2010) the Algebra filter in the forums is no longer working. It also appears that the Algebra filter does not work in Moodle Docs (which is not Moodle code, but MediaWiki, which I don&#039;t believe has a ready filter based on algebra2tex.pl.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
The file algebradebug.php is provided in the filter folder for the purpose of debugging. Problems may arise comes from the first tags in algebradebug.php &lt;br /&gt;
&lt;br /&gt;
 define(&#039;NO_MOODLE_COOKIES&#039;, true); // Because it interferes with caching&lt;br /&gt;
&lt;br /&gt;
You can delete the line or set it to false.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Filtre Algebra]]&lt;br /&gt;
[[es:Filtro de álgebra]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108696</id>
		<title>Algebra filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108696"/>
		<updated>2014-01-03T11:11:05Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Improve}}&lt;br /&gt;
{{Filters}}&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; While the Algebra filter is included in later versions of Moodle, a more effective way of writing mathematical notation is by using the [[TeX notation filter]]. &lt;br /&gt;
&lt;br /&gt;
==Generally==&lt;br /&gt;
&lt;br /&gt;
Moodle has an  &amp;quot;algebra filter&amp;quot; which can display mathematical expressions as if they were typeset. The filter is included in the standard Moodle packages but the administrator must activate it before you can use it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; the use of the algebra filter &#039;&#039;&#039;REQUIRES&#039;&#039;&#039; that the Moodle Tex filter also be working as the algebra filter simply parses math expressions in one syntax and then converts the expressions to LaTex expressions for the Tex filter to render and display. The filter uses a borrowed perl script&lt;br /&gt;
&lt;br /&gt;
The filter (see http://cvs.moodle.org/moodle/filter/algebra/ ) uses algebra2tex.pl, a perl script (and its associated perl module, AlgParser.pm) to parse text expressions delimited by double@ signs as tokens (though the tokens employed can be tweaked manually.)&lt;br /&gt;
&lt;br /&gt;
NOTE perl script REQUIRES &#039;&#039;&#039;Perl&#039;&#039;&#039;. This is no problem with most Linux servers, but may be the cause for malfunctions in the Win world like broken connections. Exceptions / failures are NOT catched and reported via this Moodle filter.&lt;br /&gt;
If there is no Perl available, activate Moodle Tex (as mentioned above) and use the JAVA Math Formula Editor. It is available after activating Tex. Minor corrections in the resulting Tex code dont need deeper digging in Tex fundamentals.&lt;br /&gt;
&lt;br /&gt;
While many have argued that the algebra filter is easy to use, there is apparently no Moodle reference on its &amp;quot;grammar&amp;quot; or &amp;quot;syntax&amp;quot;. Research in to Webworks produced these two links for using webworks text expressions (the first one is arguably replaced by the second):&lt;br /&gt;
&lt;br /&gt;
* http://webwork.math.rochester.edu/docs/docs/pglanguage/availableFunctions.html&lt;br /&gt;
* http://webwork.maa.org/wiki/Mathematical_notation_recognized_by_WeBWorK&lt;br /&gt;
&lt;br /&gt;
See http://moodle.org/mod/forum/discuss.php?d=126522&amp;amp;parent=554632.&lt;br /&gt;
&lt;br /&gt;
There is a discussion of Algebra filter syntax at http://moodle.org/mod/forum/discuss.php?d=5402 offered by [http://moodle.org/user/view.php?id=2466&amp;amp;course=5 Zbigniew Fiedorowicz].&lt;br /&gt;
&lt;br /&gt;
It appears that as of Moodle.org moving to Moodle 2 (late 2010) the Algebra filter in the forums is no longer working. It also appears that the Algebra filter does not work in Moodle Docs (which is not Moodle code, but MediaWiki, which I don&#039;t believe has a ready filter based on algebra2tex.pl.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
The file algebradebug.php is provided in the filter folder for the purpose of debugging. Problems may arise comes from the first tags in algebradebug.php &lt;br /&gt;
&lt;br /&gt;
 define(&#039;NO_MOODLE_COOKIES&#039;, true); // Because it interferes with caching&lt;br /&gt;
&lt;br /&gt;
You can delete the line or set it to false.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Filtre Algebra]]&lt;br /&gt;
[[es:Filtro de álgebra]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108695</id>
		<title>Algebra filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Algebra_filter&amp;diff=108695"/>
		<updated>2014-01-03T11:07:07Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Generally */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Improve}}&lt;br /&gt;
{{Filters}}&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; While the Algebra filter is included in later versions of Moodle, a more effective way of writing mathematical notation is by using the [[Using_TeX_Notation TeX Notation]] filter. &lt;br /&gt;
&lt;br /&gt;
==Generally==&lt;br /&gt;
&lt;br /&gt;
Moodle has an  &amp;quot;algebra filter&amp;quot; which can display mathematical expressions as if they were typeset. The filter is included in the standard Moodle packages but the administrator must activate it before you can use it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; the use of the algebra filter &#039;&#039;&#039;REQUIRES&#039;&#039;&#039; that the Moodle Tex filter also be working as the algebra filter simply parses math expressions in one syntax and then converts the expressions to LaTex expressions for the Tex filter to render and display. The filter uses a borrowed perl script&lt;br /&gt;
&lt;br /&gt;
The filter (see http://cvs.moodle.org/moodle/filter/algebra/ ) uses algebra2tex.pl, a perl script (and its associated perl module, AlgParser.pm) to parse text expressions delimited by double@ signs as tokens (though the tokens employed can be tweaked manually.)&lt;br /&gt;
&lt;br /&gt;
NOTE perl script REQUIRES &#039;&#039;&#039;Perl&#039;&#039;&#039;. This is no problem with most Linux servers, but may be the cause for malfunctions in the Win world like broken connections. Exceptions / failures are NOT catched and reported via this Moodle filter.&lt;br /&gt;
If there is no Perl available, activate Moodle Tex (as mentioned above) and use the JAVA Math Formula Editor. It is available after activating Tex. Minor corrections in the resulting Tex code dont need deeper digging in Tex fundamentals.&lt;br /&gt;
&lt;br /&gt;
While many have argued that the algebra filter is easy to use, there is apparently no Moodle reference on its &amp;quot;grammar&amp;quot; or &amp;quot;syntax&amp;quot;. Research in to Webworks produced these two links for using webworks text expressions (the first one is arguably replaced by the second):&lt;br /&gt;
&lt;br /&gt;
* http://webwork.math.rochester.edu/docs/docs/pglanguage/availableFunctions.html&lt;br /&gt;
* http://webwork.maa.org/wiki/Mathematical_notation_recognized_by_WeBWorK&lt;br /&gt;
&lt;br /&gt;
See http://moodle.org/mod/forum/discuss.php?d=126522&amp;amp;parent=554632.&lt;br /&gt;
&lt;br /&gt;
There is a discussion of Algebra filter syntax at http://moodle.org/mod/forum/discuss.php?d=5402 offered by [http://moodle.org/user/view.php?id=2466&amp;amp;course=5 Zbigniew Fiedorowicz].&lt;br /&gt;
&lt;br /&gt;
It appears that as of Moodle.org moving to Moodle 2 (late 2010) the Algebra filter in the forums is no longer working. It also appears that the Algebra filter does not work in Moodle Docs (which is not Moodle code, but MediaWiki, which I don&#039;t believe has a ready filter based on algebra2tex.pl.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
The file algebradebug.php is provided in the filter folder for the purpose of debugging. Problems may arise comes from the first tags in algebradebug.php &lt;br /&gt;
&lt;br /&gt;
 define(&#039;NO_MOODLE_COOKIES&#039;, true); // Because it interferes with caching&lt;br /&gt;
&lt;br /&gt;
You can delete the line or set it to false.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Filtre Algebra]]&lt;br /&gt;
[[es:Filtro de álgebra]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=User_policies&amp;diff=106165</id>
		<title>User policies</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=User_policies&amp;diff=106165"/>
		<updated>2013-07-24T12:24:48Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Unsupported role assignments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==User policies==&lt;br /&gt;
The following settings may be changed by an administrator in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Role for visitors===&lt;br /&gt;
Users who are not logged in to the site will be treated as if they have the role specified here, granted to them at the site context. The role of Guest is the default and the recommended setting for standard Moodle sites. The user will still be required to login to participate in an activity.&lt;br /&gt;
&lt;br /&gt;
===Role for guest===&lt;br /&gt;
This option specifies the role that will automatically be assigned to the guest user. This role is also temporarily assigned to non enrolled users when they enter a course that allows guests without password.&lt;br /&gt;
&lt;br /&gt;
===Deny Guest Access to a site altogether===&lt;br /&gt;
&lt;br /&gt;
Go to Site administration ► Plugins ► Authentication ► Manage authentication and there is a switch there that allows you to turn the Guest Access button off altogether.&lt;br /&gt;
&lt;br /&gt;
===Default role for all users===&lt;br /&gt;
&lt;br /&gt;
It is recommended that the default role for all users is set to [[Authenticated user]]. To set it to a custom role, the custom role must be assignable in the system context and have role archetype set to none.&lt;br /&gt;
&lt;br /&gt;
Note: It is not recommended that the default role for all users is set to student, for reasons given in MDL-26805.&lt;br /&gt;
&lt;br /&gt;
===Auto-login guest===&lt;br /&gt;
&lt;br /&gt;
If not set, then visitors must click the &amp;quot;Login as a guest&amp;quot; button before entering a course which allows [[Guest|guest access]].&lt;br /&gt;
&lt;br /&gt;
Note: If auto-login guest is set, the guest login button also needs to be set to show (in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039;), even though visitors won&#039;t necessarily use it.&lt;br /&gt;
&lt;br /&gt;
===Hide user fields===&lt;br /&gt;
The following user fields appear on users&#039; profile pages. Certain user fields are also listed on the course participants page. You can increase student privacy by hiding selected user fields.&lt;br /&gt;
&lt;br /&gt;
Description, city/town, country, web page, ICQ number, Skype ID, Yahoo ID, AIM ID, MSN ID, last access, My courses and first access and groups&lt;br /&gt;
&lt;br /&gt;
*User fields on users&#039; profile pages are hidden from all users with the capability [[Capabilities/moodle/user:viewhiddendetails|moodle/user:viewhiddendetails]] not set.&lt;br /&gt;
*User fields on the course participants page are hidden from all users with the capability [[Capabilities/moodle/course:viewhiddenuserfields|moodle/course:viewhiddenuserfields]] not set.&lt;br /&gt;
&lt;br /&gt;
===Show user identity===&lt;br /&gt;
&lt;br /&gt;
Any of the following fields may be shown to users with the capability [[Capabilities/moodle/site:viewuseridentity|moodle/site:viewuseridentity]] when searching for users and displaying lists of users.&lt;br /&gt;
&lt;br /&gt;
*ID number&lt;br /&gt;
*Email address&lt;br /&gt;
*Phone number&lt;br /&gt;
*Mobile phone&lt;br /&gt;
*Department&lt;br /&gt;
*Institution&lt;br /&gt;
&lt;br /&gt;
This setting is useful for sites with large number of users, where the likelihood of users with the same name is high.&lt;br /&gt;
&lt;br /&gt;
Locations where user identity fields are shown are as follows:&lt;br /&gt;
&lt;br /&gt;
*User selectors ([[Assign roles]] in some places, [[Groups|groups]], forum subscribers)&lt;br /&gt;
*[[Browse list of users]]&lt;br /&gt;
*Course participants&lt;br /&gt;
*[[Gradebook|Grader report]]&lt;br /&gt;
*[[Quiz reports]]&lt;br /&gt;
*[[Using SCORM|SCORM reports]]&lt;br /&gt;
*[[Using Assignment|Assignment submissions]]&lt;br /&gt;
*[[Using Course completion|Course completion report]]&lt;br /&gt;
*[[Using Activity completion|Activity completion report]]&lt;br /&gt;
*[[Enrolled users|Enroling users]]&lt;br /&gt;
&lt;br /&gt;
Tip: Select only one or two fields that are mandatory at your institution. Do not select more than two field otherwise tables become very wide.&lt;br /&gt;
===Maximum users per page===&lt;br /&gt;
{{New features}}&lt;br /&gt;
You can choose here the maximum number of users to be displayed when searching in courses, groups, cohorts etc. The default is 100 but if your Moodle site is very large you can increase the number here.&lt;br /&gt;
&lt;br /&gt;
===Enable Gravatar===&lt;br /&gt;
&lt;br /&gt;
[http://gravatar.com/ Gravatar] (an abbreviation for globally recognized avatar) is a service for providing globally unique avatars.&lt;br /&gt;
&lt;br /&gt;
An administrator can enable the use of gravatars in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039;. If a user has not uploaded a user picture, Moodle will check whether the user&#039;s email address has an associated gravatar and if so, will use the gravatar as the user&#039;s picture.&lt;br /&gt;
&lt;br /&gt;
* [http://www.youtube.com/watch?v=Z4b7tJedlMA Use your Gravatar in Moodle 2.2 screencast]&lt;br /&gt;
&lt;br /&gt;
===Gravatar default image URL===&lt;br /&gt;
&lt;br /&gt;
In Moodle 2.3.3 onwards, if gravatars are enabled, an alternative default user picture may be specified. The options are:&lt;br /&gt;
&lt;br /&gt;
* A gravatar default image - by entering a code such as mm. See https://en.gravatar.com/site/implement/images/ for codes of other gravatar default images.&lt;br /&gt;
* A specified image - by entering the image URL&lt;br /&gt;
&lt;br /&gt;
If the field is left empty then the theme&#039;s default user picture is used.&lt;br /&gt;
&lt;br /&gt;
==Unsupported role assignments==&lt;br /&gt;
&lt;br /&gt;
Unsupported role assignments are role assignments in contexts that make no sense for that role, such as the course creator role in the course or activity context, or the teacher role in the user context. &lt;br /&gt;
&lt;br /&gt;
Prior to Moodle 2.0, there was no &#039;Context types where this role may be assigned&#039; setting in the edit role form, and so any role could be assigned in any context. Upon upgrading a site from 1.9, any role assignments in contexts that make no sense for that role are listed as unsupported role assignments in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Unsupported role assignments&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In general, it is safe to delete all unsupported role assignments. In doing so, the worst that can happen is for a user to be unassigned a custom role; no other data loss will occur.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Is it possible to remove the open door with green arrow icon that represents Self enrolment? Disable Self enrolment altogether?===&lt;br /&gt;
&lt;br /&gt;
Yes, as an Administrator, go into&lt;br /&gt;
&lt;br /&gt;
  Site Administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage Authentication&lt;br /&gt;
&lt;br /&gt;
In Common Settings, turn Self Registration to Disable and then if you do not want the Guest login button to show, turn it to Hide. Consider also the Authentication methods you want to use, you can set them on by clicking on any closed eye. This removes the self enrolment option completely. &lt;br /&gt;
&lt;br /&gt;
If you just want to remove/hide the icon and not remove the ability to self enrol then you can take one of a couple of different options.&lt;br /&gt;
 &lt;br /&gt;
The Self Enrolment icon itself is theme dependent which means it is not always an open door with a green arrow. One way would be to replace it in whichever theme you are using with a transparent png of the same size. If you use something like Firebug, click on the icon to see its properties, (right click in Windows, or Cmd+Click in Mac) you should be able to see the path to the icon and its name - then you replace it with a file of the same name which is transparent (ie, invisible, hopefully) or one pixel by one pixel. &lt;br /&gt;
 &lt;br /&gt;
You can isolate the image and disable it using CSS but first you need to know the css path for that image.&lt;br /&gt;
&lt;br /&gt;
For the Front Page it is this...&lt;br /&gt;
&lt;br /&gt;
  #page-site-index .enrolmenticons {visibility: hidden;}&lt;br /&gt;
&lt;br /&gt;
Depending on your theme, you can either add the CSS to your theme&#039;s Custom Settings page, or add that CSS rule directly into yourtheme/style/core.css  or whatever name your CSS stylesheet is called.  If you add the CSS to the stylesheet you need to add it at the very bottom of that file.&lt;br /&gt;
&lt;br /&gt;
Before you do any of this it is best enabling Theme Designer Mode from Site Administration &amp;gt; Appearance &amp;gt; themes &amp;gt; Theme settings as this will allow the changes to be seen. You will also need to refresh your browser window to using Ctrl + F5 which forces the page to reload. Or, you can click the Clear Theme Caches button in the Site Administration &amp;gt; Appearance &amp;gt; themes &amp;gt; Theme selector page. &lt;br /&gt;
&lt;br /&gt;
Thanks to Mary Cooch and Mary Evans.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[de:Einstellungen für Rollen]]&lt;br /&gt;
[[fr:Réglages des rôles]]&lt;br /&gt;
[[ja:ユーザポリシー]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=User_policies&amp;diff=106164</id>
		<title>User policies</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=User_policies&amp;diff=106164"/>
		<updated>2013-07-24T12:22:38Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Role for guest */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==User policies==&lt;br /&gt;
The following settings may be changed by an administrator in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Role for visitors===&lt;br /&gt;
Users who are not logged in to the site will be treated as if they have the role specified here, granted to them at the site context. The role of Guest is the default and the recommended setting for standard Moodle sites. The user will still be required to login to participate in an activity.&lt;br /&gt;
&lt;br /&gt;
===Role for guest===&lt;br /&gt;
This option specifies the role that will automatically be assigned to the guest user. This role is also temporarily assigned to non enrolled users when they enter a course that allows guests without password.&lt;br /&gt;
&lt;br /&gt;
===Deny Guest Access to a site altogether===&lt;br /&gt;
&lt;br /&gt;
Go to Site administration ► Plugins ► Authentication ► Manage authentication and there is a switch there that allows you to turn the Guest Access button off altogether.&lt;br /&gt;
&lt;br /&gt;
===Default role for all users===&lt;br /&gt;
&lt;br /&gt;
It is recommended that the default role for all users is set to [[Authenticated user]]. To set it to a custom role, the custom role must be assignable in the system context and have role archetype set to none.&lt;br /&gt;
&lt;br /&gt;
Note: It is not recommended that the default role for all users is set to student, for reasons given in MDL-26805.&lt;br /&gt;
&lt;br /&gt;
===Auto-login guest===&lt;br /&gt;
&lt;br /&gt;
If not set, then visitors must click the &amp;quot;Login as a guest&amp;quot; button before entering a course which allows [[Guest|guest access]].&lt;br /&gt;
&lt;br /&gt;
Note: If auto-login guest is set, the guest login button also needs to be set to show (in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039;), even though visitors won&#039;t necessarily use it.&lt;br /&gt;
&lt;br /&gt;
===Hide user fields===&lt;br /&gt;
The following user fields appear on users&#039; profile pages. Certain user fields are also listed on the course participants page. You can increase student privacy by hiding selected user fields.&lt;br /&gt;
&lt;br /&gt;
Description, city/town, country, web page, ICQ number, Skype ID, Yahoo ID, AIM ID, MSN ID, last access, My courses and first access and groups&lt;br /&gt;
&lt;br /&gt;
*User fields on users&#039; profile pages are hidden from all users with the capability [[Capabilities/moodle/user:viewhiddendetails|moodle/user:viewhiddendetails]] not set.&lt;br /&gt;
*User fields on the course participants page are hidden from all users with the capability [[Capabilities/moodle/course:viewhiddenuserfields|moodle/course:viewhiddenuserfields]] not set.&lt;br /&gt;
&lt;br /&gt;
===Show user identity===&lt;br /&gt;
&lt;br /&gt;
Any of the following fields may be shown to users with the capability [[Capabilities/moodle/site:viewuseridentity|moodle/site:viewuseridentity]] when searching for users and displaying lists of users.&lt;br /&gt;
&lt;br /&gt;
*ID number&lt;br /&gt;
*Email address&lt;br /&gt;
*Phone number&lt;br /&gt;
*Mobile phone&lt;br /&gt;
*Department&lt;br /&gt;
*Institution&lt;br /&gt;
&lt;br /&gt;
This setting is useful for sites with large number of users, where the likelihood of users with the same name is high.&lt;br /&gt;
&lt;br /&gt;
Locations where user identity fields are shown are as follows:&lt;br /&gt;
&lt;br /&gt;
*User selectors ([[Assign roles]] in some places, [[Groups|groups]], forum subscribers)&lt;br /&gt;
*[[Browse list of users]]&lt;br /&gt;
*Course participants&lt;br /&gt;
*[[Gradebook|Grader report]]&lt;br /&gt;
*[[Quiz reports]]&lt;br /&gt;
*[[Using SCORM|SCORM reports]]&lt;br /&gt;
*[[Using Assignment|Assignment submissions]]&lt;br /&gt;
*[[Using Course completion|Course completion report]]&lt;br /&gt;
*[[Using Activity completion|Activity completion report]]&lt;br /&gt;
*[[Enrolled users|Enroling users]]&lt;br /&gt;
&lt;br /&gt;
Tip: Select only one or two fields that are mandatory at your institution. Do not select more than two field otherwise tables become very wide.&lt;br /&gt;
===Maximum users per page===&lt;br /&gt;
{{New features}}&lt;br /&gt;
You can choose here the maximum number of users to be displayed when searching in courses, groups, cohorts etc. The default is 100 but if your Moodle site is very large you can increase the number here.&lt;br /&gt;
&lt;br /&gt;
===Enable Gravatar===&lt;br /&gt;
&lt;br /&gt;
[http://gravatar.com/ Gravatar] (an abbreviation for globally recognized avatar) is a service for providing globally unique avatars.&lt;br /&gt;
&lt;br /&gt;
An administrator can enable the use of gravatars in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039;. If a user has not uploaded a user picture, Moodle will check whether the user&#039;s email address has an associated gravatar and if so, will use the gravatar as the user&#039;s picture.&lt;br /&gt;
&lt;br /&gt;
* [http://www.youtube.com/watch?v=Z4b7tJedlMA Use your Gravatar in Moodle 2.2 screencast]&lt;br /&gt;
&lt;br /&gt;
===Gravatar default image URL===&lt;br /&gt;
&lt;br /&gt;
In Moodle 2.3.3 onwards, if gravatars are enabled, an alternative default user picture may be specified. The options are:&lt;br /&gt;
&lt;br /&gt;
* A gravatar default image - by entering a code such as mm. See https://en.gravatar.com/site/implement/images/ for codes of other gravatar default images.&lt;br /&gt;
* A specified image - by entering the image URL&lt;br /&gt;
&lt;br /&gt;
If the field is left empty then the theme&#039;s default user picture is used.&lt;br /&gt;
&lt;br /&gt;
==Unsupported role assignments==&lt;br /&gt;
&lt;br /&gt;
Unsupported role assignments are role assignments in contexts that make no sense for that role, such as the course creator role in the course or activity context, or the teacher role in the user context. &lt;br /&gt;
&lt;br /&gt;
Prior to Moodle 2.0, there was no &#039;Context types where this role may be assigned&#039; setting in the edit role form, and so any role could be assigned in any context. Upon upgrading a site from 1.9, any role assignments in contexts that make no sense for that role are listed as unsupported role assignments in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Unsupported role assignments&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In general, it is safe to delete all unsupported role assignments. In doing so, the worst that can happen is for a user to be unassigned a custom role; no other data loss will occur.&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[de:Einstellungen für Rollen]]&lt;br /&gt;
[[fr:Réglages des rôles]]&lt;br /&gt;
[[ja:ユーザポリシー]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Installation_FAQ&amp;diff=106163</id>
		<title>Installation FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Installation_FAQ&amp;diff=106163"/>
		<updated>2013-07-24T12:16:13Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What &amp;amp; where are Moodle&amp;#039;s configuration settings stored? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
== System information needed for Installation problems forum ==&lt;br /&gt;
When posting questions to the [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum], try to provide as much background information as possible about your Moodle system. Consider providing some or all of the following:&lt;br /&gt;
* Server Operating System name (version also if possible): &lt;br /&gt;
* PHP version (e.g. PHP 5.3.2)&lt;br /&gt;
* Database server type and version (e.g. MySQL 5.5.18)&lt;br /&gt;
* Browser and version (e.g. Internet Explorer 8):&lt;br /&gt;
* Moodle version (e.g. 2.1):&lt;br /&gt;
* Moodle install type? (New/Upgrade):&lt;br /&gt;
* Moodle config.php attached (please remove passwords):&lt;br /&gt;
* Phpinfo attached?:&lt;br /&gt;
&lt;br /&gt;
Make sure you provide a sensible description (never HELP! or URGENT!) and a full description of what you did and what happened. Copy and paste any error messages accurately in full. &#039;Nothing&#039; is not a symptom, even a blank page is something!&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==PHP - is it installed and what version do I have?==&lt;br /&gt;
&lt;br /&gt;
Make a new file on your web site called &#039;&#039;info.php&#039;&#039;, containing the following text, and call it from your browser:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
&amp;lt;?PHP phpinfo() ?&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If nothing happens then you don&#039;t have PHP installed or your webserver is not configured to handle .php files properly. See the installation docs for some information about where to download it for your computer. See the [[phpinfo]] page for details about the content of this page.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x==&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==What &amp;amp; where are Moodle&#039;s configuration settings stored?==&lt;br /&gt;
Configuration settings are stored in the config.php file stored in your moodle folder. This file is created during the installation process. If there is a problem and the installation cannot create the file, you can try creating it manually from the [[Configuration file]] docs. &lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Downloading previous releases of Moodle==&lt;br /&gt;
It is possible to download previous versions of Moodle that are not found on the  [http://download.moodle.org Standard Moodle Download page].  There are zip and tgz compressed located at &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]&amp;lt;/nowiki&amp;gt; (see links below). &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width:75%; height:75px&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| 2.0 Versions || [http://download.moodle.org/stable19 1.9 Versions]  || [http://download.moodle.org/stable18 1.8 Versions] &lt;br /&gt;
|- &lt;br /&gt;
|[http://download.moodle.org/stable17 1.7 Versions] || [http://download.moodle.org/stable16 1.6 Versions] || [http://download.moodle.org/stable15/ 1.5 Versions] &lt;br /&gt;
|-&lt;br /&gt;
| [http://download.moodle.org/stable14 1.4 Versions] || [http://download.moodle.org/stable13 1.3 Versions]  || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can download previous releases by using wget, lynx or curl with this URL:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]&amp;lt;/nowiki&amp;gt;. &lt;br /&gt;
:For example: to download Moodle version 1.5, use &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable15&amp;lt;/nowiki&amp;gt;. You&#039;ll see a directory tree with the files displayed. Click on the one you want and download as normal - if you require the latest update of the version, scroll to the end of the list and download the &amp;quot;moodle-latest&amp;quot; file.&lt;br /&gt;
* &#039;&#039;&#039;Windows Packages&#039;&#039;&#039;: To download other releases not found in [http://download.moodle.org/windows/ Moodle packages for Windows], use this URL:&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/windows/MoodleWindowsInstaller-latest-[version_number].zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Mac Packages&#039;&#039;&#039;: To download other releases not found in [http://download.moodle.org/macosx/ Mac packages], use either of these URLs (depending on whether you need the Intel or PPC package):&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/macosx/Moodle4Mac-Intel-[version_number].dmg&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/macosx/Moodle4Mac-PPC-[version_number}.dmg&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== How to enable and check PHP error logs==&lt;br /&gt;
PHP can be set up to log errors in a variety of different ways: two of these involve the use of the php.ini file and the ini_set command.  See [[PHP error logs]].&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Could not find a top level course&amp;quot; ==&lt;br /&gt;
If this appears immediately after you have attempted to install Moodle it almost certainly means that the installation did not complete. A complete installation will ask you for the administrator profile and to name the site just before it completes. Check your logs for errors. Then drop the database and start again. If you used the web-based installer try the command line one. Does your computer definitely have sufficient resource to run Moodle?&lt;br /&gt;
&lt;br /&gt;
==Email copies are not being sent from my forums==&lt;br /&gt;
&lt;br /&gt;
You &#039;&#039;must&#039;&#039; set up cron properly if you want Moodle to send out automatic email from forums, assignments etc. This same process also performs a number of clean-up tasks such as deleting old unconfirmed users, unenrolling old students and so on. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
Tips:&lt;br /&gt;
* Try the default settings in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Email&#039;&#039;. This generally works. Except...&lt;br /&gt;
* On a Windows server you *must* supply the address of an SMTP server (Windows, unlike Unix, does not have a build in mail server) in the above settings page&lt;br /&gt;
* Make sure that &#039;&#039;allowuseremailcharset&#039;&#039; in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Email&#039;&#039; is set to No unless you really know what you are doing. Setting this to Yes can cause a problem in some versions of Moodle.&lt;br /&gt;
* Check your firewall or ask your network administrator. Many mail servers are heavily locked down and you may need permission to send mail through them.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t log in - I just stay stuck on the login screen==&lt;br /&gt;
&lt;br /&gt;
This may also apply if you are seeing  “Your session has timed out. Please login again” or &amp;quot;A server error that affects your login session was detected. Please login again or restart your browser&amp;quot; and cannot log in.&lt;br /&gt;
&lt;br /&gt;
The following are possible causes and actions you can take (in no particular order):&lt;br /&gt;
&lt;br /&gt;
* Check first that your main admin account (which will be a manual account) is also a problem. If your users are using an external authentication method (e.g. LDAP) that could be the problem. Isolate the fault and make sure it really is Moodle before going any further.&lt;br /&gt;
* Check that your hard disk is not full or if your server is on shared hosting check that you have not reached your disk space quota. This will prevent new sessions being created and nobody will be able to log in. &lt;br /&gt;
* Carefully check the permissions in your &#039;moodledata&#039; area. The web server needs to be able to write to the &#039;sessions&#039; subdirectory. &lt;br /&gt;
* Your own computer (not your Moodle server) may have a firewall that is stripping referrer information from the browser. Here are some instructions for fixing [http://service1.symantec.com/SUPPORT/nip.nsf/46f26a2d6dafb0a788256bc7005c3fa3/b9b47ad7eddd343b88256c6b006a85a8?OpenDocument&amp;amp;src=bar_sch_nam Norton firewall products].&lt;br /&gt;
* Try deleting the &#039;&#039;sessions&#039;&#039; folder in your moodledata directory (anybody currently logged in will be thrown out)&lt;br /&gt;
* Try deleting cookies on your computer and/or try another browser or another client computer&lt;br /&gt;
* In &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; Session Handling&#039;&#039;, try setting a value for &#039;Cookie prefix&#039;. You can also do this by setting &amp;lt;code&amp;gt;$CFG-&amp;gt;sessioncookie=&#039;something&#039;;&amp;lt;/code&amp;gt; in config.php. This is especially true if you are using multiple Moodles on the same browser. &lt;br /&gt;
* Make sure you have not removed or changed the [[Password salting|Password Salt]] value(s) in config.php. If passwords were created using a salt the correct salt must be in config.php for those passwords to continue to work. This is easily done if you recreate config.php while performing an upgrade and forget to transfer the salt values. &lt;br /&gt;
* Do you have a .htaccess file in your Moodle folder (or its parent directories). If so, is there anything in there that might be causing trouble (strange redirects, access restrictions etc.)?&lt;br /&gt;
* Check the value of &#039;&#039;&#039;mnet_localhost_id&#039;&#039;&#039; in the mdl_config database table. It&#039;s normally 1 but must match the &#039;&#039;&#039;mnet_hostid&#039;&#039;&#039; field in your user records in the mdl_user table for the user to be recognised. It can sometimes get changed spuriously during upgrades or site migrations. &lt;br /&gt;
* Check config.php - it should NOT have any spaces/new lines at the end of code.&lt;br /&gt;
* You are using the correct username and password, yes?&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, read the [[Can_not_log_in | Cannot log in]] page. You &#039;&#039;&#039;could&#039;&#039;&#039; also try changing the admin password. Proceed as if you have lost it - see [[Administration FAQ]].&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==I log in but the login link doesn&#039;t change. I am logged in and can navigate freely.==&lt;br /&gt;
&lt;br /&gt;
Make sure the URL in your &amp;lt;code&amp;gt;$CFG-&amp;gt;wwwroot&amp;lt;/code&amp;gt; setting is exactly the same as the one you are actually using to access the site.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Uploaded files give &amp;quot;File not found&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg was not found on this server.&lt;br /&gt;
&lt;br /&gt;
Your web server needs to be configured to allow the part of the URL after a script name to be passed directly to the script. This is usually enabled in Apache 1, but is usually disabled by default in Apache 2. To turn it on, add this line to your &#039;&#039;httpd.conf&#039;&#039;, or to a &#039;&#039;.htaccess&#039;&#039; file in your local directory (see [[Installing Moodle]] for more details):&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AcceptPathInfo&#039;&#039;&#039; on&lt;br /&gt;
&lt;br /&gt;
Note, this will ONLY work for Apache versions 2.x.&lt;br /&gt;
&lt;br /&gt;
For IIS you need to configure URL rewriting. This feature is not available in IIS 6 so you need to install a 3rd party IIS extension - see http://msdn.microsoft.com/en-us/library/ms972974.aspx. &lt;br /&gt;
&lt;br /&gt;
IIS 7 now comes with the new URL Rewrite Module so a 3rd part extension is no longer required if you are running IIS 7. See http://learn.iis.net/page.aspx/734/url-rewrite-module for more details.&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve got URL rewriting working the recommended rewriting rule is:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;RewriteRule&#039;&#039;&#039; ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 [QSA]&lt;br /&gt;
&lt;br /&gt;
In theory you could try to use path info on IIS too, but it is not reliable, especially when using unicode file names.&lt;br /&gt;
&lt;br /&gt;
If you are unable to configure your server properly then you can switch Moodle to use an alternative method. The major disadvantages is that you will not be able to use SCORM packages at all and some Adobe Flash and Java applets will not work either.&lt;br /&gt;
&lt;br /&gt;
To use this alternative method, you should change the &#039;&#039;slasharguments&#039;&#039; variable. For moodle versions &amp;lt; 1.7, this is located in the Operating System section of &#039;&#039;Administration &amp;gt; Configuration &amp;gt; [[admin/config|Variables]]&#039;&#039;. In later versions, this option is located in &#039;&#039;Site Administration &amp;gt; Server &amp;gt; HTTP&#039;&#039;. You should now be able to access your uploaded files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=145422 Troubleshooting Guide - 404 Errors] forum discussion.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Why are all my pages blank?==&lt;br /&gt;
&lt;br /&gt;
Check the dirroot variable in &#039;&#039;config.php&#039;&#039;. You must use complete, absolute pathnames (e.g.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$CFG-&amp;gt;dirroot = &amp;quot;/var/www/moodle&amp;quot;;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another reason might be that PHP has not been configured to support MySQL (or whatever other database you are using). This is common on RedHat and OpenBSD installations. In this case, an error is generated, but since error displays are often disabled by default, all that is seen on the browser is a blank screen. To enable PHP error displays see [[Installation_FAQ#How_to_enable_and_check_PHP_error_logs | How to enable and check PHP error logs]].&lt;br /&gt;
&lt;br /&gt;
To determine if database support is your problem, insert this as the second line in your &#039;&#039;config.php&#039;&#039; file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
phpinfo();&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then reload the web page. Examine the output closely to see if you chosen database is supported. If not, look for a package you are missing.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== Why is a particular page blank or incomplete? ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Check your web server log files!!&#039;&#039;&#039; &lt;br /&gt;
:If a particular page is blank or incomplete (it doesn&#039;t display the footer), before you do anything else switch on [[Debugging]] and  [[Installation_FAQ#How_to_enable_and_check_PHP_error_logs | check your PHP error logs]]. Having established that PHP error logging is working, reproduce the error. Immediately check the error log file right at the end. Hopefully you will see a PHP error message at or very near the end of the file. This may solve your problem directly or makes it a lot easier to diagnose the problem in the Moodle forums.&lt;br /&gt;
&lt;br /&gt;
*If you are &#039;&#039;&#039;upgrading to a new version of Moodle&#039;&#039;&#039;, check that you do not have an old version of a non-standard block or module installed. Remove any such blocks or modules installed using the admin settings page and start the install process again. However, do also make sure that you have included all optional plugins that were required by your courses. This is particularly common with &amp;quot;editing on&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*If you &#039;&#039;&#039;do not see any blocks listed&#039;&#039;&#039;, turn editing on and remove any blocks that you have added to that page and try reloading.&lt;br /&gt;
&lt;br /&gt;
*You may get this error immediately after &#039;&#039;&#039;selecting a language&#039;&#039;&#039;. At this stage of the installation process your Moodle computer may need to connect to the Internet and download a language pack, so check that the computer can access the Internet by using a browser. Check also that your PHP settings are as given in the Moodle [[Installing_Moodle#Requirements | Moodle Requirements]] page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=97734 PHP configuration error] forum discussion&lt;br /&gt;
&lt;br /&gt;
==Installation hangs when setting-up database tables==&lt;br /&gt;
Sometimes the installation will hang when setting up tables, where only half the page displayed in the browser and/or other outputs are removed.  You may see truncated MySQL statements, or the “Scroll to continue” link is displayed but no “Continue” button is there. &lt;br /&gt;
&lt;br /&gt;
See [[Unexpected installation halts]] for more about solutions that involve:&lt;br /&gt;
*Checking for MySQL limits&lt;br /&gt;
*Checking the .htaccess files &lt;br /&gt;
*Code customizations issues&lt;br /&gt;
*Checking memory limit &lt;br /&gt;
*Upgrade incrementally&lt;br /&gt;
*Fix fopen function&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Why can&#039;t I upload a new image into my profile?==&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t see anything on your user profile pages to let you upload user images then it&#039;s usually one of the following:&lt;br /&gt;
*The permissions associated with the role you are using are preventing you from changing your profile picture.&lt;br /&gt;
* GD is not installed, or is not enabled on your server. Make sure &#039;&#039;&#039;GD has been included in your PHP installation&#039;&#039;&#039;. You can check this by going to &#039;&#039;Site Administration &amp;gt; Server &amp;gt; PHP info&#039;&#039; and looking for the gdversion setting. This setting is chosen automatically every time you visit that page. If it shows GD version 1 or version 2 then everything should be fine. Save that configuration page and go back to your user profile.&lt;br /&gt;
* GD is installed, but is in some way corrupt. For instance, [http://moodle.org/mod/forum/discuss.php?d=44271#p386194 see this discussion on empty lines or white spaces in config files.]&lt;br /&gt;
GD is a library that allows image processing. For example, when all is well with your system, and you upload a new profile image, GD compresses the image and produces two thumbnails, one is 100x100 pixels, and the other is 35x35 pixels.&lt;br /&gt;
&lt;br /&gt;
If Moodle thinks GD is not installed, then you will need to &#039;&#039;&#039;install the GD library&#039;&#039;&#039;. &lt;br /&gt;
*On Unix you may need to re-compile PHP with arguments something like this:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-gd &lt;br /&gt;
 --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-ttf --enable-gd-native-ttf &lt;br /&gt;
 --enable-magic-quotes --with-mysql --enable-sockets --enable-track-vars &lt;br /&gt;
 --enable-versioning --with-zlib&lt;br /&gt;
&lt;br /&gt;
* On Windows this is usually a matter of &amp;quot;turning on&amp;quot; the extension in PHP by editing your php.ini file. To do this remove the semicolon for the php_gd2.dll extension - check that this file is actually present in your php extensions  folder first (search your php.ini for extension_dir to determine where this points to on your hard disk). You should then have a line that looks like this:&lt;br /&gt;
 extension=php_gd2.dll&lt;br /&gt;
&lt;br /&gt;
:Windows users should see the [[Installing AMP|installation instructions]] for further help. &lt;br /&gt;
&lt;br /&gt;
3. Remember to &#039;&#039;&#039;restart your webserver&#039;&#039;&#039; (if possible) and re-visit the Moodle configuration page after making any changes to PHP so it can pick up the correct version of GD.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.&lt;br /&gt;
&lt;br /&gt;
== Why doesn&#039;t my Moodle site display the time and date correctly? ==&lt;br /&gt;
&lt;br /&gt;
Each language requires a specific language code (called a &#039;&#039;&#039;locale&#039;&#039;&#039; code) to allow dates to be displayed correctly. The language packs contain default standard codes, but sometimes these don&#039;t work on Windows servers.&lt;br /&gt;
&lt;br /&gt;
You can find the correct locale codes for Windows on these two pages: [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_language_strings.asp Language codes] and [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_country_strings.asp Country/region] codes (e.g. &amp;quot;esp_esp&amp;quot; for spanish)&lt;br /&gt;
&lt;br /&gt;
These new locale codes can be entered on the Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]] page, where they override the ones in the currently chosen language pack.&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
== How do I uninstall Moodle?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Webhost/manual installation&#039;&#039;&#039;: If you have installed Moodle manually or have installed onto a webhost, follow these steps:&lt;br /&gt;
*Delete the moodle database using this mysql command (or delete using your mysql client, e.g. PHPMyAdmin):&lt;br /&gt;
&amp;lt;pre&amp;gt;sql&amp;gt;DROP DATABASE moodle;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:In the above example replace &#039;moodle&#039; with the name of the moodle database you created when installing.&lt;br /&gt;
*Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.&lt;br /&gt;
*Delete the moodle directory itself. This will delete all of the moodle PHP script files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;XAMPP windows installation&#039;&#039;&#039;: If you have installed Moodle on windows through the XAMPP package, follow these steps:&lt;br /&gt;
*Open cmd.exe and navigate to this directory within your installation directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;server/mysql/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Run this command, replacing USERNAME with your database username (the default is &amp;quot;root&amp;quot;) and DATABASE with your database name (the default is &amp;quot;moodle&amp;quot;):&lt;br /&gt;
&amp;lt;pre&amp;gt;mysqladmin.exe -u USERNAME -p drop DATABASE&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Enter your database password at the prompt (the default is &amp;quot;&amp;quot; [blank]).&lt;br /&gt;
*Enter &amp;quot;y&amp;quot; to confirm the database drop.&lt;br /&gt;
*Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.&lt;br /&gt;
*Delete the moodle directory itself. This will delete all of the moodle PHP script files.&lt;br /&gt;
&lt;br /&gt;
==Migrating Moodle to a new site or server==&lt;br /&gt;
Migrating Moodle means that you have to move the current installation to a new server, and so may have to change IP addresses or DNS entries. To do this you will need to change the $CFG-&amp;gt;wwwroot value in the config.php on the new server. You will also have to change any absolute links stored in the database backup file (before restoring the file on the new server) either using the admin/replace.php script, your text editor or another &amp;quot;search and replace&amp;quot; tool, e.g. sed. For more details see the [[Moodle_migration | Moodle Migration]] page.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Why does my new installation display correctly on the server, but when I view it from a different machine, styles and images are missing?==&lt;br /&gt;
In the installation instructions, one of the suggested settings for &#039;webroot&#039; is &#039;localhost&#039;. This is fine if all you want to do is some local testing of your new Moodle installation. If, however, you want to view your new installation from another machine on the same local area network, or view your site on the internet, you will have to change this setting:&lt;br /&gt;
*For local testing, &#039;localhost&#039; is fine for the webroot ($CFG-&amp;gt;wwwroot in config.php). &lt;br /&gt;
*If you want to test your site from other machines on the same local area network (LAN), then you will have to use the private ip address of the serving machine, (e.g. 192.168.1.2/moodle) or the network name of the serving computer (e.g. network_name_of_serving_machine/moodle) as the web root. Depending on your LAN setup, it may be better to use the network name of the computer rather than its (private) ip address, because the ip address can and will change from time to time. If you don&#039;t want to use the network name, then you will have to speak to your network administrator and have them assign a permanent ip address to the serving machine.&lt;br /&gt;
*Finally, if you want to test your new installation across the internet, you will have to use either a domain name or a permanent (public) ip address/moodle as your web root. To handle both types of access, see [https://docs.moodle.org/en/masquerading masquerading].&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Maximum upload file size - how to change it?==&lt;br /&gt;
There are several places to change the maximum file upload size. The first place to check is the Administration block.   Security -&amp;gt; Site Policies -&amp;gt; and look for &amp;quot;Maximum Uploaded File Size&amp;quot;.  This is the &amp;quot;maxbyte&amp;quot; variable found in older versions of Moodle (under Admin &amp;gt; Variables). Teachers may also set the maximum file size by the [[Course_settings#Maximum_upload_size|course administration block]].&lt;br /&gt;
&lt;br /&gt;
If the above does not provide a large enough figure you will need to make changes in your server settings. The usual place is in your php.ini file (go to Site administration &amp;gt; Server &amp;gt; PHPinfo and check a few lines down for its location). Look for settings &#039;&#039;&#039;upload_max_filesize&#039;&#039;&#039; and &#039;&#039;&#039;post_max_size&#039;&#039;&#039;, setting them both to your desired new value (e.g. &#039;64MB&#039;). You will need to restart the web server for these changes to take effect - e.g. on Linux, &#039;&#039;&#039;/etc/init.d/apache2 force-reload&#039;&#039;&#039;. Check your documentation or just reboot the server. &lt;br /&gt;
&lt;br /&gt;
For more help see:&lt;br /&gt;
*[[Administration_FAQ#How_do_the_limits_on_uploaded_files_work.3F]]&lt;br /&gt;
*[[Installing_Moodle#Recheck_PHP_settings]]&lt;br /&gt;
*[[Installing_Moodle#Using_a_.htaccess_file_for_webserver_and_PHP_settings]]&lt;br /&gt;
*[[Site_policies#Maximum_uploaded_file_size]]&lt;br /&gt;
*These forum posts: http://moodle.org/mod/forum/discuss.php?d=63840#287960 and http://moodle.org/mod/forum/discuss.php?d=93882#p414650&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Moodle claims PHP float handling is not compatible==&lt;br /&gt;
&lt;br /&gt;
The symptom is that when you try to install or upgrade your Moodle, you get a message &amp;quot;Detected unexpected problem in handling of PHP float numbers&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=114945 This forum thread] and MDL-18253 have more information. In short, this problem should not happen, you can help us by telling posting information about exactly which version of PHP, and OS you are using. That may let us find a way to work around this problem.&lt;br /&gt;
&lt;br /&gt;
You may be able to solve this issue by installing a more recent PHP versions. If you compile PHP yourself from source, changing the compilation options may help. However, since we don&#039;t understand the cause, we don&#039;t really know. If you do find a solution that works for you, please do tell us about it.&lt;br /&gt;
&lt;br /&gt;
Update: we have a guess that the problem may be the [http://au2.php.net/manual/en/ini.core.php#ini.precision &#039;precision&#039; setting in your php.ini file]. In a default PHP install this is set of 14. On at least one server that exhibited this problem it had been changed to a smaller value. So, if you see this problem, please try adding &lt;br /&gt;
 ini_set(&#039;precision&#039;, 14);&lt;br /&gt;
to your config.php file, and report your success in MDL-18253.&lt;br /&gt;
&lt;br /&gt;
==When upgrading Moodle claims my database is not UTF8 when I&#039;m sure it is==&lt;br /&gt;
&lt;br /&gt;
The symptom is that you are upgrading a post-1.6 Moodle to a newer version. The Environment check tells you that your database is not UTF8 and refuses to upgrade. &lt;br /&gt;
&lt;br /&gt;
The database may not have it&#039;s character encoding set quite correctly. You can safely try this command on the database (mySQL):&lt;br /&gt;
&lt;br /&gt;
    ALTER DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
&lt;br /&gt;
(Change &#039;moodle&#039; for the name of your database). You need to copy this into your MySQL client program that comes packaged with it. &lt;br /&gt;
&lt;br /&gt;
Alternatively, you maybe adding a new clean install Moodle version to an existing web server and the UTF8 check error will not allow you to proceed.  Use [[phpMyAdmin]] to help you.  This web client is available as a plugin for Moodle or through your web hosting control panel. Using this program, create an empty database (for example moodle199) and make sure &amp;quot;MySQL connection collation&amp;quot; is a utf8 entry, such as utf8_general_ci. Go back to the Moodle installation screen with the check error, hit the previous button on the bottom and make sure the databae has the same name as your new empty database (for example moodle199). &lt;br /&gt;
&lt;br /&gt;
If your Moodle site is version 1.5 or older then it&#039;s telling the truth. &lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== How do I run multiple instances of Moodle without duplicating base code? ==&lt;br /&gt;
&lt;br /&gt;
See [http://moodle.org/mod/forum/discuss.php?d=13211 this thread] for a detailed explanation by [[User:Martin_Langhoff| Martin Langhoff]].&lt;br /&gt;
&lt;br /&gt;
== What is FreeTDS and how can I use it in my installation? ==&lt;br /&gt;
[[FreeTDS]] is an open source implementation of the Tabular Data Stream protocol used by Microsoft SQL Server and Sybase for their databases. Unfortunately, Microsoft servers don&#039;t usually accept TDS 5.0 connections. FreeTDS allows your Unix/Linux applications to talk to these other database products and import and export data between different systems successfully.&lt;br /&gt;
&lt;br /&gt;
== How do I install a plugin? ==&lt;br /&gt;
&lt;br /&gt;
Please see [[Installing plugins]].&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t enable a plugin on the Plugins overview page because the icon is not clickable==&lt;br /&gt;
The open and closed eye icon on the Plugins overview page is simply there to show whether or not a plugin is enabled. You can&#039;t edit plugins from this screen. If you wish to enable a plugin, to to the appropriate page for managing the type of plugin you need, for instance &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Plugins&amp;gt;Repositories&amp;gt;Manage repositories&#039;&#039; or &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Plugins&amp;gt;Activity modules&amp;gt;Manage activities.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Errors FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum]&lt;br /&gt;
* [[Beginning_Moodle_2.0_Administration|Beginning Moodle 2.0 Administration FAQ]]&lt;br /&gt;
* Installing Moodle in a shared web hosting environment&lt;br /&gt;
** [https://docs.moodle.org/24/en/Finding_and_Selecting_A_Web_Host Finding and Selecting a web host]&lt;br /&gt;
** [https://docs.moodle.org/24/en/Install_Moodle2.2_on_godaddy Installing on GoDaddy]&lt;br /&gt;
** [https://docs.moodle.org/24/en/Installing_Moodle_on_SmarterASP.NET Installing Moodle on SmarterASP.NET web hosting]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Instalación]]&lt;br /&gt;
[[fr:FAQ d&#039;installation]]&lt;br /&gt;
[[ja:インストールFAQ]]&lt;br /&gt;
[[de:Installation FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Installation_FAQ&amp;diff=106162</id>
		<title>Installation FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Installation_FAQ&amp;diff=106162"/>
		<updated>2013-07-24T12:14:16Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* PHP - is it installed and what version do I have? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
== System information needed for Installation problems forum ==&lt;br /&gt;
When posting questions to the [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum], try to provide as much background information as possible about your Moodle system. Consider providing some or all of the following:&lt;br /&gt;
* Server Operating System name (version also if possible): &lt;br /&gt;
* PHP version (e.g. PHP 5.3.2)&lt;br /&gt;
* Database server type and version (e.g. MySQL 5.5.18)&lt;br /&gt;
* Browser and version (e.g. Internet Explorer 8):&lt;br /&gt;
* Moodle version (e.g. 2.1):&lt;br /&gt;
* Moodle install type? (New/Upgrade):&lt;br /&gt;
* Moodle config.php attached (please remove passwords):&lt;br /&gt;
* Phpinfo attached?:&lt;br /&gt;
&lt;br /&gt;
Make sure you provide a sensible description (never HELP! or URGENT!) and a full description of what you did and what happened. Copy and paste any error messages accurately in full. &#039;Nothing&#039; is not a symptom, even a blank page is something!&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==PHP - is it installed and what version do I have?==&lt;br /&gt;
&lt;br /&gt;
Make a new file on your web site called &#039;&#039;info.php&#039;&#039;, containing the following text, and call it from your browser:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
&amp;lt;?PHP phpinfo() ?&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If nothing happens then you don&#039;t have PHP installed or your webserver is not configured to handle .php files properly. See the installation docs for some information about where to download it for your computer. See the [[phpinfo]] page for details about the content of this page.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x==&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==What &amp;amp; where are Moodle&#039;s configuration settings stored?==&lt;br /&gt;
Configuration settings are stored in the config.php file stored in your moodle folder. This file is created during the installation process. If there is a problem and the installation cannot create the file, you can try creating it manually from the [[Configuration file]] docs. &lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Downloading previous releases of Moodle==&lt;br /&gt;
It is possible to download previous versions of Moodle that are not found on the  [http://download.moodle.org Standard Moodle Download page].  There are zip and tgz compressed located at &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]&amp;lt;/nowiki&amp;gt; (see links below). &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width:75%; height:75px&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
| 2.0 Versions || [http://download.moodle.org/stable19 1.9 Versions]  || [http://download.moodle.org/stable18 1.8 Versions] &lt;br /&gt;
|- &lt;br /&gt;
|[http://download.moodle.org/stable17 1.7 Versions] || [http://download.moodle.org/stable16 1.6 Versions] || [http://download.moodle.org/stable15/ 1.5 Versions] &lt;br /&gt;
|-&lt;br /&gt;
| [http://download.moodle.org/stable14 1.4 Versions] || [http://download.moodle.org/stable13 1.3 Versions]  || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can download previous releases by using wget, lynx or curl with this URL:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]&amp;lt;/nowiki&amp;gt;. &lt;br /&gt;
:For example: to download Moodle version 1.5, use &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable15&amp;lt;/nowiki&amp;gt;. You&#039;ll see a directory tree with the files displayed. Click on the one you want and download as normal - if you require the latest update of the version, scroll to the end of the list and download the &amp;quot;moodle-latest&amp;quot; file.&lt;br /&gt;
* &#039;&#039;&#039;Windows Packages&#039;&#039;&#039;: To download other releases not found in [http://download.moodle.org/windows/ Moodle packages for Windows], use this URL:&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/windows/MoodleWindowsInstaller-latest-[version_number].zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Mac Packages&#039;&#039;&#039;: To download other releases not found in [http://download.moodle.org/macosx/ Mac packages], use either of these URLs (depending on whether you need the Intel or PPC package):&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/macosx/Moodle4Mac-Intel-[version_number].dmg&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;http://download.moodle.org/macosx/Moodle4Mac-PPC-[version_number}.dmg&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== How to enable and check PHP error logs==&lt;br /&gt;
PHP can be set up to log errors in a variety of different ways: two of these involve the use of the php.ini file and the ini_set command.  See [[PHP error logs]].&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Could not find a top level course&amp;quot; ==&lt;br /&gt;
If this appears immediately after you have attempted to install Moodle it almost certainly means that the installation did not complete. A complete installation will ask you for the administrator profile and to name the site just before it completes. Check your logs for errors. Then drop the database and start again. If you used the web-based installer try the command line one. Does your computer definitely have sufficient resource to run Moodle?&lt;br /&gt;
&lt;br /&gt;
==Email copies are not being sent from my forums==&lt;br /&gt;
&lt;br /&gt;
You &#039;&#039;must&#039;&#039; set up cron properly if you want Moodle to send out automatic email from forums, assignments etc. This same process also performs a number of clean-up tasks such as deleting old unconfirmed users, unenrolling old students and so on. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
Tips:&lt;br /&gt;
* Try the default settings in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Email&#039;&#039;. This generally works. Except...&lt;br /&gt;
* On a Windows server you *must* supply the address of an SMTP server (Windows, unlike Unix, does not have a build in mail server) in the above settings page&lt;br /&gt;
* Make sure that &#039;&#039;allowuseremailcharset&#039;&#039; in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Email&#039;&#039; is set to No unless you really know what you are doing. Setting this to Yes can cause a problem in some versions of Moodle.&lt;br /&gt;
* Check your firewall or ask your network administrator. Many mail servers are heavily locked down and you may need permission to send mail through them.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t log in - I just stay stuck on the login screen==&lt;br /&gt;
&lt;br /&gt;
This may also apply if you are seeing  “Your session has timed out. Please login again” or &amp;quot;A server error that affects your login session was detected. Please login again or restart your browser&amp;quot; and cannot log in.&lt;br /&gt;
&lt;br /&gt;
The following are possible causes and actions you can take (in no particular order):&lt;br /&gt;
&lt;br /&gt;
* Check first that your main admin account (which will be a manual account) is also a problem. If your users are using an external authentication method (e.g. LDAP) that could be the problem. Isolate the fault and make sure it really is Moodle before going any further.&lt;br /&gt;
* Check that your hard disk is not full or if your server is on shared hosting check that you have not reached your disk space quota. This will prevent new sessions being created and nobody will be able to log in. &lt;br /&gt;
* Carefully check the permissions in your &#039;moodledata&#039; area. The web server needs to be able to write to the &#039;sessions&#039; subdirectory. &lt;br /&gt;
* Your own computer (not your Moodle server) may have a firewall that is stripping referrer information from the browser. Here are some instructions for fixing [http://service1.symantec.com/SUPPORT/nip.nsf/46f26a2d6dafb0a788256bc7005c3fa3/b9b47ad7eddd343b88256c6b006a85a8?OpenDocument&amp;amp;src=bar_sch_nam Norton firewall products].&lt;br /&gt;
* Try deleting the &#039;&#039;sessions&#039;&#039; folder in your moodledata directory (anybody currently logged in will be thrown out)&lt;br /&gt;
* Try deleting cookies on your computer and/or try another browser or another client computer&lt;br /&gt;
* In &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; Session Handling&#039;&#039;, try setting a value for &#039;Cookie prefix&#039;. You can also do this by setting &amp;lt;code&amp;gt;$CFG-&amp;gt;sessioncookie=&#039;something&#039;;&amp;lt;/code&amp;gt; in config.php. This is especially true if you are using multiple Moodles on the same browser. &lt;br /&gt;
* Make sure you have not removed or changed the [[Password salting|Password Salt]] value(s) in config.php. If passwords were created using a salt the correct salt must be in config.php for those passwords to continue to work. This is easily done if you recreate config.php while performing an upgrade and forget to transfer the salt values. &lt;br /&gt;
* Do you have a .htaccess file in your Moodle folder (or its parent directories). If so, is there anything in there that might be causing trouble (strange redirects, access restrictions etc.)?&lt;br /&gt;
* Check the value of &#039;&#039;&#039;mnet_localhost_id&#039;&#039;&#039; in the mdl_config database table. It&#039;s normally 1 but must match the &#039;&#039;&#039;mnet_hostid&#039;&#039;&#039; field in your user records in the mdl_user table for the user to be recognised. It can sometimes get changed spuriously during upgrades or site migrations. &lt;br /&gt;
* Check config.php - it should NOT have any spaces/new lines at the end of code.&lt;br /&gt;
* You are using the correct username and password, yes?&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, read the [[Can_not_log_in | Cannot log in]] page. You &#039;&#039;&#039;could&#039;&#039;&#039; also try changing the admin password. Proceed as if you have lost it - see [[Administration FAQ]].&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==I log in but the login link doesn&#039;t change. I am logged in and can navigate freely.==&lt;br /&gt;
&lt;br /&gt;
Make sure the URL in your &amp;lt;code&amp;gt;$CFG-&amp;gt;wwwroot&amp;lt;/code&amp;gt; setting is exactly the same as the one you are actually using to access the site.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Uploaded files give &amp;quot;File not found&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg was not found on this server.&lt;br /&gt;
&lt;br /&gt;
Your web server needs to be configured to allow the part of the URL after a script name to be passed directly to the script. This is usually enabled in Apache 1, but is usually disabled by default in Apache 2. To turn it on, add this line to your &#039;&#039;httpd.conf&#039;&#039;, or to a &#039;&#039;.htaccess&#039;&#039; file in your local directory (see [[Installing Moodle]] for more details):&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AcceptPathInfo&#039;&#039;&#039; on&lt;br /&gt;
&lt;br /&gt;
Note, this will ONLY work for Apache versions 2.x.&lt;br /&gt;
&lt;br /&gt;
For IIS you need to configure URL rewriting. This feature is not available in IIS 6 so you need to install a 3rd party IIS extension - see http://msdn.microsoft.com/en-us/library/ms972974.aspx. &lt;br /&gt;
&lt;br /&gt;
IIS 7 now comes with the new URL Rewrite Module so a 3rd part extension is no longer required if you are running IIS 7. See http://learn.iis.net/page.aspx/734/url-rewrite-module for more details.&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve got URL rewriting working the recommended rewriting rule is:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;RewriteRule&#039;&#039;&#039; ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 [QSA]&lt;br /&gt;
&lt;br /&gt;
In theory you could try to use path info on IIS too, but it is not reliable, especially when using unicode file names.&lt;br /&gt;
&lt;br /&gt;
If you are unable to configure your server properly then you can switch Moodle to use an alternative method. The major disadvantages is that you will not be able to use SCORM packages at all and some Adobe Flash and Java applets will not work either.&lt;br /&gt;
&lt;br /&gt;
To use this alternative method, you should change the &#039;&#039;slasharguments&#039;&#039; variable. For moodle versions &amp;lt; 1.7, this is located in the Operating System section of &#039;&#039;Administration &amp;gt; Configuration &amp;gt; [[admin/config|Variables]]&#039;&#039;. In later versions, this option is located in &#039;&#039;Site Administration &amp;gt; Server &amp;gt; HTTP&#039;&#039;. You should now be able to access your uploaded files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=145422 Troubleshooting Guide - 404 Errors] forum discussion.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Why are all my pages blank?==&lt;br /&gt;
&lt;br /&gt;
Check the dirroot variable in &#039;&#039;config.php&#039;&#039;. You must use complete, absolute pathnames (e.g.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$CFG-&amp;gt;dirroot = &amp;quot;/var/www/moodle&amp;quot;;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another reason might be that PHP has not been configured to support MySQL (or whatever other database you are using). This is common on RedHat and OpenBSD installations. In this case, an error is generated, but since error displays are often disabled by default, all that is seen on the browser is a blank screen. To enable PHP error displays see [[Installation_FAQ#How_to_enable_and_check_PHP_error_logs | How to enable and check PHP error logs]].&lt;br /&gt;
&lt;br /&gt;
To determine if database support is your problem, insert this as the second line in your &#039;&#039;config.php&#039;&#039; file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
phpinfo();&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then reload the web page. Examine the output closely to see if you chosen database is supported. If not, look for a package you are missing.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== Why is a particular page blank or incomplete? ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Check your web server log files!!&#039;&#039;&#039; &lt;br /&gt;
:If a particular page is blank or incomplete (it doesn&#039;t display the footer), before you do anything else switch on [[Debugging]] and  [[Installation_FAQ#How_to_enable_and_check_PHP_error_logs | check your PHP error logs]]. Having established that PHP error logging is working, reproduce the error. Immediately check the error log file right at the end. Hopefully you will see a PHP error message at or very near the end of the file. This may solve your problem directly or makes it a lot easier to diagnose the problem in the Moodle forums.&lt;br /&gt;
&lt;br /&gt;
*If you are &#039;&#039;&#039;upgrading to a new version of Moodle&#039;&#039;&#039;, check that you do not have an old version of a non-standard block or module installed. Remove any such blocks or modules installed using the admin settings page and start the install process again. However, do also make sure that you have included all optional plugins that were required by your courses. This is particularly common with &amp;quot;editing on&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*If you &#039;&#039;&#039;do not see any blocks listed&#039;&#039;&#039;, turn editing on and remove any blocks that you have added to that page and try reloading.&lt;br /&gt;
&lt;br /&gt;
*You may get this error immediately after &#039;&#039;&#039;selecting a language&#039;&#039;&#039;. At this stage of the installation process your Moodle computer may need to connect to the Internet and download a language pack, so check that the computer can access the Internet by using a browser. Check also that your PHP settings are as given in the Moodle [[Installing_Moodle#Requirements | Moodle Requirements]] page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=97734 PHP configuration error] forum discussion&lt;br /&gt;
&lt;br /&gt;
==Installation hangs when setting-up database tables==&lt;br /&gt;
Sometimes the installation will hang when setting up tables, where only half the page displayed in the browser and/or other outputs are removed.  You may see truncated MySQL statements, or the “Scroll to continue” link is displayed but no “Continue” button is there. &lt;br /&gt;
&lt;br /&gt;
See [[Unexpected installation halts]] for more about solutions that involve:&lt;br /&gt;
*Checking for MySQL limits&lt;br /&gt;
*Checking the .htaccess files &lt;br /&gt;
*Code customizations issues&lt;br /&gt;
*Checking memory limit &lt;br /&gt;
*Upgrade incrementally&lt;br /&gt;
*Fix fopen function&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Why can&#039;t I upload a new image into my profile?==&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t see anything on your user profile pages to let you upload user images then it&#039;s usually one of the following:&lt;br /&gt;
*The permissions associated with the role you are using are preventing you from changing your profile picture.&lt;br /&gt;
* GD is not installed, or is not enabled on your server. Make sure &#039;&#039;&#039;GD has been included in your PHP installation&#039;&#039;&#039;. You can check this by going to &#039;&#039;Site Administration &amp;gt; Server &amp;gt; PHP info&#039;&#039; and looking for the gdversion setting. This setting is chosen automatically every time you visit that page. If it shows GD version 1 or version 2 then everything should be fine. Save that configuration page and go back to your user profile.&lt;br /&gt;
* GD is installed, but is in some way corrupt. For instance, [http://moodle.org/mod/forum/discuss.php?d=44271#p386194 see this discussion on empty lines or white spaces in config files.]&lt;br /&gt;
GD is a library that allows image processing. For example, when all is well with your system, and you upload a new profile image, GD compresses the image and produces two thumbnails, one is 100x100 pixels, and the other is 35x35 pixels.&lt;br /&gt;
&lt;br /&gt;
If Moodle thinks GD is not installed, then you will need to &#039;&#039;&#039;install the GD library&#039;&#039;&#039;. &lt;br /&gt;
*On Unix you may need to re-compile PHP with arguments something like this:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-gd &lt;br /&gt;
 --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-ttf --enable-gd-native-ttf &lt;br /&gt;
 --enable-magic-quotes --with-mysql --enable-sockets --enable-track-vars &lt;br /&gt;
 --enable-versioning --with-zlib&lt;br /&gt;
&lt;br /&gt;
* On Windows this is usually a matter of &amp;quot;turning on&amp;quot; the extension in PHP by editing your php.ini file. To do this remove the semicolon for the php_gd2.dll extension - check that this file is actually present in your php extensions  folder first (search your php.ini for extension_dir to determine where this points to on your hard disk). You should then have a line that looks like this:&lt;br /&gt;
 extension=php_gd2.dll&lt;br /&gt;
&lt;br /&gt;
:Windows users should see the [[Installing AMP|installation instructions]] for further help. &lt;br /&gt;
&lt;br /&gt;
3. Remember to &#039;&#039;&#039;restart your webserver&#039;&#039;&#039; (if possible) and re-visit the Moodle configuration page after making any changes to PHP so it can pick up the correct version of GD.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.&lt;br /&gt;
&lt;br /&gt;
== Why doesn&#039;t my Moodle site display the time and date correctly? ==&lt;br /&gt;
&lt;br /&gt;
Each language requires a specific language code (called a &#039;&#039;&#039;locale&#039;&#039;&#039; code) to allow dates to be displayed correctly. The language packs contain default standard codes, but sometimes these don&#039;t work on Windows servers.&lt;br /&gt;
&lt;br /&gt;
You can find the correct locale codes for Windows on these two pages: [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_language_strings.asp Language codes] and [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_country_strings.asp Country/region] codes (e.g. &amp;quot;esp_esp&amp;quot; for spanish)&lt;br /&gt;
&lt;br /&gt;
These new locale codes can be entered on the Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]] page, where they override the ones in the currently chosen language pack.&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
== How do I uninstall Moodle?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Webhost/manual installation&#039;&#039;&#039;: If you have installed Moodle manually or have installed onto a webhost, follow these steps:&lt;br /&gt;
*Delete the moodle database using this mysql command (or delete using your mysql client, e.g. PHPMyAdmin):&lt;br /&gt;
&amp;lt;pre&amp;gt;sql&amp;gt;DROP DATABASE moodle;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:In the above example replace &#039;moodle&#039; with the name of the moodle database you created when installing.&lt;br /&gt;
*Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.&lt;br /&gt;
*Delete the moodle directory itself. This will delete all of the moodle PHP script files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;XAMPP windows installation&#039;&#039;&#039;: If you have installed Moodle on windows through the XAMPP package, follow these steps:&lt;br /&gt;
*Open cmd.exe and navigate to this directory within your installation directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;server/mysql/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Run this command, replacing USERNAME with your database username (the default is &amp;quot;root&amp;quot;) and DATABASE with your database name (the default is &amp;quot;moodle&amp;quot;):&lt;br /&gt;
&amp;lt;pre&amp;gt;mysqladmin.exe -u USERNAME -p drop DATABASE&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Enter your database password at the prompt (the default is &amp;quot;&amp;quot; [blank]).&lt;br /&gt;
*Enter &amp;quot;y&amp;quot; to confirm the database drop.&lt;br /&gt;
*Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.&lt;br /&gt;
*Delete the moodle directory itself. This will delete all of the moodle PHP script files.&lt;br /&gt;
&lt;br /&gt;
==Migrating Moodle to a new site or server==&lt;br /&gt;
Migrating Moodle means that you have to move the current installation to a new server, and so may have to change IP addresses or DNS entries. To do this you will need to change the $CFG-&amp;gt;wwwroot value in the config.php on the new server. You will also have to change any absolute links stored in the database backup file (before restoring the file on the new server) either using the admin/replace.php script, your text editor or another &amp;quot;search and replace&amp;quot; tool, e.g. sed. For more details see the [[Moodle_migration | Moodle Migration]] page.&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Why does my new installation display correctly on the server, but when I view it from a different machine, styles and images are missing?==&lt;br /&gt;
In the installation instructions, one of the suggested settings for &#039;webroot&#039; is &#039;localhost&#039;. This is fine if all you want to do is some local testing of your new Moodle installation. If, however, you want to view your new installation from another machine on the same local area network, or view your site on the internet, you will have to change this setting:&lt;br /&gt;
*For local testing, &#039;localhost&#039; is fine for the webroot ($CFG-&amp;gt;wwwroot in config.php). &lt;br /&gt;
*If you want to test your site from other machines on the same local area network (LAN), then you will have to use the private ip address of the serving machine, (e.g. 192.168.1.2/moodle) or the network name of the serving computer (e.g. network_name_of_serving_machine/moodle) as the web root. Depending on your LAN setup, it may be better to use the network name of the computer rather than its (private) ip address, because the ip address can and will change from time to time. If you don&#039;t want to use the network name, then you will have to speak to your network administrator and have them assign a permanent ip address to the serving machine.&lt;br /&gt;
*Finally, if you want to test your new installation across the internet, you will have to use either a domain name or a permanent (public) ip address/moodle as your web root. To handle both types of access, see [https://docs.moodle.org/en/masquerading masquerading].&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
==Maximum upload file size - how to change it?==&lt;br /&gt;
There are several places to change the maximum file upload size. The first place to check is the Administration block.   Security -&amp;gt; Site Policies -&amp;gt; and look for &amp;quot;Maximum Uploaded File Size&amp;quot;.  This is the &amp;quot;maxbyte&amp;quot; variable found in older versions of Moodle (under Admin &amp;gt; Variables). Teachers may also set the maximum file size by the [[Course_settings#Maximum_upload_size|course administration block]].&lt;br /&gt;
&lt;br /&gt;
If the above does not provide a large enough figure you will need to make changes in your server settings. The usual place is in your php.ini file (go to Site administration &amp;gt; Server &amp;gt; PHPinfo and check a few lines down for its location). Look for settings &#039;&#039;&#039;upload_max_filesize&#039;&#039;&#039; and &#039;&#039;&#039;post_max_size&#039;&#039;&#039;, setting them both to your desired new value (e.g. &#039;64MB&#039;). You will need to restart the web server for these changes to take effect - e.g. on Linux, &#039;&#039;&#039;/etc/init.d/apache2 force-reload&#039;&#039;&#039;. Check your documentation or just reboot the server. &lt;br /&gt;
&lt;br /&gt;
For more help see:&lt;br /&gt;
*[[Administration_FAQ#How_do_the_limits_on_uploaded_files_work.3F]]&lt;br /&gt;
*[[Installing_Moodle#Recheck_PHP_settings]]&lt;br /&gt;
*[[Installing_Moodle#Using_a_.htaccess_file_for_webserver_and_PHP_settings]]&lt;br /&gt;
*[[Site_policies#Maximum_uploaded_file_size]]&lt;br /&gt;
*These forum posts: http://moodle.org/mod/forum/discuss.php?d=63840#287960 and http://moodle.org/mod/forum/discuss.php?d=93882#p414650&lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
==Moodle claims PHP float handling is not compatible==&lt;br /&gt;
&lt;br /&gt;
The symptom is that when you try to install or upgrade your Moodle, you get a message &amp;quot;Detected unexpected problem in handling of PHP float numbers&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=114945 This forum thread] and MDL-18253 have more information. In short, this problem should not happen, you can help us by telling posting information about exactly which version of PHP, and OS you are using. That may let us find a way to work around this problem.&lt;br /&gt;
&lt;br /&gt;
You may be able to solve this issue by installing a more recent PHP versions. If you compile PHP yourself from source, changing the compilation options may help. However, since we don&#039;t understand the cause, we don&#039;t really know. If you do find a solution that works for you, please do tell us about it.&lt;br /&gt;
&lt;br /&gt;
Update: we have a guess that the problem may be the [http://au2.php.net/manual/en/ini.core.php#ini.precision &#039;precision&#039; setting in your php.ini file]. In a default PHP install this is set of 14. On at least one server that exhibited this problem it had been changed to a smaller value. So, if you see this problem, please try adding &lt;br /&gt;
 ini_set(&#039;precision&#039;, 14);&lt;br /&gt;
to your config.php file, and report your success in MDL-18253.&lt;br /&gt;
&lt;br /&gt;
==When upgrading Moodle claims my database is not UTF8 when I&#039;m sure it is==&lt;br /&gt;
&lt;br /&gt;
The symptom is that you are upgrading a post-1.6 Moodle to a newer version. The Environment check tells you that your database is not UTF8 and refuses to upgrade. &lt;br /&gt;
&lt;br /&gt;
The database may not have it&#039;s character encoding set quite correctly. You can safely try this command on the database (mySQL):&lt;br /&gt;
&lt;br /&gt;
    ALTER DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
&lt;br /&gt;
(Change &#039;moodle&#039; for the name of your database). You need to copy this into your MySQL client program that comes packaged with it. &lt;br /&gt;
&lt;br /&gt;
Alternatively, you maybe adding a new clean install Moodle version to an existing web server and the UTF8 check error will not allow you to proceed.  Use [[phpMyAdmin]] to help you.  This web client is available as a plugin for Moodle or through your web hosting control panel. Using this program, create an empty database (for example moodle199) and make sure &amp;quot;MySQL connection collation&amp;quot; is a utf8 entry, such as utf8_general_ci. Go back to the Moodle installation screen with the check error, hit the previous button on the bottom and make sure the databae has the same name as your new empty database (for example moodle199). &lt;br /&gt;
&lt;br /&gt;
If your Moodle site is version 1.5 or older then it&#039;s telling the truth. &lt;br /&gt;
&lt;br /&gt;
[[#top|Top]]&lt;br /&gt;
&lt;br /&gt;
== How do I run multiple instances of Moodle without duplicating base code? ==&lt;br /&gt;
&lt;br /&gt;
See [http://moodle.org/mod/forum/discuss.php?d=13211 this thread] for a detailed explanation by [[User:Martin_Langhoff| Martin Langhoff]].&lt;br /&gt;
&lt;br /&gt;
== What is FreeTDS and how can I use it in my installation? ==&lt;br /&gt;
[[FreeTDS]] is an open source implementation of the Tabular Data Stream protocol used by Microsoft SQL Server and Sybase for their databases. Unfortunately, Microsoft servers don&#039;t usually accept TDS 5.0 connections. FreeTDS allows your Unix/Linux applications to talk to these other database products and import and export data between different systems successfully.&lt;br /&gt;
&lt;br /&gt;
== How do I install a plugin? ==&lt;br /&gt;
&lt;br /&gt;
Please see [[Installing plugins]].&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t enable a plugin on the Plugins overview page because the icon is not clickable==&lt;br /&gt;
The open and closed eye icon on the Plugins overview page is simply there to show whether or not a plugin is enabled. You can&#039;t edit plugins from this screen. If you wish to enable a plugin, to to the appropriate page for managing the type of plugin you need, for instance &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Plugins&amp;gt;Repositories&amp;gt;Manage repositories&#039;&#039; or &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Plugins&amp;gt;Activity modules&amp;gt;Manage activities.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Errors FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum]&lt;br /&gt;
* [[Beginning_Moodle_2.0_Administration|Beginning Moodle 2.0 Administration FAQ]]&lt;br /&gt;
* Installing Moodle in a shared web hosting environment&lt;br /&gt;
** [https://docs.moodle.org/24/en/Finding_and_Selecting_A_Web_Host Finding and Selecting a web host]&lt;br /&gt;
** [https://docs.moodle.org/24/en/Install_Moodle2.2_on_godaddy Installing on GoDaddy]&lt;br /&gt;
** [https://docs.moodle.org/24/en/Installing_Moodle_on_SmarterASP.NET Installing Moodle on SmarterASP.NET web hosting]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Instalación]]&lt;br /&gt;
[[fr:FAQ d&#039;installation]]&lt;br /&gt;
[[ja:インストールFAQ]]&lt;br /&gt;
[[de:Installation FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Admin_tools&amp;diff=106161</id>
		<title>Admin tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Admin_tools&amp;diff=106161"/>
		<updated>2013-07-24T12:09:21Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing a Moodle site}}&lt;br /&gt;
The following admin tools can be managed by an administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Admin tools &amp;gt; Manage admin tools&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Acceptance testing]] (new in 2.5)&lt;br /&gt;
*[[Installing add-ons|Add-on installer]] (new in 2.5)&lt;br /&gt;
*[[Upgrade tool|Assignment upgrade helper]]&lt;br /&gt;
*[[Permissions|Capability overview]] - in &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Capability report&#039;&#039;&lt;br /&gt;
*[[Migration from MyISAM to InnoDB|Convert to InnoDB]]&lt;br /&gt;
*[[Database transfer]]&lt;br /&gt;
*[[Search and replace|DB search and replace]]&lt;br /&gt;
*Health center&lt;br /&gt;
*[[Language customization]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Language&amp;gt; Language customization&#039;&#039;&lt;br /&gt;
*[[Language packs]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Language &amp;gt; Language packs&#039;&#039;&lt;br /&gt;
*Multilang upgrade&lt;br /&gt;
*[[:dev:PHPUnit|PHPUnit tests]] &lt;br /&gt;
*[[:dev:Profiling PHP|Profiling runs]]&lt;br /&gt;
*[[Question engine upgrade helper]]&lt;br /&gt;
*Random course generator&lt;br /&gt;
*[[Reducing spam in Moodle|Spam cleaner]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Reports &amp;gt; Spam cleaner&#039;&#039;&lt;br /&gt;
*[[Location|Timezones updater]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Location &amp;gt; Update timezones&#039;&#039;&lt;br /&gt;
*[[Roles settings|Unsupported role assignments]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Unsupported role assignments&#039;&#039;&lt;br /&gt;
*[[Upload users|User upload]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
*[[:dev:XMLDB editor|XMLDB editor]] in &#039;&#039;Site administration &amp;gt; Development &amp;gt; XMLDB editor&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What kind of technical skills do I need to take on Moodle Administration?==&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. If you need them, you will pick these skills up as you go, and if you already have any programming skills, it is going to be fairly easy to do so. If you have never done any programming before, it is a little more difficult, but once you have the idea, it becomes a lot easier. Unless you intend on developing your Moodle, e.g. build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to make things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Admin tools|Admin tools developer documentation]]&lt;br /&gt;
* MDL-29029&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[es:Herramientas administrativas]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Talk:Table_of_Contents&amp;diff=101490</id>
		<title>Talk:Table of Contents</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Talk:Table_of_Contents&amp;diff=101490"/>
		<updated>2012-10-25T10:52:33Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: Created page with &amp;quot;===&amp;#039;&amp;#039;&amp;#039;Page layout&amp;#039;&amp;#039;&amp;#039;=== The layout of this page is not good. While it is linear, it becomes a long scroll to the bottom of the page. Perhaps each part could be in a multi-columne...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===&#039;&#039;&#039;Page layout&#039;&#039;&#039;===&lt;br /&gt;
The layout of this page is not good. While it is linear, it becomes a long scroll to the bottom of the page. Perhaps each part could be in a multi-columned table? Each group of topics would be in its own cell. Would make it easier to find something.&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101436</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101436"/>
		<updated>2012-10-21T11:47:24Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Backup}}&lt;br /&gt;
==How do I backup a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course backup]] and [[Automated backup setup]]. &lt;br /&gt;
&lt;br /&gt;
==How do I restore a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course restore]].&lt;br /&gt;
&lt;br /&gt;
==How do I backup my site?==&lt;br /&gt;
&lt;br /&gt;
See [[Site backup]].&lt;br /&gt;
&lt;br /&gt;
==What are the pros and cons of course versus site backups?==&lt;br /&gt;
&lt;br /&gt;
[[Site backup|Site backups]] are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
For a site administrator, [[Automated course backup|automated course backups]] are more expensive in terms of time, CPU usage and storage. The recovery time to have a site running again takes longer than a site backup. However,  teachers and site administrators might find a course backups as a way to create a &amp;quot;fresh&amp;quot; copy of a course that can be re-used (in older versions of Moodle, in newer versions see [[Import course data]]) or as a method to distribute a course(s) to other Moodle sites.&lt;br /&gt;
&lt;br /&gt;
==Why is my automated course backup much smaller in size than my manual course backup?==&lt;br /&gt;
&lt;br /&gt;
This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disc space and makes the backup procedure much faster. &lt;br /&gt;
&lt;br /&gt;
==What data is not contained in course backups?==&lt;br /&gt;
&lt;br /&gt;
By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:&lt;br /&gt;
* Quiz questions are only backed up if at least one question from their category has been added to a quiz.&lt;br /&gt;
* Scales are only backed up if they are used by at least one activity.&lt;br /&gt;
* Users&#039; passwords are not backed up when the &amp;quot;Include enrolled users&amp;quot; option is selected.&lt;br /&gt;
&lt;br /&gt;
==Why is there no &amp;quot;all/none&amp;quot; feature when selecting items to  backup?==&lt;br /&gt;
This was enabled in MDL-32705 and is available in Moodle 2.3.2 onwards.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;Error: An error occurred deleting old backup data&amp;quot;. What should I do?==&lt;br /&gt;
&lt;br /&gt;
This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:&lt;br /&gt;
&lt;br /&gt;
# Delete old records from &amp;quot;backup_ids&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old records from &amp;quot;backup_files&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old files from &amp;quot;moodledata/temp/backup&amp;quot;: Delete the dir completely and try again.&lt;br /&gt;
&lt;br /&gt;
[[Image:BackupProblem.gif|thumb|Backup error message]]For points 1 &amp;amp; 2, there are various ways of repairing tables, including using MySQL Admin.&lt;br /&gt;
For point 3 see below:&lt;br /&gt;
&lt;br /&gt;
The error message states that the &amp;quot;directory not empty&amp;quot; and gives the path to that directory. If you go there with an FTP program you can see what is there and clean up. It could be just some empty subfolders that were leftover. Deleting these has been able to help. One can also delete the dir &amp;quot;moodledata/temp/backup&amp;quot; completely. That can take a bit longer but may solve several problems at once.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;XML error: not well-formed (invalid token) at line YYYY&amp;quot;. What can I do?==&lt;br /&gt;
&lt;br /&gt;
This problem can appear at any point in the restore process. It&#039;s caused when the XML parser detects something incorrect in the backup file that prevent correct operation. Usually, it&#039;s caused by some &amp;quot;illegal&amp;quot; characters added in the original course due to some copy/paste of text containing them (control characters, or invalid sequences...).&lt;br /&gt;
&lt;br /&gt;
The best method to handle this issue is:&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic backup file under one empty folder.&lt;br /&gt;
&lt;br /&gt;
* Open the moodle.xml with Firefox. It will show you where (exact char) the problem is happening.&lt;br /&gt;
&lt;br /&gt;
* Edit the moodle.xml file with some UTF8-compatible editor and delete such characters. Save changes.&lt;br /&gt;
&lt;br /&gt;
* Test the moodle.xml file again with Firefox until no error was displayed.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but not the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
* Restore still not working? See the next question.&lt;br /&gt;
&lt;br /&gt;
Also, if possible, it&#039;s highly recommended to solve those problems in the original course too from Moodle itself. Once &amp;quot;repaired&amp;quot; there, problems will be out if you create new backup files in the future.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;moodle xml not found at root level of zip file&amp;quot;. What can I do?==&lt;br /&gt;
If you are restoring from a zip file backup make sure the moodle.xml file is at the root level. To ensure this:&lt;br /&gt;
#Unzip the backup file of the course (example: mycourse.zip)&lt;br /&gt;
#Once the file is unzipped, open the folder (example: mycourse).&lt;br /&gt;
#Select the folders within the mycourse folder AND the moodle.xml file and create a zip of those item (example: mycourse_new.zip)&lt;br /&gt;
#Upload the new zip file (example: mycourse_new.zip) and restore from that.&lt;br /&gt;
&lt;br /&gt;
If the backup file is guaranteed to be correct, check paths to external files (zip, unzip). Incorrect settings also lead to this error message (see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=140355 moodle.xml not found in root...] and MDL-14812).&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;An error occurred while copying the zip file...&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
This problem is most likely caused by a permissions issue in the destination directory. Backup files are copied to &amp;quot;XXX/backupdata&amp;quot; under your dataroot directory (where XXX is the id of the course being backed up).&lt;br /&gt;
&lt;br /&gt;
On Windows systems, if you have configured Moodle to use an external zip program then the IIS IUSR_computername user needs to have Execute access to cmd.exe so that it can run the zip program. See the Note in [https://docs.moodle.org/en/System_paths#Path_to_zip Path to zip] for more details.  &lt;br /&gt;
&lt;br /&gt;
The problem could also be caused by a disk being full, though this is far less likely.&lt;br /&gt;
&lt;br /&gt;
To obtain precise information about what&#039;s happening, you can enable debug messages in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Debugging]]&#039;&#039; (select the maximum level - DEVELOPER) and/or check the web server error logs.&lt;br /&gt;
&lt;br /&gt;
==I Still get an XML error. How can I clean the borked XML file?==&lt;br /&gt;
&lt;br /&gt;
In some cases XML backup files may contain characters causing the restore process to abort, even after the steps described in the previous question. In such cases you may want to try the following:&lt;br /&gt;
&lt;br /&gt;
* Download the [http://repository.atlassian.com/atlassian-xml-cleaner/jars/atlassian-xml-cleaner-0.1.jar Atlassian XML Cleaner Utility] from the [http://confluence.atlassian.com/display/JIRA/Removing+invalid+characters+from+XML+backups JIRA Atlassian site].&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic Moodle backup file under one empty folder. Moodle will create the course file folders as long as the unclean moodle.xml file. Please unzip using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Rename the unclean moodle.xml file to moodle-unclean.xml. &lt;br /&gt;
&lt;br /&gt;
* If you don&#039;t have access to your Moodle server&#039;s command prompt, using the Moodle zip feature, zip the moodle-unclean.xml file only, download the zip file locally and unzip it. It is very important to download the xml file in zipped format to avoid unwanted character encoding when transferring from an operating system to another.&lt;br /&gt;
&lt;br /&gt;
* Move the downloaded Atlassian XML Cleaner Utility in the same folder where is your moodle-unclean.xml file.&lt;br /&gt;
&lt;br /&gt;
* Issue the following command from the command prompt: &lt;br /&gt;
&lt;br /&gt;
 java -jar atlassian-xml-cleaner-0.1.jar moodle-unclean.xml &amp;gt; moodle.xml&lt;br /&gt;
&lt;br /&gt;
* If you launched the utility on your local computer, zip the just created (and hopefully cleaned) moodle.xml file and upload it in the same place from where you downloaded the moodle-unclean.xml file. Once uploaded, unzip it using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
==What does &amp;quot;Some of your courses weren&#039;t saved!!&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
There are three possible causes of this problem:&lt;br /&gt;
# Error - this happens when the backup procedure has found an error and so hasn&#039;t finished the backup of a particular course. These are &amp;quot;controlled&amp;quot; errors and the scheduled backup continues with the next course.&lt;br /&gt;
# Unfinished - this happens when the backup procedure dies without knowing why. When the cron is next executed it detects that the last execution went wrong, and continues skipping the problematic course. A possible solution would be to raise the PHP/Apache limit in your installation (memory, time of execution...). By taking a look to your log tables you should be able to see if the &amp;quot;crash&amp;quot; is happening at exact time intervals (usually a problem with the max_execution_time php&#039;s variable), or if there is some exact point were all the courses are breaking (generally internal zip libraries, try to switch to external executables instead).&lt;br /&gt;
# Skipped - this happens when a course is unavailable to students and has not been changed in the last month (31 days). This isn&#039;t an error situation - it&#039;s a feature, especially useful for sites with many unavailable old courses, saving process time.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
Course backups automatically skip courses which are unavailable to students and have not been changed in the last month.&lt;br /&gt;
&lt;br /&gt;
The [http://moodle.org/mod/forum/discuss.php?d=80367#p714733 Hide courses excluded from automatic backup] discussion in the Using Moodle forum describes a way that you can disable or override this thirty day check. This could be useful if, for example, you wanted to change the period from thirty days to six months.&lt;br /&gt;
&lt;br /&gt;
==Why does restore stop, rather than completing?==&lt;br /&gt;
&lt;br /&gt;
Attempting to restore a course to an older version of Moodle than the one the course was backed up on can result in the restore process failing to complete. To ensure a successful restore, make sure that the version of Moodle you are restoring the course to is the same, or newer, than the one the course was backed up on.&lt;br /&gt;
&lt;br /&gt;
If it stop unexpectedly with no errors shown try again with [[Debugging]] switched on. Any errors you now see can help experts in the support forums diagnose your problem. You can also check the discussion links in the See also section below for further advice.&lt;br /&gt;
&lt;br /&gt;
==Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle 2.0 Restore breaks.png|thumb|Error message in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
This message is displayed when:&lt;br /&gt;
&lt;br /&gt;
# Your target site has one xxxx user (xxxx being the username)&lt;br /&gt;
# The backup being restored also has one xxxx user&lt;br /&gt;
# After various comparisons, Moodle has detected that the xxxx user in 1. and the xxxx user in 2. aren&#039;t the same user.&lt;br /&gt;
&lt;br /&gt;
If 1, 2 and 3 above happens, restore stops before performing any action as far as restoring that user will end associating &amp;quot;things&amp;quot; (create activities, posts, attempts... whatever...) to the xxxx user in the target site, when those &amp;quot;things&amp;quot; weren&#039;t performed by the same user at all.&lt;br /&gt;
&lt;br /&gt;
Those checks and behaviour were introduced in Moodle 1.9.x and continue being valid under 2.0. Usually the xxxx user in the messages is the &amp;quot;admin&amp;quot; user (that exists in practically all Moodle installations).&lt;br /&gt;
&lt;br /&gt;
There are two possible solutions to make both xxxx users in 1 and 2 to match (and avoid the conflict):&lt;br /&gt;
&lt;br /&gt;
a) Modify the backup&#039;s &#039;&#039;&#039;users.xml&#039;&#039;&#039; file and make the &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields match with the ones in target site.&amp;lt;br /&amp;gt;&lt;br /&gt;
b) Modify the &#039;&#039;&#039;target site&#039;&#039;&#039; and set the user &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields to match with the ones in backup&#039;s user.xml file.&lt;br /&gt;
&lt;br /&gt;
Method a) is recommended so the restore process will match both xxxx users and every &amp;quot;thing&amp;quot; in the backup file belonging to xxxx will be associated to the already existing xxxx user in the target site.&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;&#039;NOTE:&#039;&#039;&#039; When using method a) be aware that the &#039;&#039;moodle-filename-backup.&#039;&#039;&#039;mbz&#039;&#039;&#039;&#039;&#039; is a zip file and can be renamed to &#039;&#039;moodle-filename-backup.&#039;&#039;&#039;zip&#039;&#039;&#039;&#039;&#039; and unzipped. &lt;br /&gt;
  When editing is complete, rezip and then rename using the original file name with the &amp;quot;*.mbz&amp;quot; extention.&lt;br /&gt;
&lt;br /&gt;
==Why are certain course links broken in a restored course?==&lt;br /&gt;
&lt;br /&gt;
Inter-activity links must be absolute (full) URLs e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://site.com/mod/resource/view.php?id=xxx&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in order to be processed properly during backup and restore.&lt;br /&gt;
&lt;br /&gt;
Any relative URLs e.g. &amp;lt;code&amp;gt;/mod/resource/view.php?id=xxx&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;../resource/view.php?id=xxx&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;view.php?id=xxx&amp;lt;/code&amp;gt; will result in broken links when the course is restored.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?f=128 Backup and Restore forum]&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 databasejournal.com article on repairing database corruption in MySQL]&lt;br /&gt;
* [[Site backup]]&lt;br /&gt;
* [[Moodle migration]]&lt;br /&gt;
* [[Beginning Moodle 2.0 Administration]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=142720 Trying to restore user &#039;admin&#039; from backup file will cause conflict]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 &amp;quot;Course Backup Filearea&amp;quot;?]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Backup]]&lt;br /&gt;
[[pl:Backup FAQ]]&lt;br /&gt;
[[fr:FAQ de sauvegarde]]&lt;br /&gt;
[[ja:バックアップFAQ]]&lt;br /&gt;
[[pt:FAQ sobre cópias de segurança]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101435</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101435"/>
		<updated>2012-10-21T11:47:06Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Backup}}&lt;br /&gt;
==How do I backup a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course backup]] and [[Automated backup setup]]. &lt;br /&gt;
&lt;br /&gt;
==How do I restore a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course restore]].&lt;br /&gt;
&lt;br /&gt;
==How do I backup my site?==&lt;br /&gt;
&lt;br /&gt;
See [[Site backup]].&lt;br /&gt;
&lt;br /&gt;
==What are the pros and cons of course versus site backups?==&lt;br /&gt;
&lt;br /&gt;
[[Site backup|Site backups]] are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
For a site administrator, [[Automated course backup|automated course backups]] are more expensive in terms of time, CPU usage and storage. The recovery time to have a site running again takes longer than a site backup. However,  teachers and site administrators might find a course backups as a way to create a &amp;quot;fresh&amp;quot; copy of a course that can be re-used (in older versions of Moodle, in newer versions see [[Import course data]]) or as a method to distribute a course(s) to other Moodle sites.&lt;br /&gt;
&lt;br /&gt;
==Why is my automated course backup much smaller in size than my manual course backup?==&lt;br /&gt;
&lt;br /&gt;
This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disc space and makes the backup procedure much faster. &lt;br /&gt;
&lt;br /&gt;
==What data is not contained in course backups?==&lt;br /&gt;
&lt;br /&gt;
By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:&lt;br /&gt;
* Quiz questions are only backed up if at least one question from their category has been added to a quiz.&lt;br /&gt;
* Scales are only backed up if they are used by at least one activity.&lt;br /&gt;
* Users&#039; passwords are not backed up when the &amp;quot;Include enrolled users&amp;quot; option is selected.&lt;br /&gt;
&lt;br /&gt;
==Why is there no &amp;quot;all/none&amp;quot; feature when selecting items to  backup?==&lt;br /&gt;
This was enabled in MDL-32705 and is available in Moodle 2.3.2 onwards.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;Error: An error occurred deleting old backup data&amp;quot;. What should I do?==&lt;br /&gt;
&lt;br /&gt;
This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:&lt;br /&gt;
&lt;br /&gt;
# Delete old records from &amp;quot;backup_ids&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old records from &amp;quot;backup_files&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old files from &amp;quot;moodledata/temp/backup&amp;quot;: Delete the dir completely and try again.&lt;br /&gt;
&lt;br /&gt;
[[Image:BackupProblem.gif|thumb|Backup error message]]For points 1 &amp;amp; 2, there are various ways of repairing tables, including using MySQL Admin.&lt;br /&gt;
For point 3 see below:&lt;br /&gt;
&lt;br /&gt;
The error message states that the &amp;quot;directory not empty&amp;quot; and gives the path to that directory. If you go there with an FTP program you can see what is there and clean up. It could be just some empty subfolders that were leftover. Deleting these has been able to help. One can also delete the dir &amp;quot;moodledata/temp/backup&amp;quot; completely. That can take a bit longer but may solve several problems at once.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;XML error: not well-formed (invalid token) at line YYYY&amp;quot;. What can I do?==&lt;br /&gt;
&lt;br /&gt;
This problem can appear at any point in the restore process. It&#039;s caused when the XML parser detects something incorrect in the backup file that prevent correct operation. Usually, it&#039;s caused by some &amp;quot;illegal&amp;quot; characters added in the original course due to some copy/paste of text containing them (control characters, or invalid sequences...).&lt;br /&gt;
&lt;br /&gt;
The best method to handle this issue is:&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic backup file under one empty folder.&lt;br /&gt;
&lt;br /&gt;
* Open the moodle.xml with Firefox. It will show you where (exact char) the problem is happening.&lt;br /&gt;
&lt;br /&gt;
* Edit the moodle.xml file with some UTF8-compatible editor and delete such characters. Save changes.&lt;br /&gt;
&lt;br /&gt;
* Test the moodle.xml file again with Firefox until no error was displayed.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but not the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
* Restore still not working? See the next question.&lt;br /&gt;
&lt;br /&gt;
Also, if possible, it&#039;s highly recommended to solve those problems in the original course too from Moodle itself. Once &amp;quot;repaired&amp;quot; there, problems will be out if you create new backup files in the future.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;moodle xml not found at root level of zip file&amp;quot;. What can I do?==&lt;br /&gt;
If you are restoring from a zip file backup make sure the moodle.xml file is at the root level. To ensure this:&lt;br /&gt;
#Unzip the backup file of the course (example: mycourse.zip)&lt;br /&gt;
#Once the file is unzipped, open the folder (example: mycourse).&lt;br /&gt;
#Select the folders within the mycourse folder AND the moodle.xml file and create a zip of those item (example: mycourse_new.zip)&lt;br /&gt;
#Upload the new zip file (example: mycourse_new.zip) and restore from that.&lt;br /&gt;
&lt;br /&gt;
If the backup file is guaranteed to be correct, check paths to external files (zip, unzip). Incorrect settings also lead to this error message (see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=140355 moodle.xml not found in root...] and MDL-14812).&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;An error occurred while copying the zip file...&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
This problem is most likely caused by a permissions issue in the destination directory. Backup files are copied to &amp;quot;XXX/backupdata&amp;quot; under your dataroot directory (where XXX is the id of the course being backed up).&lt;br /&gt;
&lt;br /&gt;
On Windows systems, if you have configured Moodle to use an external zip program then the IIS IUSR_computername user needs to have Execute access to cmd.exe so that it can run the zip program. See the Note in [https://docs.moodle.org/en/System_paths#Path_to_zip Path to zip] for more details.  &lt;br /&gt;
&lt;br /&gt;
The problem could also be caused by a disk being full, though this is far less likely.&lt;br /&gt;
&lt;br /&gt;
To obtain precise information about what&#039;s happening, you can enable debug messages in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Debugging]]&#039;&#039; (select the maximum level - DEVELOPER) and/or check the web server error logs.&lt;br /&gt;
&lt;br /&gt;
==I Still get an XML error. How can I clean the borked XML file?==&lt;br /&gt;
&lt;br /&gt;
In some cases XML backup files may contain characters causing the restore process to abort, even after the steps described in the previous question. In such cases you may want to try the following:&lt;br /&gt;
&lt;br /&gt;
* Download the [http://repository.atlassian.com/atlassian-xml-cleaner/jars/atlassian-xml-cleaner-0.1.jar Atlassian XML Cleaner Utility] from the [http://confluence.atlassian.com/display/JIRA/Removing+invalid+characters+from+XML+backups JIRA Atlassian site].&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic Moodle backup file under one empty folder. Moodle will create the course file folders as long as the unclean moodle.xml file. Please unzip using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Rename the unclean moodle.xml file to moodle-unclean.xml. &lt;br /&gt;
&lt;br /&gt;
* If you don&#039;t have access to your Moodle server&#039;s command prompt, using the Moodle zip feature, zip the moodle-unclean.xml file only, download the zip file locally and unzip it. It is very important to download the xml file in zipped format to avoid unwanted character encoding when transferring from an operating system to another.&lt;br /&gt;
&lt;br /&gt;
* Move the downloaded Atlassian XML Cleaner Utility in the same folder where is your moodle-unclean.xml file.&lt;br /&gt;
&lt;br /&gt;
* Issue the following command from the command prompt: &lt;br /&gt;
&lt;br /&gt;
 java -jar atlassian-xml-cleaner-0.1.jar moodle-unclean.xml &amp;gt; moodle.xml&lt;br /&gt;
&lt;br /&gt;
* If you launched the utility on your local computer, zip the just created (and hopefully cleaned) moodle.xml file and upload it in the same place from where you downloaded the moodle-unclean.xml file. Once uploaded, unzip it using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
==What does &amp;quot;Some of your courses weren&#039;t saved!!&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
There are three possible causes of this problem:&lt;br /&gt;
# Error - this happens when the backup procedure has found an error and so hasn&#039;t finished the backup of a particular course. These are &amp;quot;controlled&amp;quot; errors and the scheduled backup continues with the next course.&lt;br /&gt;
# Unfinished - this happens when the backup procedure dies without knowing why. When the cron is next executed it detects that the last execution went wrong, and continues skipping the problematic course. A possible solution would be to raise the PHP/Apache limit in your installation (memory, time of execution...). By taking a look to your log tables you should be able to see if the &amp;quot;crash&amp;quot; is happening at exact time intervals (usually a problem with the max_execution_time php&#039;s variable), or if there is some exact point were all the courses are breaking (generally internal zip libraries, try to switch to external executables instead).&lt;br /&gt;
# Skipped - this happens when a course is unavailable to students and has not been changed in the last month (31 days). This isn&#039;t an error situation - it&#039;s a feature, especially useful for sites with many unavailable old courses, saving process time.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
Course backups automatically skip courses which are unavailable to students and have not been changed in the last month.&lt;br /&gt;
&lt;br /&gt;
The [http://moodle.org/mod/forum/discuss.php?d=80367#p714733 Hide courses excluded from automatic backup] discussion in the Using Moodle forum describes a way that you can disable or override this thirty day check. This could be useful if, for example, you wanted to change the period from thirty days to six months.&lt;br /&gt;
&lt;br /&gt;
==Why does restore stop, rather than completing?==&lt;br /&gt;
&lt;br /&gt;
Attempting to restore a course to an older version of Moodle than the one the course was backed up on can result in the restore process failing to complete. To ensure a successful restore, make sure that the version of Moodle you are restoring the course to is the same, or newer, than the one the course was backed up on.&lt;br /&gt;
&lt;br /&gt;
If it stop unexpectedly with no errors shown try again with [[Debugging]] switched on. Any errors you now see can help experts in the support forums diagnose your problem. You can also check the discussion links in the See also section below for further advice.&lt;br /&gt;
&lt;br /&gt;
==Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle 2.0 Restore breaks.png|thumb|Error message in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
This message is displayed when:&lt;br /&gt;
&lt;br /&gt;
# Your target site has one xxxx user (xxxx being the username)&lt;br /&gt;
# The backup being restored also has one xxxx user&lt;br /&gt;
# After various comparisons, Moodle has detected that the xxxx user in 1. and the xxxx user in 2. aren&#039;t the same user.&lt;br /&gt;
&lt;br /&gt;
If 1, 2 and 3 above happens, restore stops before performing any action as far as restoring that user will end associating &amp;quot;things&amp;quot; (create activities, posts, attempts... whatever...) to the xxxx user in the target site, when those &amp;quot;things&amp;quot; weren&#039;t performed by the same user at all.&lt;br /&gt;
&lt;br /&gt;
Those checks and behaviour were introduced in Moodle 1.9.x and continue being valid under 2.0. Usually the xxxx user in the messages is the &amp;quot;admin&amp;quot; user (that exists in practically all Moodle installations).&lt;br /&gt;
&lt;br /&gt;
There are two possible solutions to make both xxxx users in 1 and 2 to match (and avoid the conflict):&lt;br /&gt;
&lt;br /&gt;
a) Modify the backup&#039;s &#039;&#039;&#039;users.xml&#039;&#039;&#039; file and make the &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields match with the ones in target site.&amp;lt;br /&amp;gt;&lt;br /&gt;
b) Modify the &#039;&#039;&#039;target site&#039;&#039;&#039; and set the user &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields to match with the ones in backup&#039;s user.xml file.&lt;br /&gt;
&lt;br /&gt;
Method a) is recommended so the restore process will match both xxxx users and every &amp;quot;thing&amp;quot; in the backup file belonging to xxxx will be associated to the already existing xxxx user in the target site.&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;&#039;NOTE:&#039;&#039;&#039; When using method a) be aware that the &#039;&#039;moodle-filename-backup.&#039;&#039;&#039;mbz&#039;&#039;&#039;&#039;&#039; is a zip file and can be renamed to &#039;&#039;moodle-filename-backup.&#039;&#039;&#039;zip&#039;&#039;&#039;&#039;&#039; and unzipped. &lt;br /&gt;
  When editing complete, rezip and then rename using the original file name with the &amp;quot;*.mbz&amp;quot; extention.&lt;br /&gt;
&lt;br /&gt;
==Why are certain course links broken in a restored course?==&lt;br /&gt;
&lt;br /&gt;
Inter-activity links must be absolute (full) URLs e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://site.com/mod/resource/view.php?id=xxx&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in order to be processed properly during backup and restore.&lt;br /&gt;
&lt;br /&gt;
Any relative URLs e.g. &amp;lt;code&amp;gt;/mod/resource/view.php?id=xxx&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;../resource/view.php?id=xxx&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;view.php?id=xxx&amp;lt;/code&amp;gt; will result in broken links when the course is restored.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?f=128 Backup and Restore forum]&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 databasejournal.com article on repairing database corruption in MySQL]&lt;br /&gt;
* [[Site backup]]&lt;br /&gt;
* [[Moodle migration]]&lt;br /&gt;
* [[Beginning Moodle 2.0 Administration]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=142720 Trying to restore user &#039;admin&#039; from backup file will cause conflict]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 &amp;quot;Course Backup Filearea&amp;quot;?]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Backup]]&lt;br /&gt;
[[pl:Backup FAQ]]&lt;br /&gt;
[[fr:FAQ de sauvegarde]]&lt;br /&gt;
[[ja:バックアップFAQ]]&lt;br /&gt;
[[pt:FAQ sobre cópias de segurança]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101434</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101434"/>
		<updated>2012-10-21T11:46:30Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Backup}}&lt;br /&gt;
==How do I backup a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course backup]] and [[Automated backup setup]]. &lt;br /&gt;
&lt;br /&gt;
==How do I restore a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course restore]].&lt;br /&gt;
&lt;br /&gt;
==How do I backup my site?==&lt;br /&gt;
&lt;br /&gt;
See [[Site backup]].&lt;br /&gt;
&lt;br /&gt;
==What are the pros and cons of course versus site backups?==&lt;br /&gt;
&lt;br /&gt;
[[Site backup|Site backups]] are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
For a site administrator, [[Automated course backup|automated course backups]] are more expensive in terms of time, CPU usage and storage. The recovery time to have a site running again takes longer than a site backup. However,  teachers and site administrators might find a course backups as a way to create a &amp;quot;fresh&amp;quot; copy of a course that can be re-used (in older versions of Moodle, in newer versions see [[Import course data]]) or as a method to distribute a course(s) to other Moodle sites.&lt;br /&gt;
&lt;br /&gt;
==Why is my automated course backup much smaller in size than my manual course backup?==&lt;br /&gt;
&lt;br /&gt;
This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disc space and makes the backup procedure much faster. &lt;br /&gt;
&lt;br /&gt;
==What data is not contained in course backups?==&lt;br /&gt;
&lt;br /&gt;
By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:&lt;br /&gt;
* Quiz questions are only backed up if at least one question from their category has been added to a quiz.&lt;br /&gt;
* Scales are only backed up if they are used by at least one activity.&lt;br /&gt;
* Users&#039; passwords are not backed up when the &amp;quot;Include enrolled users&amp;quot; option is selected.&lt;br /&gt;
&lt;br /&gt;
==Why is there no &amp;quot;all/none&amp;quot; feature when selecting items to  backup?==&lt;br /&gt;
This was enabled in MDL-32705 and is available in Moodle 2.3.2 onwards.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;Error: An error occurred deleting old backup data&amp;quot;. What should I do?==&lt;br /&gt;
&lt;br /&gt;
This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:&lt;br /&gt;
&lt;br /&gt;
# Delete old records from &amp;quot;backup_ids&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old records from &amp;quot;backup_files&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old files from &amp;quot;moodledata/temp/backup&amp;quot;: Delete the dir completely and try again.&lt;br /&gt;
&lt;br /&gt;
[[Image:BackupProblem.gif|thumb|Backup error message]]For points 1 &amp;amp; 2, there are various ways of repairing tables, including using MySQL Admin.&lt;br /&gt;
For point 3 see below:&lt;br /&gt;
&lt;br /&gt;
The error message states that the &amp;quot;directory not empty&amp;quot; and gives the path to that directory. If you go there with an FTP program you can see what is there and clean up. It could be just some empty subfolders that were leftover. Deleting these has been able to help. One can also delete the dir &amp;quot;moodledata/temp/backup&amp;quot; completely. That can take a bit longer but may solve several problems at once.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;XML error: not well-formed (invalid token) at line YYYY&amp;quot;. What can I do?==&lt;br /&gt;
&lt;br /&gt;
This problem can appear at any point in the restore process. It&#039;s caused when the XML parser detects something incorrect in the backup file that prevent correct operation. Usually, it&#039;s caused by some &amp;quot;illegal&amp;quot; characters added in the original course due to some copy/paste of text containing them (control characters, or invalid sequences...).&lt;br /&gt;
&lt;br /&gt;
The best method to handle this issue is:&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic backup file under one empty folder.&lt;br /&gt;
&lt;br /&gt;
* Open the moodle.xml with Firefox. It will show you where (exact char) the problem is happening.&lt;br /&gt;
&lt;br /&gt;
* Edit the moodle.xml file with some UTF8-compatible editor and delete such characters. Save changes.&lt;br /&gt;
&lt;br /&gt;
* Test the moodle.xml file again with Firefox until no error was displayed.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but not the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
* Restore still not working? See the next question.&lt;br /&gt;
&lt;br /&gt;
Also, if possible, it&#039;s highly recommended to solve those problems in the original course too from Moodle itself. Once &amp;quot;repaired&amp;quot; there, problems will be out if you create new backup files in the future.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;moodle xml not found at root level of zip file&amp;quot;. What can I do?==&lt;br /&gt;
If you are restoring from a zip file backup make sure the moodle.xml file is at the root level. To ensure this:&lt;br /&gt;
#Unzip the backup file of the course (example: mycourse.zip)&lt;br /&gt;
#Once the file is unzipped, open the folder (example: mycourse).&lt;br /&gt;
#Select the folders within the mycourse folder AND the moodle.xml file and create a zip of those item (example: mycourse_new.zip)&lt;br /&gt;
#Upload the new zip file (example: mycourse_new.zip) and restore from that.&lt;br /&gt;
&lt;br /&gt;
If the backup file is guaranteed to be correct, check paths to external files (zip, unzip). Incorrect settings also lead to this error message (see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=140355 moodle.xml not found in root...] and MDL-14812).&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;An error occurred while copying the zip file...&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
This problem is most likely caused by a permissions issue in the destination directory. Backup files are copied to &amp;quot;XXX/backupdata&amp;quot; under your dataroot directory (where XXX is the id of the course being backed up).&lt;br /&gt;
&lt;br /&gt;
On Windows systems, if you have configured Moodle to use an external zip program then the IIS IUSR_computername user needs to have Execute access to cmd.exe so that it can run the zip program. See the Note in [https://docs.moodle.org/en/System_paths#Path_to_zip Path to zip] for more details.  &lt;br /&gt;
&lt;br /&gt;
The problem could also be caused by a disk being full, though this is far less likely.&lt;br /&gt;
&lt;br /&gt;
To obtain precise information about what&#039;s happening, you can enable debug messages in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Debugging]]&#039;&#039; (select the maximum level - DEVELOPER) and/or check the web server error logs.&lt;br /&gt;
&lt;br /&gt;
==I Still get an XML error. How can I clean the borked XML file?==&lt;br /&gt;
&lt;br /&gt;
In some cases XML backup files may contain characters causing the restore process to abort, even after the steps described in the previous question. In such cases you may want to try the following:&lt;br /&gt;
&lt;br /&gt;
* Download the [http://repository.atlassian.com/atlassian-xml-cleaner/jars/atlassian-xml-cleaner-0.1.jar Atlassian XML Cleaner Utility] from the [http://confluence.atlassian.com/display/JIRA/Removing+invalid+characters+from+XML+backups JIRA Atlassian site].&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic Moodle backup file under one empty folder. Moodle will create the course file folders as long as the unclean moodle.xml file. Please unzip using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Rename the unclean moodle.xml file to moodle-unclean.xml. &lt;br /&gt;
&lt;br /&gt;
* If you don&#039;t have access to your Moodle server&#039;s command prompt, using the Moodle zip feature, zip the moodle-unclean.xml file only, download the zip file locally and unzip it. It is very important to download the xml file in zipped format to avoid unwanted character encoding when transferring from an operating system to another.&lt;br /&gt;
&lt;br /&gt;
* Move the downloaded Atlassian XML Cleaner Utility in the same folder where is your moodle-unclean.xml file.&lt;br /&gt;
&lt;br /&gt;
* Issue the following command from the command prompt: &lt;br /&gt;
&lt;br /&gt;
 java -jar atlassian-xml-cleaner-0.1.jar moodle-unclean.xml &amp;gt; moodle.xml&lt;br /&gt;
&lt;br /&gt;
* If you launched the utility on your local computer, zip the just created (and hopefully cleaned) moodle.xml file and upload it in the same place from where you downloaded the moodle-unclean.xml file. Once uploaded, unzip it using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
==What does &amp;quot;Some of your courses weren&#039;t saved!!&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
There are three possible causes of this problem:&lt;br /&gt;
# Error - this happens when the backup procedure has found an error and so hasn&#039;t finished the backup of a particular course. These are &amp;quot;controlled&amp;quot; errors and the scheduled backup continues with the next course.&lt;br /&gt;
# Unfinished - this happens when the backup procedure dies without knowing why. When the cron is next executed it detects that the last execution went wrong, and continues skipping the problematic course. A possible solution would be to raise the PHP/Apache limit in your installation (memory, time of execution...). By taking a look to your log tables you should be able to see if the &amp;quot;crash&amp;quot; is happening at exact time intervals (usually a problem with the max_execution_time php&#039;s variable), or if there is some exact point were all the courses are breaking (generally internal zip libraries, try to switch to external executables instead).&lt;br /&gt;
# Skipped - this happens when a course is unavailable to students and has not been changed in the last month (31 days). This isn&#039;t an error situation - it&#039;s a feature, especially useful for sites with many unavailable old courses, saving process time.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
Course backups automatically skip courses which are unavailable to students and have not been changed in the last month.&lt;br /&gt;
&lt;br /&gt;
The [http://moodle.org/mod/forum/discuss.php?d=80367#p714733 Hide courses excluded from automatic backup] discussion in the Using Moodle forum describes a way that you can disable or override this thirty day check. This could be useful if, for example, you wanted to change the period from thirty days to six months.&lt;br /&gt;
&lt;br /&gt;
==Why does restore stop, rather than completing?==&lt;br /&gt;
&lt;br /&gt;
Attempting to restore a course to an older version of Moodle than the one the course was backed up on can result in the restore process failing to complete. To ensure a successful restore, make sure that the version of Moodle you are restoring the course to is the same, or newer, than the one the course was backed up on.&lt;br /&gt;
&lt;br /&gt;
If it stop unexpectedly with no errors shown try again with [[Debugging]] switched on. Any errors you now see can help experts in the support forums diagnose your problem. You can also check the discussion links in the See also section below for further advice.&lt;br /&gt;
&lt;br /&gt;
==Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle 2.0 Restore breaks.png|thumb|Error message in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
This message is displayed when:&lt;br /&gt;
&lt;br /&gt;
# Your target site has one xxxx user (xxxx being the username)&lt;br /&gt;
# The backup being restored also has one xxxx user&lt;br /&gt;
# After various comparisons, Moodle has detected that the xxxx user in 1. and the xxxx user in 2. aren&#039;t the same user.&lt;br /&gt;
&lt;br /&gt;
If 1, 2 and 3 above happens, restore stops before performing any action as far as restoring that user will end associating &amp;quot;things&amp;quot; (create activities, posts, attempts... whatever...) to the xxxx user in the target site, when those &amp;quot;things&amp;quot; weren&#039;t performed by the same user at all.&lt;br /&gt;
&lt;br /&gt;
Those checks and behaviour were introduced in Moodle 1.9.x and continue being valid under 2.0. Usually the xxxx user in the messages is the &amp;quot;admin&amp;quot; user (that exists in practically all Moodle installations).&lt;br /&gt;
&lt;br /&gt;
There are two possible solutions to make both xxxx users in 1 and 2 to match (and avoid the conflict):&lt;br /&gt;
&lt;br /&gt;
a) Modify the backup&#039;s &#039;&#039;&#039;users.xml&#039;&#039;&#039; file and make the &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields match with the ones in target site.&amp;lt;br /&amp;gt;&lt;br /&gt;
b) Modify the &#039;&#039;&#039;target site&#039;&#039;&#039; and set the user &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields to match with the ones in backup&#039;s user.xml file.&lt;br /&gt;
&lt;br /&gt;
Method a) is recommended so the restore process will match both xxxx users and every &amp;quot;thing&amp;quot; in the backup file belonging to xxxx will be associated to the already existing xxxx user in the target site.&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;&#039;NOTE:&#039;&#039;&#039; When using method a) be aware that the &#039;&#039;moodle-filename-backup.&#039;&#039;&#039;mbz&#039;&#039;&#039;&#039;&#039; is a zip file and can be renamed to &#039;&#039;moodle-filename-backup.&#039;&#039;&#039;zip&#039;&#039;&#039;&#039;&#039; and unzipped. When editing complete, rezip and then rename using the original file name with the &amp;quot;*.mbz&amp;quot; extention.&lt;br /&gt;
&lt;br /&gt;
==Why are certain course links broken in a restored course?==&lt;br /&gt;
&lt;br /&gt;
Inter-activity links must be absolute (full) URLs e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://site.com/mod/resource/view.php?id=xxx&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in order to be processed properly during backup and restore.&lt;br /&gt;
&lt;br /&gt;
Any relative URLs e.g. &amp;lt;code&amp;gt;/mod/resource/view.php?id=xxx&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;../resource/view.php?id=xxx&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;view.php?id=xxx&amp;lt;/code&amp;gt; will result in broken links when the course is restored.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?f=128 Backup and Restore forum]&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 databasejournal.com article on repairing database corruption in MySQL]&lt;br /&gt;
* [[Site backup]]&lt;br /&gt;
* [[Moodle migration]]&lt;br /&gt;
* [[Beginning Moodle 2.0 Administration]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=142720 Trying to restore user &#039;admin&#039; from backup file will cause conflict]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 &amp;quot;Course Backup Filearea&amp;quot;?]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Backup]]&lt;br /&gt;
[[pl:Backup FAQ]]&lt;br /&gt;
[[fr:FAQ de sauvegarde]]&lt;br /&gt;
[[ja:バックアップFAQ]]&lt;br /&gt;
[[pt:FAQ sobre cópias de segurança]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101433</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101433"/>
		<updated>2012-10-21T11:45:18Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Backup}}&lt;br /&gt;
==How do I backup a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course backup]] and [[Automated backup setup]]. &lt;br /&gt;
&lt;br /&gt;
==How do I restore a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course restore]].&lt;br /&gt;
&lt;br /&gt;
==How do I backup my site?==&lt;br /&gt;
&lt;br /&gt;
See [[Site backup]].&lt;br /&gt;
&lt;br /&gt;
==What are the pros and cons of course versus site backups?==&lt;br /&gt;
&lt;br /&gt;
[[Site backup|Site backups]] are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
For a site administrator, [[Automated course backup|automated course backups]] are more expensive in terms of time, CPU usage and storage. The recovery time to have a site running again takes longer than a site backup. However,  teachers and site administrators might find a course backups as a way to create a &amp;quot;fresh&amp;quot; copy of a course that can be re-used (in older versions of Moodle, in newer versions see [[Import course data]]) or as a method to distribute a course(s) to other Moodle sites.&lt;br /&gt;
&lt;br /&gt;
==Why is my automated course backup much smaller in size than my manual course backup?==&lt;br /&gt;
&lt;br /&gt;
This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disc space and makes the backup procedure much faster. &lt;br /&gt;
&lt;br /&gt;
==What data is not contained in course backups?==&lt;br /&gt;
&lt;br /&gt;
By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:&lt;br /&gt;
* Quiz questions are only backed up if at least one question from their category has been added to a quiz.&lt;br /&gt;
* Scales are only backed up if they are used by at least one activity.&lt;br /&gt;
* Users&#039; passwords are not backed up when the &amp;quot;Include enrolled users&amp;quot; option is selected.&lt;br /&gt;
&lt;br /&gt;
==Why is there no &amp;quot;all/none&amp;quot; feature when selecting items to  backup?==&lt;br /&gt;
This was enabled in MDL-32705 and is available in Moodle 2.3.2 onwards.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;Error: An error occurred deleting old backup data&amp;quot;. What should I do?==&lt;br /&gt;
&lt;br /&gt;
This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:&lt;br /&gt;
&lt;br /&gt;
# Delete old records from &amp;quot;backup_ids&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old records from &amp;quot;backup_files&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old files from &amp;quot;moodledata/temp/backup&amp;quot;: Delete the dir completely and try again.&lt;br /&gt;
&lt;br /&gt;
[[Image:BackupProblem.gif|thumb|Backup error message]]For points 1 &amp;amp; 2, there are various ways of repairing tables, including using MySQL Admin.&lt;br /&gt;
For point 3 see below:&lt;br /&gt;
&lt;br /&gt;
The error message states that the &amp;quot;directory not empty&amp;quot; and gives the path to that directory. If you go there with an FTP program you can see what is there and clean up. It could be just some empty subfolders that were leftover. Deleting these has been able to help. One can also delete the dir &amp;quot;moodledata/temp/backup&amp;quot; completely. That can take a bit longer but may solve several problems at once.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;XML error: not well-formed (invalid token) at line YYYY&amp;quot;. What can I do?==&lt;br /&gt;
&lt;br /&gt;
This problem can appear at any point in the restore process. It&#039;s caused when the XML parser detects something incorrect in the backup file that prevent correct operation. Usually, it&#039;s caused by some &amp;quot;illegal&amp;quot; characters added in the original course due to some copy/paste of text containing them (control characters, or invalid sequences...).&lt;br /&gt;
&lt;br /&gt;
The best method to handle this issue is:&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic backup file under one empty folder.&lt;br /&gt;
&lt;br /&gt;
* Open the moodle.xml with Firefox. It will show you where (exact char) the problem is happening.&lt;br /&gt;
&lt;br /&gt;
* Edit the moodle.xml file with some UTF8-compatible editor and delete such characters. Save changes.&lt;br /&gt;
&lt;br /&gt;
* Test the moodle.xml file again with Firefox until no error was displayed.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but not the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
* Restore still not working? See the next question.&lt;br /&gt;
&lt;br /&gt;
Also, if possible, it&#039;s highly recommended to solve those problems in the original course too from Moodle itself. Once &amp;quot;repaired&amp;quot; there, problems will be out if you create new backup files in the future.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;moodle xml not found at root level of zip file&amp;quot;. What can I do?==&lt;br /&gt;
If you are restoring from a zip file backup make sure the moodle.xml file is at the root level. To ensure this:&lt;br /&gt;
#Unzip the backup file of the course (example: mycourse.zip)&lt;br /&gt;
#Once the file is unzipped, open the folder (example: mycourse).&lt;br /&gt;
#Select the folders within the mycourse folder AND the moodle.xml file and create a zip of those item (example: mycourse_new.zip)&lt;br /&gt;
#Upload the new zip file (example: mycourse_new.zip) and restore from that.&lt;br /&gt;
&lt;br /&gt;
If the backup file is guaranteed to be correct, check paths to external files (zip, unzip). Incorrect settings also lead to this error message (see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=140355 moodle.xml not found in root...] and MDL-14812).&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;An error occurred while copying the zip file...&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
This problem is most likely caused by a permissions issue in the destination directory. Backup files are copied to &amp;quot;XXX/backupdata&amp;quot; under your dataroot directory (where XXX is the id of the course being backed up).&lt;br /&gt;
&lt;br /&gt;
On Windows systems, if you have configured Moodle to use an external zip program then the IIS IUSR_computername user needs to have Execute access to cmd.exe so that it can run the zip program. See the Note in [https://docs.moodle.org/en/System_paths#Path_to_zip Path to zip] for more details.  &lt;br /&gt;
&lt;br /&gt;
The problem could also be caused by a disk being full, though this is far less likely.&lt;br /&gt;
&lt;br /&gt;
To obtain precise information about what&#039;s happening, you can enable debug messages in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Debugging]]&#039;&#039; (select the maximum level - DEVELOPER) and/or check the web server error logs.&lt;br /&gt;
&lt;br /&gt;
==I Still get an XML error. How can I clean the borked XML file?==&lt;br /&gt;
&lt;br /&gt;
In some cases XML backup files may contain characters causing the restore process to abort, even after the steps described in the previous question. In such cases you may want to try the following:&lt;br /&gt;
&lt;br /&gt;
* Download the [http://repository.atlassian.com/atlassian-xml-cleaner/jars/atlassian-xml-cleaner-0.1.jar Atlassian XML Cleaner Utility] from the [http://confluence.atlassian.com/display/JIRA/Removing+invalid+characters+from+XML+backups JIRA Atlassian site].&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic Moodle backup file under one empty folder. Moodle will create the course file folders as long as the unclean moodle.xml file. Please unzip using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Rename the unclean moodle.xml file to moodle-unclean.xml. &lt;br /&gt;
&lt;br /&gt;
* If you don&#039;t have access to your Moodle server&#039;s command prompt, using the Moodle zip feature, zip the moodle-unclean.xml file only, download the zip file locally and unzip it. It is very important to download the xml file in zipped format to avoid unwanted character encoding when transferring from an operating system to another.&lt;br /&gt;
&lt;br /&gt;
* Move the downloaded Atlassian XML Cleaner Utility in the same folder where is your moodle-unclean.xml file.&lt;br /&gt;
&lt;br /&gt;
* Issue the following command from the command prompt: &lt;br /&gt;
&lt;br /&gt;
 java -jar atlassian-xml-cleaner-0.1.jar moodle-unclean.xml &amp;gt; moodle.xml&lt;br /&gt;
&lt;br /&gt;
* If you launched the utility on your local computer, zip the just created (and hopefully cleaned) moodle.xml file and upload it in the same place from where you downloaded the moodle-unclean.xml file. Once uploaded, unzip it using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
==What does &amp;quot;Some of your courses weren&#039;t saved!!&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
There are three possible causes of this problem:&lt;br /&gt;
# Error - this happens when the backup procedure has found an error and so hasn&#039;t finished the backup of a particular course. These are &amp;quot;controlled&amp;quot; errors and the scheduled backup continues with the next course.&lt;br /&gt;
# Unfinished - this happens when the backup procedure dies without knowing why. When the cron is next executed it detects that the last execution went wrong, and continues skipping the problematic course. A possible solution would be to raise the PHP/Apache limit in your installation (memory, time of execution...). By taking a look to your log tables you should be able to see if the &amp;quot;crash&amp;quot; is happening at exact time intervals (usually a problem with the max_execution_time php&#039;s variable), or if there is some exact point were all the courses are breaking (generally internal zip libraries, try to switch to external executables instead).&lt;br /&gt;
# Skipped - this happens when a course is unavailable to students and has not been changed in the last month (31 days). This isn&#039;t an error situation - it&#039;s a feature, especially useful for sites with many unavailable old courses, saving process time.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
Course backups automatically skip courses which are unavailable to students and have not been changed in the last month.&lt;br /&gt;
&lt;br /&gt;
The [http://moodle.org/mod/forum/discuss.php?d=80367#p714733 Hide courses excluded from automatic backup] discussion in the Using Moodle forum describes a way that you can disable or override this thirty day check. This could be useful if, for example, you wanted to change the period from thirty days to six months.&lt;br /&gt;
&lt;br /&gt;
==Why does restore stop, rather than completing?==&lt;br /&gt;
&lt;br /&gt;
Attempting to restore a course to an older version of Moodle than the one the course was backed up on can result in the restore process failing to complete. To ensure a successful restore, make sure that the version of Moodle you are restoring the course to is the same, or newer, than the one the course was backed up on.&lt;br /&gt;
&lt;br /&gt;
If it stop unexpectedly with no errors shown try again with [[Debugging]] switched on. Any errors you now see can help experts in the support forums diagnose your problem. You can also check the discussion links in the See also section below for further advice.&lt;br /&gt;
&lt;br /&gt;
==Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle 2.0 Restore breaks.png|thumb|Error message in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
This message is displayed when:&lt;br /&gt;
&lt;br /&gt;
# Your target site has one xxxx user (xxxx being the username)&lt;br /&gt;
# The backup being restored also has one xxxx user&lt;br /&gt;
# After various comparisons, Moodle has detected that the xxxx user in 1. and the xxxx user in 2. aren&#039;t the same user.&lt;br /&gt;
&lt;br /&gt;
If 1, 2 and 3 above happens, restore stops before performing any action as far as restoring that user will end associating &amp;quot;things&amp;quot; (create activities, posts, attempts... whatever...) to the xxxx user in the target site, when those &amp;quot;things&amp;quot; weren&#039;t performed by the same user at all.&lt;br /&gt;
&lt;br /&gt;
Those checks and behaviour were introduced in Moodle 1.9.x and continue being valid under 2.0. Usually the xxxx user in the messages is the &amp;quot;admin&amp;quot; user (that exists in practically all Moodle installations).&lt;br /&gt;
&lt;br /&gt;
There are two possible solutions to make both xxxx users in 1 and 2 to match (and avoid the conflict):&lt;br /&gt;
&lt;br /&gt;
a) Modify the backup&#039;s &#039;&#039;&#039;users.xml&#039;&#039;&#039; file and make the &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields match with the ones in target site.&amp;lt;br /&amp;gt;&lt;br /&gt;
b) Modify the &#039;&#039;&#039;target site&#039;&#039;&#039; and set the user &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields to match with the ones in backup&#039;s user.xml file.&lt;br /&gt;
&lt;br /&gt;
Method a) is recommended so the restore process will match both xxxx users and every &amp;quot;thing&amp;quot; in the backup file belonging to xxxx will be associated to the already existing xxxx user in the target site.&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;&#039;NOTE:&#039;&#039;&#039; When using method a) be aware that the &#039;&#039;moodle-filename-backup.mbz&#039;&#039; is a zip file and can be renamed and unzipped. When editing compelte, rezip and then &lt;br /&gt;
  rename using the original file name with the &amp;quot;*.mbz&amp;quot; extention.&lt;br /&gt;
&lt;br /&gt;
==Why are certain course links broken in a restored course?==&lt;br /&gt;
&lt;br /&gt;
Inter-activity links must be absolute (full) URLs e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://site.com/mod/resource/view.php?id=xxx&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in order to be processed properly during backup and restore.&lt;br /&gt;
&lt;br /&gt;
Any relative URLs e.g. &amp;lt;code&amp;gt;/mod/resource/view.php?id=xxx&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;../resource/view.php?id=xxx&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;view.php?id=xxx&amp;lt;/code&amp;gt; will result in broken links when the course is restored.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?f=128 Backup and Restore forum]&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 databasejournal.com article on repairing database corruption in MySQL]&lt;br /&gt;
* [[Site backup]]&lt;br /&gt;
* [[Moodle migration]]&lt;br /&gt;
* [[Beginning Moodle 2.0 Administration]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=142720 Trying to restore user &#039;admin&#039; from backup file will cause conflict]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 &amp;quot;Course Backup Filearea&amp;quot;?]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Backup]]&lt;br /&gt;
[[pl:Backup FAQ]]&lt;br /&gt;
[[fr:FAQ de sauvegarde]]&lt;br /&gt;
[[ja:バックアップFAQ]]&lt;br /&gt;
[[pt:FAQ sobre cópias de segurança]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101432</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101432"/>
		<updated>2012-10-21T11:44:47Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Backup}}&lt;br /&gt;
==How do I backup a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course backup]] and [[Automated backup setup]]. &lt;br /&gt;
&lt;br /&gt;
==How do I restore a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course restore]].&lt;br /&gt;
&lt;br /&gt;
==How do I backup my site?==&lt;br /&gt;
&lt;br /&gt;
See [[Site backup]].&lt;br /&gt;
&lt;br /&gt;
==What are the pros and cons of course versus site backups?==&lt;br /&gt;
&lt;br /&gt;
[[Site backup|Site backups]] are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
For a site administrator, [[Automated course backup|automated course backups]] are more expensive in terms of time, CPU usage and storage. The recovery time to have a site running again takes longer than a site backup. However,  teachers and site administrators might find a course backups as a way to create a &amp;quot;fresh&amp;quot; copy of a course that can be re-used (in older versions of Moodle, in newer versions see [[Import course data]]) or as a method to distribute a course(s) to other Moodle sites.&lt;br /&gt;
&lt;br /&gt;
==Why is my automated course backup much smaller in size than my manual course backup?==&lt;br /&gt;
&lt;br /&gt;
This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disc space and makes the backup procedure much faster. &lt;br /&gt;
&lt;br /&gt;
==What data is not contained in course backups?==&lt;br /&gt;
&lt;br /&gt;
By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:&lt;br /&gt;
* Quiz questions are only backed up if at least one question from their category has been added to a quiz.&lt;br /&gt;
* Scales are only backed up if they are used by at least one activity.&lt;br /&gt;
* Users&#039; passwords are not backed up when the &amp;quot;Include enrolled users&amp;quot; option is selected.&lt;br /&gt;
&lt;br /&gt;
==Why is there no &amp;quot;all/none&amp;quot; feature when selecting items to  backup?==&lt;br /&gt;
This was enabled in MDL-32705 and is available in Moodle 2.3.2 onwards.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;Error: An error occurred deleting old backup data&amp;quot;. What should I do?==&lt;br /&gt;
&lt;br /&gt;
This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:&lt;br /&gt;
&lt;br /&gt;
# Delete old records from &amp;quot;backup_ids&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old records from &amp;quot;backup_files&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old files from &amp;quot;moodledata/temp/backup&amp;quot;: Delete the dir completely and try again.&lt;br /&gt;
&lt;br /&gt;
[[Image:BackupProblem.gif|thumb|Backup error message]]For points 1 &amp;amp; 2, there are various ways of repairing tables, including using MySQL Admin.&lt;br /&gt;
For point 3 see below:&lt;br /&gt;
&lt;br /&gt;
The error message states that the &amp;quot;directory not empty&amp;quot; and gives the path to that directory. If you go there with an FTP program you can see what is there and clean up. It could be just some empty subfolders that were leftover. Deleting these has been able to help. One can also delete the dir &amp;quot;moodledata/temp/backup&amp;quot; completely. That can take a bit longer but may solve several problems at once.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;XML error: not well-formed (invalid token) at line YYYY&amp;quot;. What can I do?==&lt;br /&gt;
&lt;br /&gt;
This problem can appear at any point in the restore process. It&#039;s caused when the XML parser detects something incorrect in the backup file that prevent correct operation. Usually, it&#039;s caused by some &amp;quot;illegal&amp;quot; characters added in the original course due to some copy/paste of text containing them (control characters, or invalid sequences...).&lt;br /&gt;
&lt;br /&gt;
The best method to handle this issue is:&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic backup file under one empty folder.&lt;br /&gt;
&lt;br /&gt;
* Open the moodle.xml with Firefox. It will show you where (exact char) the problem is happening.&lt;br /&gt;
&lt;br /&gt;
* Edit the moodle.xml file with some UTF8-compatible editor and delete such characters. Save changes.&lt;br /&gt;
&lt;br /&gt;
* Test the moodle.xml file again with Firefox until no error was displayed.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but not the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
* Restore still not working? See the next question.&lt;br /&gt;
&lt;br /&gt;
Also, if possible, it&#039;s highly recommended to solve those problems in the original course too from Moodle itself. Once &amp;quot;repaired&amp;quot; there, problems will be out if you create new backup files in the future.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;moodle xml not found at root level of zip file&amp;quot;. What can I do?==&lt;br /&gt;
If you are restoring from a zip file backup make sure the moodle.xml file is at the root level. To ensure this:&lt;br /&gt;
#Unzip the backup file of the course (example: mycourse.zip)&lt;br /&gt;
#Once the file is unzipped, open the folder (example: mycourse).&lt;br /&gt;
#Select the folders within the mycourse folder AND the moodle.xml file and create a zip of those item (example: mycourse_new.zip)&lt;br /&gt;
#Upload the new zip file (example: mycourse_new.zip) and restore from that.&lt;br /&gt;
&lt;br /&gt;
If the backup file is guaranteed to be correct, check paths to external files (zip, unzip). Incorrect settings also lead to this error message (see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=140355 moodle.xml not found in root...] and MDL-14812).&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;An error occurred while copying the zip file...&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
This problem is most likely caused by a permissions issue in the destination directory. Backup files are copied to &amp;quot;XXX/backupdata&amp;quot; under your dataroot directory (where XXX is the id of the course being backed up).&lt;br /&gt;
&lt;br /&gt;
On Windows systems, if you have configured Moodle to use an external zip program then the IIS IUSR_computername user needs to have Execute access to cmd.exe so that it can run the zip program. See the Note in [https://docs.moodle.org/en/System_paths#Path_to_zip Path to zip] for more details.  &lt;br /&gt;
&lt;br /&gt;
The problem could also be caused by a disk being full, though this is far less likely.&lt;br /&gt;
&lt;br /&gt;
To obtain precise information about what&#039;s happening, you can enable debug messages in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Debugging]]&#039;&#039; (select the maximum level - DEVELOPER) and/or check the web server error logs.&lt;br /&gt;
&lt;br /&gt;
==I Still get an XML error. How can I clean the borked XML file?==&lt;br /&gt;
&lt;br /&gt;
In some cases XML backup files may contain characters causing the restore process to abort, even after the steps described in the previous question. In such cases you may want to try the following:&lt;br /&gt;
&lt;br /&gt;
* Download the [http://repository.atlassian.com/atlassian-xml-cleaner/jars/atlassian-xml-cleaner-0.1.jar Atlassian XML Cleaner Utility] from the [http://confluence.atlassian.com/display/JIRA/Removing+invalid+characters+from+XML+backups JIRA Atlassian site].&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic Moodle backup file under one empty folder. Moodle will create the course file folders as long as the unclean moodle.xml file. Please unzip using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Rename the unclean moodle.xml file to moodle-unclean.xml. &lt;br /&gt;
&lt;br /&gt;
* If you don&#039;t have access to your Moodle server&#039;s command prompt, using the Moodle zip feature, zip the moodle-unclean.xml file only, download the zip file locally and unzip it. It is very important to download the xml file in zipped format to avoid unwanted character encoding when transferring from an operating system to another.&lt;br /&gt;
&lt;br /&gt;
* Move the downloaded Atlassian XML Cleaner Utility in the same folder where is your moodle-unclean.xml file.&lt;br /&gt;
&lt;br /&gt;
* Issue the following command from the command prompt: &lt;br /&gt;
&lt;br /&gt;
 java -jar atlassian-xml-cleaner-0.1.jar moodle-unclean.xml &amp;gt; moodle.xml&lt;br /&gt;
&lt;br /&gt;
* If you launched the utility on your local computer, zip the just created (and hopefully cleaned) moodle.xml file and upload it in the same place from where you downloaded the moodle-unclean.xml file. Once uploaded, unzip it using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
==What does &amp;quot;Some of your courses weren&#039;t saved!!&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
There are three possible causes of this problem:&lt;br /&gt;
# Error - this happens when the backup procedure has found an error and so hasn&#039;t finished the backup of a particular course. These are &amp;quot;controlled&amp;quot; errors and the scheduled backup continues with the next course.&lt;br /&gt;
# Unfinished - this happens when the backup procedure dies without knowing why. When the cron is next executed it detects that the last execution went wrong, and continues skipping the problematic course. A possible solution would be to raise the PHP/Apache limit in your installation (memory, time of execution...). By taking a look to your log tables you should be able to see if the &amp;quot;crash&amp;quot; is happening at exact time intervals (usually a problem with the max_execution_time php&#039;s variable), or if there is some exact point were all the courses are breaking (generally internal zip libraries, try to switch to external executables instead).&lt;br /&gt;
# Skipped - this happens when a course is unavailable to students and has not been changed in the last month (31 days). This isn&#039;t an error situation - it&#039;s a feature, especially useful for sites with many unavailable old courses, saving process time.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
Course backups automatically skip courses which are unavailable to students and have not been changed in the last month.&lt;br /&gt;
&lt;br /&gt;
The [http://moodle.org/mod/forum/discuss.php?d=80367#p714733 Hide courses excluded from automatic backup] discussion in the Using Moodle forum describes a way that you can disable or override this thirty day check. This could be useful if, for example, you wanted to change the period from thirty days to six months.&lt;br /&gt;
&lt;br /&gt;
==Why does restore stop, rather than completing?==&lt;br /&gt;
&lt;br /&gt;
Attempting to restore a course to an older version of Moodle than the one the course was backed up on can result in the restore process failing to complete. To ensure a successful restore, make sure that the version of Moodle you are restoring the course to is the same, or newer, than the one the course was backed up on.&lt;br /&gt;
&lt;br /&gt;
If it stop unexpectedly with no errors shown try again with [[Debugging]] switched on. Any errors you now see can help experts in the support forums diagnose your problem. You can also check the discussion links in the See also section below for further advice.&lt;br /&gt;
&lt;br /&gt;
==Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle 2.0 Restore breaks.png|thumb|Error message in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
This message is displayed when:&lt;br /&gt;
&lt;br /&gt;
# Your target site has one xxxx user (xxxx being the username)&lt;br /&gt;
# The backup being restored also has one xxxx user&lt;br /&gt;
# After various comparisons, Moodle has detected that the xxxx user in 1. and the xxxx user in 2. aren&#039;t the same user.&lt;br /&gt;
&lt;br /&gt;
If 1, 2 and 3 above happens, restore stops before performing any action as far as restoring that user will end associating &amp;quot;things&amp;quot; (create activities, posts, attempts... whatever...) to the xxxx user in the target site, when those &amp;quot;things&amp;quot; weren&#039;t performed by the same user at all.&lt;br /&gt;
&lt;br /&gt;
Those checks and behaviour were introduced in Moodle 1.9.x and continue being valid under 2.0. Usually the xxxx user in the messages is the &amp;quot;admin&amp;quot; user (that exists in practically all Moodle installations).&lt;br /&gt;
&lt;br /&gt;
There are two possible solutions to make both xxxx users in 1 and 2 to match (and avoid the conflict):&lt;br /&gt;
&lt;br /&gt;
a) Modify the backup&#039;s &#039;&#039;&#039;users.xml&#039;&#039;&#039; file and make the &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields match with the ones in target site.&amp;lt;br /&amp;gt;&lt;br /&gt;
b) Modify the &#039;&#039;&#039;target site&#039;&#039;&#039; and set the user &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields to match with the ones in backup&#039;s user.xml file.&lt;br /&gt;
&lt;br /&gt;
Method a) is recommended so the restore process will match both xxxx users and every &amp;quot;thing&amp;quot; in the backup file belonging to xxxx will be associated to the already existing xxxx user in the target site.&lt;br /&gt;
&lt;br /&gt;
  NOTE: When using method a) be aware that the &#039;&#039;moodle-filename-backup.mbz&#039;&#039; is a zip file and can be renamed and unzipped. When editing compelte, rezip and then &lt;br /&gt;
  rename using the original file name with the &amp;quot;*.mbz&amp;quot; extention.&lt;br /&gt;
&lt;br /&gt;
==Why are certain course links broken in a restored course?==&lt;br /&gt;
&lt;br /&gt;
Inter-activity links must be absolute (full) URLs e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://site.com/mod/resource/view.php?id=xxx&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in order to be processed properly during backup and restore.&lt;br /&gt;
&lt;br /&gt;
Any relative URLs e.g. &amp;lt;code&amp;gt;/mod/resource/view.php?id=xxx&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;../resource/view.php?id=xxx&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;view.php?id=xxx&amp;lt;/code&amp;gt; will result in broken links when the course is restored.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?f=128 Backup and Restore forum]&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 databasejournal.com article on repairing database corruption in MySQL]&lt;br /&gt;
* [[Site backup]]&lt;br /&gt;
* [[Moodle migration]]&lt;br /&gt;
* [[Beginning Moodle 2.0 Administration]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=142720 Trying to restore user &#039;admin&#039; from backup file will cause conflict]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 &amp;quot;Course Backup Filearea&amp;quot;?]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Backup]]&lt;br /&gt;
[[pl:Backup FAQ]]&lt;br /&gt;
[[fr:FAQ de sauvegarde]]&lt;br /&gt;
[[ja:バックアップFAQ]]&lt;br /&gt;
[[pt:FAQ sobre cópias de segurança]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101431</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Backup_and_restore_FAQ&amp;diff=101431"/>
		<updated>2012-10-21T11:44:12Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Backup}}&lt;br /&gt;
==How do I backup a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course backup]] and [[Automated backup setup]]. &lt;br /&gt;
&lt;br /&gt;
==How do I restore a course?==&lt;br /&gt;
&lt;br /&gt;
See [[Course restore]].&lt;br /&gt;
&lt;br /&gt;
==How do I backup my site?==&lt;br /&gt;
&lt;br /&gt;
See [[Site backup]].&lt;br /&gt;
&lt;br /&gt;
==What are the pros and cons of course versus site backups?==&lt;br /&gt;
&lt;br /&gt;
[[Site backup|Site backups]] are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
For a site administrator, [[Automated course backup|automated course backups]] are more expensive in terms of time, CPU usage and storage. The recovery time to have a site running again takes longer than a site backup. However,  teachers and site administrators might find a course backups as a way to create a &amp;quot;fresh&amp;quot; copy of a course that can be re-used (in older versions of Moodle, in newer versions see [[Import course data]]) or as a method to distribute a course(s) to other Moodle sites.&lt;br /&gt;
&lt;br /&gt;
==Why is my automated course backup much smaller in size than my manual course backup?==&lt;br /&gt;
&lt;br /&gt;
This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disc space and makes the backup procedure much faster. &lt;br /&gt;
&lt;br /&gt;
==What data is not contained in course backups?==&lt;br /&gt;
&lt;br /&gt;
By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:&lt;br /&gt;
* Quiz questions are only backed up if at least one question from their category has been added to a quiz.&lt;br /&gt;
* Scales are only backed up if they are used by at least one activity.&lt;br /&gt;
* Users&#039; passwords are not backed up when the &amp;quot;Include enrolled users&amp;quot; option is selected.&lt;br /&gt;
&lt;br /&gt;
==Why is there no &amp;quot;all/none&amp;quot; feature when selecting items to  backup?==&lt;br /&gt;
This was enabled in MDL-32705 and is available in Moodle 2.3.2 onwards.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;Error: An error occurred deleting old backup data&amp;quot;. What should I do?==&lt;br /&gt;
&lt;br /&gt;
This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:&lt;br /&gt;
&lt;br /&gt;
# Delete old records from &amp;quot;backup_ids&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old records from &amp;quot;backup_files&amp;quot; table: Check the table exists, repair it and try again.&lt;br /&gt;
# Delete old files from &amp;quot;moodledata/temp/backup&amp;quot;: Delete the dir completely and try again.&lt;br /&gt;
&lt;br /&gt;
[[Image:BackupProblem.gif|thumb|Backup error message]]For points 1 &amp;amp; 2, there are various ways of repairing tables, including using MySQL Admin.&lt;br /&gt;
For point 3 see below:&lt;br /&gt;
&lt;br /&gt;
The error message states that the &amp;quot;directory not empty&amp;quot; and gives the path to that directory. If you go there with an FTP program you can see what is there and clean up. It could be just some empty subfolders that were leftover. Deleting these has been able to help. One can also delete the dir &amp;quot;moodledata/temp/backup&amp;quot; completely. That can take a bit longer but may solve several problems at once.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;XML error: not well-formed (invalid token) at line YYYY&amp;quot;. What can I do?==&lt;br /&gt;
&lt;br /&gt;
This problem can appear at any point in the restore process. It&#039;s caused when the XML parser detects something incorrect in the backup file that prevent correct operation. Usually, it&#039;s caused by some &amp;quot;illegal&amp;quot; characters added in the original course due to some copy/paste of text containing them (control characters, or invalid sequences...).&lt;br /&gt;
&lt;br /&gt;
The best method to handle this issue is:&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic backup file under one empty folder.&lt;br /&gt;
&lt;br /&gt;
* Open the moodle.xml with Firefox. It will show you where (exact char) the problem is happening.&lt;br /&gt;
&lt;br /&gt;
* Edit the moodle.xml file with some UTF8-compatible editor and delete such characters. Save changes.&lt;br /&gt;
&lt;br /&gt;
* Test the moodle.xml file again with Firefox until no error was displayed.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but not the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
* Restore still not working? See the next question.&lt;br /&gt;
&lt;br /&gt;
Also, if possible, it&#039;s highly recommended to solve those problems in the original course too from Moodle itself. Once &amp;quot;repaired&amp;quot; there, problems will be out if you create new backup files in the future.&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;moodle xml not found at root level of zip file&amp;quot;. What can I do?==&lt;br /&gt;
If you are restoring from a zip file backup make sure the moodle.xml file is at the root level. To ensure this:&lt;br /&gt;
#Unzip the backup file of the course (example: mycourse.zip)&lt;br /&gt;
#Once the file is unzipped, open the folder (example: mycourse).&lt;br /&gt;
#Select the folders within the mycourse folder AND the moodle.xml file and create a zip of those item (example: mycourse_new.zip)&lt;br /&gt;
#Upload the new zip file (example: mycourse_new.zip) and restore from that.&lt;br /&gt;
&lt;br /&gt;
If the backup file is guaranteed to be correct, check paths to external files (zip, unzip). Incorrect settings also lead to this error message (see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=140355 moodle.xml not found in root...] and MDL-14812).&lt;br /&gt;
&lt;br /&gt;
==The process ends with: &amp;quot;An error occurred while copying the zip file...&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
This problem is most likely caused by a permissions issue in the destination directory. Backup files are copied to &amp;quot;XXX/backupdata&amp;quot; under your dataroot directory (where XXX is the id of the course being backed up).&lt;br /&gt;
&lt;br /&gt;
On Windows systems, if you have configured Moodle to use an external zip program then the IIS IUSR_computername user needs to have Execute access to cmd.exe so that it can run the zip program. See the Note in [https://docs.moodle.org/en/System_paths#Path_to_zip Path to zip] for more details.  &lt;br /&gt;
&lt;br /&gt;
The problem could also be caused by a disk being full, though this is far less likely.&lt;br /&gt;
&lt;br /&gt;
To obtain precise information about what&#039;s happening, you can enable debug messages in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Debugging]]&#039;&#039; (select the maximum level - DEVELOPER) and/or check the web server error logs.&lt;br /&gt;
&lt;br /&gt;
==I Still get an XML error. How can I clean the borked XML file?==&lt;br /&gt;
&lt;br /&gt;
In some cases XML backup files may contain characters causing the restore process to abort, even after the steps described in the previous question. In such cases you may want to try the following:&lt;br /&gt;
&lt;br /&gt;
* Download the [http://repository.atlassian.com/atlassian-xml-cleaner/jars/atlassian-xml-cleaner-0.1.jar Atlassian XML Cleaner Utility] from the [http://confluence.atlassian.com/display/JIRA/Removing+invalid+characters+from+XML+backups JIRA Atlassian site].&lt;br /&gt;
&lt;br /&gt;
* Unzip the problematic Moodle backup file under one empty folder. Moodle will create the course file folders as long as the unclean moodle.xml file. Please unzip using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Rename the unclean moodle.xml file to moodle-unclean.xml. &lt;br /&gt;
&lt;br /&gt;
* If you don&#039;t have access to your Moodle server&#039;s command prompt, using the Moodle zip feature, zip the moodle-unclean.xml file only, download the zip file locally and unzip it. It is very important to download the xml file in zipped format to avoid unwanted character encoding when transferring from an operating system to another.&lt;br /&gt;
&lt;br /&gt;
* Move the downloaded Atlassian XML Cleaner Utility in the same folder where is your moodle-unclean.xml file.&lt;br /&gt;
&lt;br /&gt;
* Issue the following command from the command prompt: &lt;br /&gt;
&lt;br /&gt;
 java -jar atlassian-xml-cleaner-0.1.jar moodle-unclean.xml &amp;gt; moodle.xml&lt;br /&gt;
&lt;br /&gt;
* If you launched the utility on your local computer, zip the just created (and hopefully cleaned) moodle.xml file and upload it in the same place from where you downloaded the moodle-unclean.xml file. Once uploaded, unzip it using the Moodle unzip feature.&lt;br /&gt;
&lt;br /&gt;
* Zip everything again (all the folder contents but the folder itself!).&lt;br /&gt;
&lt;br /&gt;
* Restore the course. It should work now.&lt;br /&gt;
&lt;br /&gt;
==What does &amp;quot;Some of your courses weren&#039;t saved!!&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
There are three possible causes of this problem:&lt;br /&gt;
# Error - this happens when the backup procedure has found an error and so hasn&#039;t finished the backup of a particular course. These are &amp;quot;controlled&amp;quot; errors and the scheduled backup continues with the next course.&lt;br /&gt;
# Unfinished - this happens when the backup procedure dies without knowing why. When the cron is next executed it detects that the last execution went wrong, and continues skipping the problematic course. A possible solution would be to raise the PHP/Apache limit in your installation (memory, time of execution...). By taking a look to your log tables you should be able to see if the &amp;quot;crash&amp;quot; is happening at exact time intervals (usually a problem with the max_execution_time php&#039;s variable), or if there is some exact point were all the courses are breaking (generally internal zip libraries, try to switch to external executables instead).&lt;br /&gt;
# Skipped - this happens when a course is unavailable to students and has not been changed in the last month (31 days). This isn&#039;t an error situation - it&#039;s a feature, especially useful for sites with many unavailable old courses, saving process time.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
Course backups automatically skip courses which are unavailable to students and have not been changed in the last month.&lt;br /&gt;
&lt;br /&gt;
The [http://moodle.org/mod/forum/discuss.php?d=80367#p714733 Hide courses excluded from automatic backup] discussion in the Using Moodle forum describes a way that you can disable or override this thirty day check. This could be useful if, for example, you wanted to change the period from thirty days to six months.&lt;br /&gt;
&lt;br /&gt;
==Why does restore stop, rather than completing?==&lt;br /&gt;
&lt;br /&gt;
Attempting to restore a course to an older version of Moodle than the one the course was backed up on can result in the restore process failing to complete. To ensure a successful restore, make sure that the version of Moodle you are restoring the course to is the same, or newer, than the one the course was backed up on.&lt;br /&gt;
&lt;br /&gt;
If it stop unexpectedly with no errors shown try again with [[Debugging]] switched on. Any errors you now see can help experts in the support forums diagnose your problem. You can also check the discussion links in the See also section below for further advice.&lt;br /&gt;
&lt;br /&gt;
==Restore stops with the message &amp;quot;Trying to restore user xxxx from backup file will cause conflict&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle 2.0 Restore breaks.png|thumb|Error message in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
This message is displayed when:&lt;br /&gt;
&lt;br /&gt;
# Your target site has one xxxx user (xxxx being the username)&lt;br /&gt;
# The backup being restored also has one xxxx user&lt;br /&gt;
# After various comparisons, Moodle has detected that the xxxx user in 1. and the xxxx user in 2. aren&#039;t the same user.&lt;br /&gt;
&lt;br /&gt;
If 1, 2 and 3 above happens, restore stops before performing any action as far as restoring that user will end associating &amp;quot;things&amp;quot; (create activities, posts, attempts... whatever...) to the xxxx user in the target site, when those &amp;quot;things&amp;quot; weren&#039;t performed by the same user at all.&lt;br /&gt;
&lt;br /&gt;
Those checks and behaviour were introduced in Moodle 1.9.x and continue being valid under 2.0. Usually the xxxx user in the messages is the &amp;quot;admin&amp;quot; user (that exists in practically all Moodle installations).&lt;br /&gt;
&lt;br /&gt;
There are two possible solutions to make both xxxx users in 1 and 2 to match (and avoid the conflict):&lt;br /&gt;
&lt;br /&gt;
a) Modify the backup&#039;s &#039;&#039;&#039;users.xml&#039;&#039;&#039; file and make the &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields match with the ones in target site.&amp;lt;br /&amp;gt;&lt;br /&gt;
b) Modify the &#039;&#039;&#039;target site&#039;&#039;&#039; and set the user &#039;&#039;email&#039;&#039; or &#039;&#039;firstaccess&#039;&#039; fields to match with the ones in backup&#039;s user.xml file.&lt;br /&gt;
&lt;br /&gt;
Method a) is recommended so the restore process will match both xxxx users and every &amp;quot;thing&amp;quot; in the backup file belonging to xxxx will be associated to the already existing xxxx user in the target site.&lt;br /&gt;
&lt;br /&gt;
 NOTE: When using method a) be aware that the &#039;&#039;moodle-filename-backup.mbz&#039;&#039; is a zip file and can be renamed and unzipped. When editing compelte, rezip and then rename using the original file name with the &amp;quot;*.mbz&amp;quot; extention.&lt;br /&gt;
&lt;br /&gt;
==Why are certain course links broken in a restored course?==&lt;br /&gt;
&lt;br /&gt;
Inter-activity links must be absolute (full) URLs e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://site.com/mod/resource/view.php?id=xxx&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in order to be processed properly during backup and restore.&lt;br /&gt;
&lt;br /&gt;
Any relative URLs e.g. &amp;lt;code&amp;gt;/mod/resource/view.php?id=xxx&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;../resource/view.php?id=xxx&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;view.php?id=xxx&amp;lt;/code&amp;gt; will result in broken links when the course is restored.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?f=128 Backup and Restore forum]&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 databasejournal.com article on repairing database corruption in MySQL]&lt;br /&gt;
* [[Site backup]]&lt;br /&gt;
* [[Moodle migration]]&lt;br /&gt;
* [[Beginning Moodle 2.0 Administration]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=142720 Trying to restore user &#039;admin&#039; from backup file will cause conflict]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 &amp;quot;Course Backup Filearea&amp;quot;?]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Backup]]&lt;br /&gt;
[[pl:Backup FAQ]]&lt;br /&gt;
[[fr:FAQ de sauvegarde]]&lt;br /&gt;
[[ja:バックアップFAQ]]&lt;br /&gt;
[[pt:FAQ sobre cópias de segurança]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=101375</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=101375"/>
		<updated>2012-10-17T21:09:08Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* My Password is not being accepted as valid. How can I login as an Admin? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.x, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should be able to access your Moodle as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
===How can I extract original files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, let&#039;s assume there is a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder have been extracted. There is a PDF file named &amp;quot;Leadership.pdf&amp;quot; that is required for another purpose.&lt;br /&gt;
&lt;br /&gt;
Open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in this case is found under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which was previously extracted), and there is a file named &amp;quot;fb6cf43a9b...&amp;quot;. Rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location. Repeat this for all the files required, using the correct contenthash value of course.&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
===How can I have two installations of Moodle on my server?===&lt;br /&gt;
&lt;br /&gt;
There is always a number of reasons why you may require several different versions of Moodle on your server, or your localhost on a standalone computer. You may want to run two completely different Moodles for different purposes, so they may be the same versions. The answers are the same for all of them, and you may want to use different techniques depending on your circumstances. &lt;br /&gt;
&lt;br /&gt;
First, in all versions of Moodle you are able to set the cookie prefix. Whenever you install a Moodle, it is a good idea to not just accept the default for the cookie prefix. Go to Administration menu &amp;gt; Server &amp;gt; Session Handling and you will see there is a text box that allows you to add a prefix for the Moodle. If you do this for every installation, you can have any number of installations - the problem is going to be the database.  &lt;br /&gt;
&lt;br /&gt;
At installation, you can create two different databases. again in some circumstances, there may be any number of valid reasons to do this, but fact is, you may not, in v2.x have to worry about it too much. Each installation will generate its own tables so, at installation, you may not have to worry too much apart from giving the databases different names.&lt;br /&gt;
&lt;br /&gt;
===How can I deny Guest Access to my site altogether?===&lt;br /&gt;
&lt;br /&gt;
Look at Site administration ► Plugins ► Authentication ► Manage authentication and there is a switch there that allows you to turn the Guest Access button off altogether.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=101374</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=101374"/>
		<updated>2012-10-17T21:04:46Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How do I create a repository? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.x, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract original files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, let&#039;s assume there is a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder have been extracted. There is a PDF file named &amp;quot;Leadership.pdf&amp;quot; that is required for another purpose.&lt;br /&gt;
&lt;br /&gt;
Open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in this case is found under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which was previously extracted), and there is a file named &amp;quot;fb6cf43a9b...&amp;quot;. Rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location. Repeat this for all the files required, using the correct contenthash value of course.&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
===How can I have two installations of Moodle on my server?===&lt;br /&gt;
&lt;br /&gt;
There is always a number of reasons why you may require several different versions of Moodle on your server, or your localhost on a standalone computer. You may want to run two completely different Moodles for different purposes, so they may be the same versions. The answers are the same for all of them, and you may want to use different techniques depending on your circumstances. &lt;br /&gt;
&lt;br /&gt;
First, in all versions of Moodle you are able to set the cookie prefix. Whenever you install a Moodle, it is a good idea to not just accept the default for the cookie prefix. Go to Administration menu &amp;gt; Server &amp;gt; Session Handling and you will see there is a text box that allows you to add a prefix for the Moodle. If you do this for every installation, you can have any number of installations - the problem is going to be the database.  &lt;br /&gt;
&lt;br /&gt;
At installation, you can create two different databases. again in some circumstances, there may be any number of valid reasons to do this, but fact is, you may not, in v2.x have to worry about it too much. Each installation will generate its own tables so, at installation, you may not have to worry too much apart from giving the databases different names.&lt;br /&gt;
&lt;br /&gt;
===How can I deny Guest Access to my site altogether?===&lt;br /&gt;
&lt;br /&gt;
Look at Site administration ► Plugins ► Authentication ► Manage authentication and there is a switch there that allows you to turn the Guest Access button off altogether.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101368</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101368"/>
		<updated>2012-10-17T20:56:01Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Administration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages. The questions asked here are mostly questions that I was confronted with when I first started with administering a Moodle, but I had some experience as a user which helped me a lot. The other source of questions is the Moodle Forums.   &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Administration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. If you need them, you will pick these skills up as you go, and if you already have any programming skills, it is going to be fairly easy to do so. If you have never done any programming before, it is a little more difficult, but once you have the idea, it becomes a lot easier. Unless you intend on developing your Moodle, e.g. build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to make things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101363</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101363"/>
		<updated>2012-10-17T12:11:48Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages. The questions asked here are mostly questions that I was confronted with when I first started with administering a Moodle, but I had some experience as a user which helped me a lot. The other source of questions is the Moodle Forums.   &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Administration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go, if you need them. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to make things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101362</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101362"/>
		<updated>2012-10-17T12:09:38Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Adminsitration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Administration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go, if you need them. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to make things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101361</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101361"/>
		<updated>2012-10-17T12:09:07Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go, if you need them. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to make things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101360</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101360"/>
		<updated>2012-10-17T12:01:37Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Adminsitration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go, if you need them. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to make things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101359</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101359"/>
		<updated>2012-10-17T12:00:37Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Adminsitration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to make things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101358</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101358"/>
		<updated>2012-10-17T11:49:54Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Adminsitration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things available, useful plugins and extra blocks and so on, but the majority of those things are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to ake things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101357</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101357"/>
		<updated>2012-10-17T11:48:28Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Adminsitration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]As a newbie Administrator, it is easy to get overwhelmed with all the different things avaiable, plugins, blocks and so on, but the majority of those plugins and blocks are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thumb, the further you move away from the standard Moodle, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to ake things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101356</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101356"/>
		<updated>2012-10-17T11:47:29Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Adminsitration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
As a newbie Administrator, it is easy to get overwhelmed with all the different things avaiable, plugins, blocks and so on, but the majority of those plugins and blocks are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thimb, the further you move away from the standard Moolde, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]&lt;br /&gt;
&lt;br /&gt;
Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to ake things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101355</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101355"/>
		<updated>2012-10-17T11:46:54Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* What kind of technical skills do I need to take on Moodle Adminsitration? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
As a newbie Administrator, it is easy to get overwhelmed with all the different things avaiable, plugins, blocks and so on, but the majority of those plugins and blocks are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thimb, the further you move away from the standard Moolde, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]]&lt;br /&gt;
&lt;br /&gt;
 Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to ake things easy. Try things there first, if there is no problems, then you can replicate it on your production site.&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101354</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=101354"/>
		<updated>2012-10-17T11:46:17Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
===What kind of technical skills do I need to take on Moodle Adminsitration?===&lt;br /&gt;
Reading and writing are handy skills, and probably the most useful. This is something of a loaded question, and the answer is actually, depends on what you want to do, and what skills you already have. &lt;br /&gt;
&lt;br /&gt;
Do you have any HTML, CSS and PHP skills? Do you have any SQL database skills. If you do, then you have a good start, if you do not, then do not worry about it. You will pick these skills up as you go. Unless you intend on developing your Moodle, build your own home made theme, alter code to reflect your own organization, then you can get away without any of these skills. What you need is a way of developing a quick understanding of how Moodle works. With the introduction of Moodle v2, the learning curve has steepened somewhat, but it is still not that difficult. &lt;br /&gt;
&lt;br /&gt;
Installing and setting up a new Moodle is not as difficult as it used to be. Some servers and service providers do have problems, from time to time, but if you work with your ISP, and the Moodle Community, you will get your Moodle up and running. Once it is going, start looking at it. You won&#039;t break anything, unless you start deleting things. Your best bet would be to read the documents. Look at the page you are working on. Somewhere on that page is a link that points to &amp;quot;Moodle Docs for this page&amp;quot;. That is your best, most readily available, clues on how to do things. Once familiar with the environment, and how to get around it, how to get information on it, then the major steps have been taken, the rest is a continual refinement of that.        &lt;br /&gt;
&lt;br /&gt;
As a newbie Administrator, it is easy to get overwhelmed with all the different things avaiable, plugins, blocks and so on, but the majority of those plugins and blocks are third-party made, not Moodle.org in origin. Be aware that, as a general rule of thimb, the further you move away from the standard Moolde, the greater your risks of things going wrong. This does not mean the plugins are badly written, and some are really handy, just sometimes things go wrong. If you are going to use them, be deliberate in your choice, do not use them just because it might be a good idea. &lt;br /&gt;
&lt;br /&gt;
[[Image:lightbulb.png|frame|left|Tip]] Perhaps the best thing is that you create a Moodle on your desktop, or laptop, and you use that as a testbed. It should be the same version as your production site, to ake things easy. Try things there first, if there is no problems, then you can replicate it on your production site. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; the book module is available as standard in Moodle 2.3&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100656</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100656"/>
		<updated>2012-09-23T11:54:29Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How can I extract original files from a Moodle backup file? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.0, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract original files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, let&#039;s assume there is a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder have been extracted. There is a PDF file named &amp;quot;Leadership.pdf&amp;quot; that is required for another purpose.&lt;br /&gt;
&lt;br /&gt;
Open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in this case is found under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which was previously extracted), and there is a file named &amp;quot;fb6cf43a9b...&amp;quot;. Rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location. Repeat this for all the files required, using the correct contenthash value of course.&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
===How can I have two installations of Moodle on my server?===&lt;br /&gt;
&lt;br /&gt;
There is always a number of reasons why you may require several different versions of Moodle on your server, or your localhost on a standalone computer. You may want to run two completely different Moodles for different purposes, so they may be the same versions. The answers are the same for all of them, and you may want to use different techniques depending on your circumstances. &lt;br /&gt;
&lt;br /&gt;
First, in all versions of Moodle you are able to set the cookie prefix. Whenever you install a Moodle, it is a good idea to not just accept the default for the cookie prefix. Go to Administration menu &amp;gt; Server &amp;gt; Session Handling and you will see there is a text box that allows you to add a prefix for the Moodle. If you do this for every installation, you can have any number of installations - the problem is going to be the database.  &lt;br /&gt;
&lt;br /&gt;
At installation, you can create two different databases. again in some circumstances, there may be any number of valid reasons to do this, but fact is, you may not, in v2.x have to worry about it too much. Each installation will generate its own tables so, at installation, you may not have to worry too much apart from giving the databases different names.&lt;br /&gt;
&lt;br /&gt;
===How can I deny Guest Access to my site altogether?===&lt;br /&gt;
&lt;br /&gt;
Look at Site administration ► Plugins ► Authentication ► Manage authentication and there is a switch there that allows you to turn the Guest Access button off altogether.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100655</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100655"/>
		<updated>2012-09-23T11:48:27Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How can I have two installations of Moodle on my server? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.0, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract original files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, lets assume I have a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which I already extracted the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder, and that I&#039;m looking for a PDF file named &amp;quot;Leadership.pdf&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
So I open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in my case I find under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. I take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, I open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which I previously extracted), and there I will find a file named &amp;quot;fb6cf43a9b...&amp;quot;, so now I can rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location (where I&#039;ll gather all the files I need from the backup).&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
===How can I have two installations of Moodle on my server?===&lt;br /&gt;
&lt;br /&gt;
There is always a number of reasons why you may require several different versions of Moodle on your server, or your localhost on a standalone computer. You may want to run two completely different Moodles for different purposes, so they may be the same versions. The answers are the same for all of them, and you may want to use different techniques depending on your circumstances. &lt;br /&gt;
&lt;br /&gt;
First, in all versions of Moodle you are able to set the cookie prefix. Whenever you install a Moodle, it is a good idea to not just accept the default for the cookie prefix. Go to Administration menu &amp;gt; Server &amp;gt; Session Handling and you will see there is a text box that allows you to add a prefix for the Moodle. If you do this for every installation, you can have any number of installations - the problem is going to be the database.  &lt;br /&gt;
&lt;br /&gt;
At installation, you can create two different databases. again in some circumstances, there may be any number of valid reasons to do this, but fact is, you may not, in v2.x have to worry about it too much. Each installation will generate its own tables so, at installation, you may not have to worry too much apart from giving the databases different names.&lt;br /&gt;
&lt;br /&gt;
===How can I deny Guest Access to my site altogether?===&lt;br /&gt;
&lt;br /&gt;
Look at Site administration ► Plugins ► Authentication ► Manage authentication and there is a switch there that allows you to turn the Guest Access button off altogether.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100627</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100627"/>
		<updated>2012-09-21T00:52:17Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How can I have two installations of Moodle on my server? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.0, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract original files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, lets assume I have a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which I already extracted the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder, and that I&#039;m looking for a PDF file named &amp;quot;Leadership.pdf&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
So I open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in my case I find under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. I take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, I open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which I previously extracted), and there I will find a file named &amp;quot;fb6cf43a9b...&amp;quot;, so now I can rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location (where I&#039;ll gather all the files I need from the backup).&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
===How can I have two installations of Moodle on my server?===&lt;br /&gt;
&lt;br /&gt;
There is always a number of reasons why you may require several different versions of Moodle on your server, or your localhost on a standalone computer. You may want to run two completely different Moodles for different purposes, so they may be the same versions. The answers are the same for all of them, and you may want to use different techniques depending on your circumstances. &lt;br /&gt;
&lt;br /&gt;
First, in all versions of Moodle you are able to set the cookie prefix. Whenever you install a Moodle, it is a good idea to not just accept the default for the cookie prefix. Go to Administration menu &amp;gt; Server &amp;gt; Session Handling and you will see there is a text box that allows you to add a prefix for the Moodle. If you do this for every installation, you can have any number of installations - the problem is going to be the database.  &lt;br /&gt;
&lt;br /&gt;
At installation, you can create two different databases. again in some circumstances, there may be any number of valid reasons to do this, but fact is, you may not, in v2.x have to worry about it too much. Each installation will generate its own tables so, at installation, you may not have to worry too much apart from giving the databases different names.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100626</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100626"/>
		<updated>2012-09-21T00:08:02Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How can I extract orginal files from a Moodle backup file? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.0, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract original files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, lets assume I have a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which I already extracted the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder, and that I&#039;m looking for a PDF file named &amp;quot;Leadership.pdf&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
So I open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in my case I find under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. I take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, I open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which I previously extracted), and there I will find a file named &amp;quot;fb6cf43a9b...&amp;quot;, so now I can rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location (where I&#039;ll gather all the files I need from the backup).&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
===How can I have two installations of Moodle on my server?===&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100625</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100625"/>
		<updated>2012-09-21T00:07:33Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How can I extract orginal files from a Moodle backup file? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.0, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract orginal files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, lets assume I have a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which I already extracted the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder, and that I&#039;m looking for a PDF file named &amp;quot;Leadership.pdf&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
So I open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in my case I find under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. I take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, I open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which I previously extracted), and there I will find a file named &amp;quot;fb6cf43a9b...&amp;quot;, so now I can rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location (where I&#039;ll gather all the files I need from the backup).&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
===How can I have two installations of Moodle on my server?===&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=100060</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=100060"/>
		<updated>2012-08-18T13:06:57Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.x. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100009</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=100009"/>
		<updated>2012-08-15T10:53:59Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: /* How can I extract orginal files from a Moodle backup file? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.0, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract orginal files from a Moodle backup file?===&lt;br /&gt;
If you really want to get original files from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with any zip/unzip program you can download. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file in a text editor, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, lets assume I have a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which I already extracted the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder, and that I&#039;m looking for a PDF file named &amp;quot;Leadership.pdf&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
So I open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in my case I find under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. I take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, I open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which I previously extracted), and there I will find a file named &amp;quot;fb6cf43a9b...&amp;quot;, so now I can rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location (where I&#039;ll gather all the files I need from the backup).&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=100008</id>
		<title>Beginning Moodle 2.0 Administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.0_Administration&amp;diff=100008"/>
		<updated>2012-08-15T10:51:20Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The pages began life with the [https://docs.moodle.org/19/en/Beginning_Administration_FAQ Beginning v1.9 Administration FAQ] pages but are aimed specifically at Moodle 2.0. Many of the solutions to problems will work in both versions of Moodle so if you do not find something here, then you may find it in the other pages.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===I am being told that I need the &#039;&#039;&#039;intl php plugin&#039;&#039;&#039; to continue to install Moodle 2.x===&lt;br /&gt;
The intl.dll from Zend is part of the PHP 5.2.8 release and later. It is aimed at improving the internationalization of php pages and Moodle 2.x uses it as part of this process. If your install is on a local machine or network, then you can download the latest version of PHP and update your PHP. You then have to uncomment all the required dynamic extensions you need, including the php_intl.dll extension. The problem is then solved. If the install is on a host server, then you need to contact your host and ask them to do the same, As an alternative, you can unzip/untar the download file, copy and paste the intl.dll file to your php/ext folder and include the line:&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
in the Dynamic Extensions section of your php.ini file.&lt;br /&gt;
&lt;br /&gt;
You can also set the error level using:&lt;br /&gt;
  intl.error_level = E_WARNING &lt;br /&gt;
but this is not essential&lt;br /&gt;
&lt;br /&gt;
If you are using a Linux install, use your system package manager or specify compilation flag.&lt;br /&gt;
    * Debian 5.0 (&amp;amp; Ubuntu) use: apt-get install php-intl or apt-get install php5-intl &lt;br /&gt;
    * CentOS 5.5 (&amp;amp; RedHat) you should (probably) be using php 5.3 from remi and then use: yum install php-intl&lt;br /&gt;
&lt;br /&gt;
This technique can be applied to any updated dynamic extension from Zend. You may want to use later dll files in your php/ext folder, you can do so by doing the same as above, but be careful, your version may not be able to take full advantage of the extension, or some very new extensions may cause an unexpected instability. The best option is still to update on a regular basis, perhaps once a year or so for the PHP.&lt;br /&gt;
&lt;br /&gt;
===What Dynamic Extensions do I really need uncommented in my php.ini file? What else do I need to change?===&lt;br /&gt;
This assumes you have complete control over the installation and running of your server, if your Moodle is hosted, you need to do something different, which is also discussed below. In the php.ini you need to delete the semi-colon, the ;, from the start of any line to uncomment it. For Moodle, you really should only need to change some values, and make sure the extensions you require are available. These are:&lt;br /&gt;
&lt;br /&gt;
Resource Limits&lt;br /&gt;
  memory_limit = 128M     //This is the maximum it requires and on a shared server you may get much less. &lt;br /&gt;
&lt;br /&gt;
Data Handling &lt;br /&gt;
  post_max_size = 512M    //This allows postings of up to 512MB, but set it to suit yourself and your circumstances&lt;br /&gt;
&lt;br /&gt;
Paths and Directories&lt;br /&gt;
  doc_root =&amp;quot;driveletter:\path\to\server\active\web\directory&amp;quot;  (e.g. d:\Apache\htdocs or e:\iis\wwwroot )&lt;br /&gt;
  and&lt;br /&gt;
  extension_dir = &amp;quot;driveletter:\path\to\php\ext&amp;quot; (e.g. d:\php\ext or e:\iis\php\ext)&lt;br /&gt;
&lt;br /&gt;
File Uploads&lt;br /&gt;
  upload_max_filesize = 512M    (This is different from the post_max_size this is for file uploads.)&lt;br /&gt;
&lt;br /&gt;
Dynamic Extensions&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! PHP 5.2.x (Moodle 1.9 with additions) &lt;br /&gt;
! PHP 5.3.x&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_exif.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_mcrypt.dll&lt;br /&gt;
  extension=php_mssql.dll&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  &#039;&#039;&#039;extension=php_intl.dll&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;&#039;extension=php_zip.dll&#039;&#039;&#039;  ; Added Extensions&lt;br /&gt;
|&lt;br /&gt;
  extension=php_curl.dll&lt;br /&gt;
  extension=php_gd2.dll&lt;br /&gt;
  extension=php_gettext.dll&lt;br /&gt;
  extension=php_intl.dll&lt;br /&gt;
  extension=php_imap.dll&lt;br /&gt;
  extension=php_ldap.dll&lt;br /&gt;
  extension=php_mbstring.dll&lt;br /&gt;
  extension=php_exif.dll      ; Must be after mbstring as it depends on it&lt;br /&gt;
  extension=php_mysql.dll&lt;br /&gt;
  extension=php_mysqli.dll&lt;br /&gt;
  extension=php_openssl.dll&lt;br /&gt;
  extension=php_pdo_mssql.dll&lt;br /&gt;
  extension=php_pdo_mysql.dll&lt;br /&gt;
  extension=php_soap.dll&lt;br /&gt;
  extension=php_sockets.dll&lt;br /&gt;
  extension=php_sqlite.dll&lt;br /&gt;
  extension=php_xmlrpc.dll&lt;br /&gt;
  extension=php_zip.dll&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If you are using a PHP version earlier than v5.2.8, then for Moodle 2.0.x please add the Dynamic extensions of intl.dll and zip.dll as outlined above. Be aware this structure does &#039;&#039;&#039;not&#039;&#039;&#039; work in Moodle 2.1. &lt;br /&gt;
&lt;br /&gt;
These edits and Dynamic extensions cover a range of options here, there are a number of other possibilities, but these listed are the most common ones. Unless you have a specific need, there may not be any reason to deviate from these settings, but if you do, make sure you know what is going to happen. These extensions will also allow you to successfully install and run many other PHP applications. &lt;br /&gt;
&lt;br /&gt;
One example is the Oracle extensions are not shown here, but Oracle can be used for the Moodle database. Another area people often get themselves into trouble is using &amp;quot;Magic quotes&amp;quot;. Magic quotes really should be set to off, they were only introduced early in the use of PHP to allow for some inexperienced scripting practices, (read poor, shoddy or dodgy here). If someone is still writing poor scripts, then they deserve to draw attention to themselves and their scripts deleted.&lt;br /&gt;
&lt;br /&gt;
===My Host took my Moodle 2 down from the server due to an overload of the database.===&lt;br /&gt;
This happens far too often on shared servers. The additional memory requirements of Moodle 2+ for installation and the additional database storage required is going to make it worse. The best bet is to find a dedicated server, that is the optimum, but reality is that costs do play a large part in making decisions about where a Moodle will be stored. A dedicated server will give you the entire disc space and all the memory on that server to use as you need. A virtual dedicated server means you are sharing with a few other users on a server, possibly as many as 10, but more likely 5 or 6. A shared server mean you are sharing one box with as many of the Host&#039;s clientele that can be put onto one server. This means sharing all resources and Moodle&#039;s demands get higher as the number of Users increases which affects all other Clients of the Host. There are any number of Moodle Partners who may be willing to host your Moodle, and the Internet also means you are not restricted by national or natural boundaries or currency transactions - politics, oceans and banks have no impact on where you host your Moodle.&lt;br /&gt;
&lt;br /&gt;
===Why am I having trouble restoring my existing Moodle 1.9.x courses into Moodle 2.0?===&lt;br /&gt;
Simply put, the changes in coding between Moodle 1.9.x and Moodle 2.0 are large. Additional security has forced changes to the backup processes. In just looking at the databases there are an additional 60 or more tables, so that creates a number of restoring issues alone. To bring Moodle 1.9.x courses into Moodle 2.0 is a monumental challenge, and full credit to those who are trying it. There is, currently, one commercial Windows based solution but it is not fully successful in its restoration of courses. &lt;br /&gt;
 &lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Moodle 2.0 can backup and restore courses from within itself perfectly, the issue appears to be centred on v1.x.x courses.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;UPDATE:&#039;&#039;&#039; Moodle 2.1 was released on July 1, 2011 and can now restore course files from backups made in v1.9.x. Student file restorations are not yet available but are expected to be included in v2.2 to be released November, 2011.&lt;br /&gt;
&lt;br /&gt;
===How do I look up the error logs in Moodle 2.0?===&lt;br /&gt;
First, turn the error logs on, go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Development ► Debugging&lt;br /&gt;
&lt;br /&gt;
and set error messages to DEVELOPER: .... Then go to&lt;br /&gt;
&lt;br /&gt;
  Site administration ► Reports ► Logs&lt;br /&gt;
&lt;br /&gt;
set your report options to Home 2.0(Site), All Participants, All Activities or Site Errors, View, Display on Page and then click, &amp;quot;Get these logs&amp;quot;. The report should give you something, and you may be able to develop an appropriate response from there.&lt;br /&gt;
&lt;br /&gt;
===Do I try to upgrade to Moodle 2.0 or just create a new install?=== &lt;br /&gt;
There is always debate around these issues, but simply put, Moodle 2.0 is a complete re-write of a tried and tested tool. This presents its own challenges, obviously, and those challenges need be met in the best way we can. It is a temptation to go all in and jump to the new tool, but this can be a dangerous practice when dealing with a lot of people who are resistant to change, and the change from Moodle 1.9.x to 2.0 is massive.&lt;br /&gt;
  Upgrading to Moodle 2.0 has always been an option, but make sure your environment will meet the newer specifications. &lt;br /&gt;
Consider your own circumstances. Are you starting out on the Moodle journey or have you just been dropped into it? Perhaps you are starting out, and you have no resources or courses and you are building for the next few months when you want it to become a part of your learning centre and a showpiece for your institute. A complete new Moodle 2.x.x install and starting from scratch is most appropriate in this circumstance. All major features work in it and some of the tools are a lot more interesting than for Moodle 1.9.x. &lt;br /&gt;
  Don&#039;t worry about Moodle 1.9.x, just use the new Moodle 2.x.x and learn it if you are starting from scratch.&lt;br /&gt;
If you have been dropped into it, and have a lot of courses, and you need to administer your Moodle 1.9.x as well as look at updating, then the next best option is to install a new Moodle and open it just for your Administrators and Staff. Let them get used to the new interface, develop training courses around the new Moodle, not just for staff but for Users as well. Aim at your staff first, let them learn it then they can be more confident in using the new Moodle when they come to teaching their Users/Students. &lt;br /&gt;
  In short, best advice is NOT to install a Moodle 2.0 as a production site without thoroughly testing and training first. &lt;br /&gt;
To install and run more than one Moodle successfully is actually simple. Install your Moodle 2.0 and then go to &#039;&#039;&#039;&#039;&#039;Site administration &amp;gt; Server &amp;gt; Session handling&#039;&#039;&#039;&#039;&#039;. Look for the Cookie prefix dialogue and add a value to it. Repeat the exercise in every other Moodle you have on your server, it should all work as it is supposed to - as long as the cookie prefixes are different for every Moodle, of course. &lt;br /&gt;
&lt;br /&gt;
[[Image:cookieprefix.png|frame|center|Cookie prefix for Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Essentially, take your time and not be in too much of a rush if you have to convert your Staff and Learners to a new tool. Let the Staff get used to it first, then you can make the swap any time.&lt;br /&gt;
&lt;br /&gt;
If you do update your v1.9.x to v 2.0, and experience some problems, you may want to consider putting the issues and any error messages into a [http://tracker.moodle.org/secure/Dashboard.jspa Moodle Tracker item]. If you do, you may be providing information to resolve a number of updating issues for a lot of people.&lt;br /&gt;
&lt;br /&gt;
===Well, we want to try and upgrade to test our systems.===&lt;br /&gt;
Try, by all means. However, there are a couple of issues you may need be aware of. &lt;br /&gt;
&lt;br /&gt;
A rough guide and checklist: &lt;br /&gt;
#Plugins that work in Moodle 1.9.x may not be updated to Moodle 2.0. Check your plugins. Are you using any non-core plugins? &lt;br /&gt;
#Can you remove any non-core plugins? &lt;br /&gt;
#Have you backed up your database?&lt;br /&gt;
#Have you backed up your moodledata folder? &lt;br /&gt;
#Have you allocated additional time make the update, as a contingency?&lt;br /&gt;
&lt;br /&gt;
You may not necessarily have to remove the non-core plugins from the Moodle, or, they may still be present in the database even if you have deleted them from your Moodle Mod folder. The issue arising is that some plugins appear to be causing update errors as there is no matching core plugin from Moodle 2.0, or the plugin APIs are different and cannot accommodate the older plugins, or the older plugins that have not been properly maintained, cannot handle the newer environment. &lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;NOTE:&#039;&#039;&#039;This is not meant to be an exhaustive checklist or to scare people off trying to upgrade their v1.9.x to v2.0.x, just be aware that Moodle 2.0 is still a work in progress, as is this checklist.&lt;br /&gt;
&lt;br /&gt;
===We have extensively used the Book for parts of our previous Moodle, can we do so for Moodle 2.0?===&lt;br /&gt;
The really good news is that Petr Skoda (Skodak) has the Maintainer role for the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319&amp;amp;filter=1 Book plugin/module]. Petr announced some time back that when his major coding tasks for Moodle 2.0 had been done, he was taking a short break then he would begin work on updating the Book for Moodle 2.0. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;UPDATE&#039;&#039;&#039;: Petr&#039;s updating of the Book module is now complete, and is available at the above link. Initial testing shows it installs easily and seems to run faster than the original. Seems the code has been better optimized by Petr, who deserves a hearty congratulations!!!&lt;br /&gt;
&lt;br /&gt;
===That is OK for the Book, but what about other plugins and blocks?===&lt;br /&gt;
As a general rule-of-thumb, if a plugin or block has not been maintained through Moodle 1.9.x then it is extremely unlikely it will make it to Moodle 2.0.x. This means the developer has not kept it current and may feel it is too much of a distraction from their current projects to keep active. This does not mean that you, or someone else, may not take it on, as long as you ensure that what you are working with is creative commons, open source or other non-proprietal software and you are not infringing either copyright or intellectual property rights. If you are not sure, try to contact the developer or last maintainer, they may be different - if required, get permission from them to continue development. Of course, you may also seek to develop an entirely new plugin, or block, but it is clear that it is actually duplicating something that already exists or was used in earlier versions of Moodle, but is no longer current. As long as you can prove the provenance of such a plugin or block, and do not use any code from anywhere else that is not original or acknowledged where the code came from, then you should be OK. For ideas and guidelines around developing or updating a plugin, look at this page from [https://docs.moodle.org/dev/Developer_documentation Developer Documentation].  You can also join a [http://dev.moodle.org/ class of developers] and learn how it can be done.&lt;br /&gt;
&lt;br /&gt;
===I am getting error messages about plugins and the installation stops when upgrading. What do I do?===&lt;br /&gt;
Quite frequently, not a lot at all, you can just continue on. Many of these messages are just that, messages, they are not supposed to stop or break the installation, they are just warnings that not all is working as you may be used to in an install. Usually they relate to plugins that are not part of Moodle 2.0 yet. Moodle is designed to display a message, but continue on. Or, you can consider that, given the above, upgrading is not really viable and just do a fresh install. If those messages continue, then you have another problem. If there were database errors, or code errors, then it is different, you really do need to stop and investigate.&lt;br /&gt;
&lt;br /&gt;
===We are installing Moodle and getting error messages about not using the unicode or UTF-8 charset===&lt;br /&gt;
In recent times, this has become an issue with CPanel and Fantastico installers on some Linux servers. Apparently the default charset for these tools is a latin_swedish_ci charset. Moodle requires the UTF-8 charset. This is a relatively simple fix, if you have the right tools. Install phpMyAdmin and check it is working, if you do not already have it. You can then go to the SQL page and enter the following code:&lt;br /&gt;
  ALTER DATABASE `moodle` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
There have been, in the past, reports of tables that do not change using this SQL code, so try:  &lt;br /&gt;
  ALTER TABLE `mdl_tablename` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; &lt;br /&gt;
There have been no reasons as to why some tables are missed, but you can alter individual tables by using the code above. The code should look something like: &lt;br /&gt;
&lt;br /&gt;
[[Image:altertablesqlm202.png|frame|center|Changing the charset in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This also works in Moodle 1.9.x IF you use the utf8_general_ci charset.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; This SQL is supposed to work across the database, but recent reports suggest that the ALTER DATABASE seems to have a number of issues stemming from problems with the GRANT command. GRANT &amp;lt;nowiki&amp;gt;[permissiontype]&amp;lt;/nowiki&amp;gt; is supposed to allow a user to access the entire database, but it no longer appears to be the case. The ALTER TABLE SQL has not been affected by this issue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FURTHER NOTE:&#039;&#039;&#039; When using the ALTER DATABASE SQL, it appears to be diverted to altering the &#039;&#039;db.opt&#039;&#039; file, but is not continued into the tables of the database. So whether this is a deliberate security feature of more recent editions of MySQL or not is, at this stage, unknown. How this affects Postgres, or Oracle databases is also unknown.&lt;br /&gt;
&lt;br /&gt;
===OK, but how can we tell what tables are not converted?===&lt;br /&gt;
Using phpMyAdmin, you can find out almost anything you like about your database, as long as you know where to look. There is some real documentation about using phpMyAdmin that is linked both in the left and right panels. Go to the Database tab and then select the database you want to look at.&lt;br /&gt;
&lt;br /&gt;
[[Image:selectdatabasetab.png|thumb|150px|frame|center|Selecting the database tab in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Once selected, you will see what the charset is of each table. Any table that does not comply you can change using the table SQL code above. &lt;br /&gt;
&lt;br /&gt;
[[Image:phpmyadmintablelisting.png|frame|center|Checking the table listings in phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
===How do I get and install phpMyAdmin?===&lt;br /&gt;
phpMyAdmin is another very useful plugin. In Moodle 2.0 the plugin has been updated and is now located in a different place than it was in earlier versions. Go to the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&amp;amp;filter=1 phpMyAdmin page in Modules and Plugins] and download the Moodle 2.0 version. Unzip it to the &#039;&#039;&#039;moodle/local&#039;&#039;&#039; folder and then go to &#039;&#039;&#039;Notifications&#039;&#039;&#039;. Moodle will then tell you it has been successfully installed. If you look in Administration &amp;gt; Server you will now find a line &amp;quot;phpMyAdmin&amp;quot;. To access your database, click the link. &lt;br /&gt;
&lt;br /&gt;
===When I update over a 1.9 install, I get an error message about an incompatible plugin and it all stops. What can I do?===&lt;br /&gt;
&lt;br /&gt;
One piece of advice is that you just do not do that!&lt;br /&gt;
&lt;br /&gt;
Sometimes, a file/folder will be removed from the code between one version of Moodle and the next. If you upgrade Moodle by copying the new Moodle code over the top of the old code, then the older files not duplicated or no longer existent, or just disused and dropped, will remain, and can break things.&lt;br /&gt;
&lt;br /&gt;
The correct way to upgrade is (assuming your Moodle code is in a folder called &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; on the server:&lt;br /&gt;
# Upload the new code onto the server into a folder with a temporary name, like &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Copy the &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file from the moodle folder to the &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# For any third-party plugins you have installed, copy the code for them into &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt;. (Make sure the plugin is compatible with the version of Moodle you are upgrading to.)&lt;br /&gt;
# Then rename the &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt; folder to &amp;lt;tt&amp;gt;moodle_old&amp;lt;/tt&amp;gt;, and then rename &amp;lt;tt&amp;gt;moodle_new&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;moodle&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you insist though, then you can expect to be getting all sorts of error messages. Given the fundamental changes to the database and the manner in which plugins are structured, and employed, in Moodle 2.0.x this is a very time consuming and, ultimately, futile (I would suggest) approach. You can, of course, remove all non-core plugins, and their corresponding tables from the database, and then you give yourself a chance at getting through it somewhat less scathed, but I doubt it.&lt;br /&gt;
&lt;br /&gt;
===What is happening to my uploaded files? I cannot see them in the moodledata folder!===&lt;br /&gt;
To improve security, Moodle has change how files are stored in the moodledata folder. There are there, but no longer obvious. When a file is uploaded it is given a storage name, an encrypted name, and it is placed into a specific folder within the moodledata folder. That folder&#039;s name is directly related to the file storage name. So we have a file with an encrypted name, inside a folder with a related name, inside the moodledata folder. Now comes the nifty part, these encrypted names are used as connections to the database. The database stores those encrypted names as aliases for the files and uses them to link the files to the courses. You see them, but you do not see them, well they are not obvious. Unfortunately, you cannot edit them in place, like you could files in Moodle 1.9.x you have to edit them, delete the older file and upload the new ones.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.x Administration 2 FAQ |  Beginning Moodle 2.x Administration 2 FAQ ]] &lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=99993</id>
		<title>Beginning Moodle 2.x Administration 2 FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/39/en/index.php?title=Beginning_Moodle_2.x_Administration_2_FAQ&amp;diff=99993"/>
		<updated>2012-08-14T09:38:43Z</updated>

		<summary type="html">&lt;p&gt;ColinFraser: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a follow on from the Beginning Moodle 2.0 Administration page.&lt;br /&gt;
&lt;br /&gt;
===How do I create a repository?===&lt;br /&gt;
To setup and use a repository in Moodle 2.0, is not complex, just detailed. What follows will set up a site wide repository, that is the contents of this repository will be available to the entire site - so make sure this is really what you want. This is for the kind of resources you may want to use across a number of courses. &lt;br /&gt;
&lt;br /&gt;
1. In the moodledata folder there is a folder called Repository. Create whatever folders you want in there, but it is suggested you use a consistent naming convention, so everyone knows what type of materials reside there, e.g. CalculusPDFs, EnglishCivilWarDocs, and so on. You can copy the required materials into each folder as you create them or add to it at any time thereafter. &lt;br /&gt;
&lt;br /&gt;
2. In your Moodle 2.0 there are a couple of things you need to do, but first you have to activate the user repository system by going to &#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt;Repositories &amp;gt; Manage Repositories&#039;&#039;&#039; and you will see in the list contained in the right-hand panel an item named &amp;quot;File System&amp;quot;. Select the dropdown list box and change the value to &amp;quot;Enabled and visible&amp;quot;&lt;br /&gt;
[[Image:repository01.png|frame|center|Setting the File System Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
3. Click the &amp;quot;Settings&amp;quot; link and that will take you to the &amp;quot;Setup repository on file system&amp;quot; page. Click the &amp;quot;Create a Repository Instance&amp;quot; button and this will take you to the next page. On that page you have two text boxes and two buttons. Add the name of the repository you created in the Repository folder and click &amp;quot;Save&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
[[Image:repository02.png|frame|center|Saving the new Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
When you return to the &amp;quot;Setup repository on file system&amp;quot; page, you will now see that a list of repositories is available. When you access any course file or image picker, the repository will be available to you under the name you have given it. Any file inside the repository will be available for uploading to your course.&lt;br /&gt;
&lt;br /&gt;
===How do I set up a course repository?===&lt;br /&gt;
Setting up the Course repository is almost exactly the same, but the major difference is that is should only be accessible to that one course. &lt;br /&gt;
&lt;br /&gt;
Create a folder in your moodledata/Repository folder, naming it whatever is relevant. Add the files you want in that repository as you create the folder, or you can add them later. &lt;br /&gt;
&lt;br /&gt;
In the Course Administration menu, click the Repository item which takes you to the &amp;quot;Course Repositories&amp;quot; page. You will see a list of all available Repositories so you can access one of them if you chose, or you can select the Create A Repository Instance, Create a &amp;quot;FileSystem&amp;quot;  instance link. This takes you to the same page as shown above.  &lt;br /&gt;
&lt;br /&gt;
[[Image:repository03.png|frame|center|Creating a new Course Repository in Moodle 2.0]]&lt;br /&gt;
&lt;br /&gt;
Create your repository instance in the same manner as described above and when you return to the Course Repositories page, you will see your repository listed there. &lt;br /&gt;
&lt;br /&gt;
When you are adding a file to your course from the repository, you can access the stored file from the image or file picker via your repository. The repository is not available outside the course you create it  for.&lt;br /&gt;
&lt;br /&gt;
===How do I set the maximum upload file size limit?===&lt;br /&gt;
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&#039; 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: &lt;br /&gt;
  Server level&lt;br /&gt;
  Moodle site level&lt;br /&gt;
  Course level&lt;br /&gt;
  Activity level&lt;br /&gt;
&lt;br /&gt;
Perhaps the best place to find this information is at [[File_upload_size|File upload size]] There is a full explanation for a number of different OSs but there are a few missing. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===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?===&lt;br /&gt;
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 &#039;&#039;&#039;.htaccess&#039;&#039;&#039; 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: &lt;br /&gt;
  deny from all&lt;br /&gt;
  AllowOverride None&lt;br /&gt;
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:&lt;br /&gt;
  php_value upload_max_filesize 512M&lt;br /&gt;
  php_value post_max_size 512M &lt;br /&gt;
  php_value memory_limit 128M&lt;br /&gt;
To overwrite boolean or logical settings use: &lt;br /&gt;
  php_flag register_globals off&lt;br /&gt;
or&lt;br /&gt;
  php_flag register_globals 0&lt;br /&gt;
&lt;br /&gt;
Something similar can be done in IIS, but it is a lot more complex. &lt;br /&gt;
&lt;br /&gt;
Thanks Muano&lt;br /&gt;
&lt;br /&gt;
===Can I still use the TeX Notation filter in Moodle 2 like I did in Moodle 1.9?===&lt;br /&gt;
Yes, you can. In fact there is very little that has changed in the changing version. Not that the TeX filter has not be changed, it certainly has, but it does not affect how you will   [[Using_TeX_Notation|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.&lt;br /&gt;
&lt;br /&gt;
: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 [[Advanced Maths Tools]] page.&lt;br /&gt;
&lt;br /&gt;
===I want to change our logo and some other images but there seems no clear way of doing it.===&lt;br /&gt;
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.    &lt;br /&gt;
&lt;br /&gt;
Go and look at the theme folder and in it you will find the name of the theme you are using. In it you will also find the sub-folders for different elements and 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.    &lt;br /&gt;
&lt;br /&gt;
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 [https://docs.moodle.org/dev/Themes_2.0| Themes 2.0] page.&lt;br /&gt;
&lt;br /&gt;
===What about other elements of the Front Page?===&lt;br /&gt;
In some ways, Moodle 2 has made it easier to setup a front page the way you want it. Different themes will use different defaults, many moving away from the traditional three collumn, blocks, categories/courses, blocks, structure that pervaded Moodle 1.9. The Moodle 2 documentation has a more complete look at the [[Front page settings]] than can be viewed here. Also, for a better overview of how this can all be done at a site level, look at the [[Customising appearance]] pages.&lt;br /&gt;
&lt;br /&gt;
===My Password is not being accepted as valid. How can I login as an Admin?===&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=18103 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. &lt;br /&gt;
&lt;br /&gt;
If you do not wish to use a script, then you can try this: &lt;br /&gt;
Using phpMyAdmin, enter the database and look for the mdl_users table. The first line of that table&#039;s data should be the Guest, and the password for Guest is &amp;quot;guest&amp;quot;, without the quote marks. Copy that password and then look for your identity. Paste the &amp;quot;guest&amp;quot; password over the top of yours when you locate it. You should then be able to get into your Moodle then, as an Admin.&lt;br /&gt;
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 &lt;br /&gt;
  $CFG-&amp;gt;passwordsaltmain =&lt;br /&gt;
That should then work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How can I extract orginal files from a Moodle backup file?===&lt;br /&gt;
But just in case you really want to get them from the backup file (an &amp;quot;.mbz&amp;quot; file) you downloaded (using the backup and restore feature), here it goes...&lt;br /&gt;
&lt;br /&gt;
The backup file can actually be opened with the 7zip (http://www.7-zip.org/) program I mentioned. Once you open the file, you need to extract:&lt;br /&gt;
&lt;br /&gt;
    The files.xml file.&lt;br /&gt;
    The files directory (folder).&lt;br /&gt;
&lt;br /&gt;
Next step would be to open the &amp;quot;files.xml&amp;quot; file, and:&lt;br /&gt;
&lt;br /&gt;
    Search for the name of each file you want to get.&lt;br /&gt;
    Take note of the value of the corresponding contenthash tag.&lt;br /&gt;
    In the &amp;quot;files&amp;quot; folder you extracted, locate the file whose name is the same as the value of the contenthash and which will always be located in a folder whose name corresponds to the two first characters of the file name.&lt;br /&gt;
&lt;br /&gt;
For example, lets assume I have a &amp;quot;backup_courses-120730.mbz&amp;quot; file of which I already extracted the &amp;quot;files.xml&amp;quot; file and the &amp;quot;files&amp;quot; folder, and that I&#039;m looking for a PDF file named &amp;quot;Leadership.pdf&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
So I open the files.xml file and:&lt;br /&gt;
&lt;br /&gt;
1. Search for the string &amp;quot;Leadership.pdf&amp;quot;, which in my case I find under the following &amp;amp;lt;file id...&amp;amp;gt; group tag:&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;lt;file id=&amp;quot;12345&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;contenthash&amp;amp;gt;fb6cf43a9b2d432403c70a2cb4c340dbb6225631&amp;amp;lt;/contenthash&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;filename&amp;amp;gt;Leadership.pdf&amp;amp;lt;/filename&amp;amp;gt;&lt;br /&gt;
                :&lt;br /&gt;
  &amp;amp;lt;license&amp;amp;gt;allrightsreserved&amp;amp;lt;/license&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;sortorder&amp;amp;gt;1&amp;amp;lt;/sortorder&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/file&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. I take note of the corresponding contenthash value: fb6cf43a9b2d432403c70a2cb4c340dbb6225631.&lt;br /&gt;
&lt;br /&gt;
3. As the first two characters of the contenthash are &amp;quot;fb&amp;quot;, I open the &amp;quot;fb&amp;quot; folder inside the &amp;quot;files&amp;quot; directory (which I previously extracted), and there I will find a file named &amp;quot;fb6cf43a9b...&amp;quot;, so now I can rename that file as &amp;quot;Leadership.pdf&amp;quot;, and then move it to another location (where I&#039;ll gather all the files I need from the backup).&lt;br /&gt;
&lt;br /&gt;
Thanks to Guillermo Madero S for this answer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*[[Beginning Moodle 2.0 Administration | Beginning Moodle 2.0 Administration ]]&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>ColinFraser</name></author>
	</entry>
</feed>