<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://docs.moodle.org/4x/sv/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Drcuriosity</id>
	<title>MoodleDocs - Användarbidrag [sv]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/4x/sv/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Drcuriosity"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/Special:Bidrag/Drcuriosity"/>
	<updated>2026-04-16T09:29:28Z</updated>
	<subtitle>Användarbidrag</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Ratingallocate&amp;diff=141633</id>
		<title>Ratingallocate</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Ratingallocate&amp;diff=141633"/>
		<updated>2021-09-05T22:51:21Z</updated>

		<summary type="html">&lt;p&gt;Drcuriosity: /* General */ Section rewrite to clarify the high-level purpose and features of the plugin.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Activity&lt;br /&gt;
|entry = https://moodle.org/plugins/view/mod_ratingallocate&lt;br /&gt;
|tracker = https://github.com/learnweb/moodle-mod_ratingallocate&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=308418&lt;br /&gt;
|maintainer = [[User:University of Münster|University of Münster]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
This plugin provides the ability to distribute various resources among users, while aiming to maximize overall user satisfaction with the distribution.&lt;br /&gt;
&lt;br /&gt;
The plugin creates a rating allocation activity, where administrators define  multiple choices that can be rated by users enrolled in the course. Several rating strategies can be selected.&lt;br /&gt;
&lt;br /&gt;
When the rating period has ended, an algorithm automatically calculates the best distribution of choices based on the users&#039; preferences. Users can then be assigned to groups based on their allocated choices.&lt;br /&gt;
&lt;br /&gt;
Possibilities for resources to be distributed with this plugin:&lt;br /&gt;
* Tutorial groups&lt;br /&gt;
* Thesis or project topics&lt;br /&gt;
* Seminar time slots&lt;br /&gt;
&lt;br /&gt;
==Steps to take==&lt;br /&gt;
This chapter should give a guideline how the plugin &amp;quot;Fair Allocation&amp;quot; can be used and which steps have to be done in its life-cycle.&lt;br /&gt;
# Add a &amp;quot;Fair Allocation&amp;quot; instance to your course and configure it. (See the section &amp;quot;Settings&amp;quot;)&lt;br /&gt;
# Add choices to your instance. (See the section &amp;quot;Edit Choices&amp;quot;)&lt;br /&gt;
# After the rating period started users will start edit their ratings.&lt;br /&gt;
# After the rating period has ended:&lt;br /&gt;
## Start distribution (If not done automatically. See &amp;quot;Additional Settings&amp;quot;)&lt;br /&gt;
## Adjust the allocation to your own needs. (See &amp;quot;Alter Allocation&amp;quot;)&lt;br /&gt;
## If you want, you can create now moodle groups from the allocation. The users will be automatically be assigned to their respective group.&lt;br /&gt;
## Publish the allocation&lt;br /&gt;
&lt;br /&gt;
In the section &amp;quot;Reports&amp;quot; the link &amp;quot;Show Ratings and Allocations&amp;quot; shows the current ratings and allocations.&lt;br /&gt;
Here it is also possible to download the results in different data-formats (csv, xlsx, ods, html, json).&lt;br /&gt;
Under &amp;quot;Show Allocation Statistics&amp;quot; you can see, how many first, second,... wishes could be fulfilled and how many students are still unassigned.&lt;br /&gt;
&lt;br /&gt;
==Alter Allocation==&lt;br /&gt;
The algorithm is only as good as the settings he can work with. Often after the allocation is made by the algorithm some choices are booked completely and some are booked only sparsely.&lt;br /&gt;
Sometimes it is hard to guess the exact number of students participating in the &amp;quot;Fair Allocation&amp;quot; at setup time. Then the sizes of the choices might be too high or too low.&lt;br /&gt;
If you have too many places you can react in two ways:&lt;br /&gt;
* If the sizes of the choices are flexible adjust the sizes and start the algorithm again. Then the students will be distributed more evenly.&lt;br /&gt;
* If the choices are fixed, disable some choices and start the algorithm again. Then the students will be distributed only on the remaining choices.&lt;br /&gt;
Another reason for sparsely booked choices can be that most of the students rated this choice with the lowest possible rating (depending on the strategy). This is an indicator for the algorithm that this choice will not be assigned to this student. For this reason, some students might have been left unassigned. It is useful to check this and then assign these students manually.&lt;br /&gt;
&lt;br /&gt;
In the manual allocation screen, you can alter the allocation of each single student. Here you see for each student, how he rated each choice and which choice he is currently assigned to. In the default filter settings, only those students are displayed, which have rated. You can alter the filter settings by checking or unchecking the two settings and then hit &amp;quot;Update Filter&amp;quot;. This way you can for example also hide all students, which are already allocated, to focus on those, who still need to be assigned. You can also search for specific students by using the initial filters.&lt;br /&gt;
Changes to the allocations are only persisted after the form is saved! While you alter the allocations, the green color of the checkbox border and the bold font of the rating text indicate the choice the student was assigned to before you started altering it.&lt;br /&gt;
&lt;br /&gt;
When you want to delete an allocation just uncheck the specific choice and save the form.&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
In the settings there are various possibilities to adjust the activity to the own needs. In the following all plugin specific settings are described in the view of the effect they have on the activity.&lt;br /&gt;
===Rating strategy===&lt;br /&gt;
The rating strategy is one of the core settings of the &amp;quot;Fair Allocation&amp;quot; plugin. It specifies the way the users can rate upon the available choices. There are six different strategies available:&lt;br /&gt;
* &#039;&#039;&#039;Accept-Deny&#039;&#039;&#039; The user can rate each choice with accept or deny.&lt;br /&gt;
* &#039;&#039;&#039;Accept-Neutral-Deny&#039;&#039;&#039; The user can rate each choice with accept, neutral or deny.&lt;br /&gt;
* &#039;&#039;&#039;Likert Scale&#039;&#039;&#039; The user can rate each choice within a scale of integers. The size of the scale can be adjusted in the individual strategy (beginning with 0). A high number means a high preference.&lt;br /&gt;
* &#039;&#039;&#039;Give Points&#039;&#039;&#039; The user can rate the choices by assigning a number of points. The maximum number of points can be set in the individual strategy options. The choice with the most points is preferred. &lt;br /&gt;
* &#039;&#039;&#039;Rank Choices&#039;&#039;&#039; The user has to state and order his &#039;&#039;N&#039;&#039; highest preferences. How many choices need to be rated can be set in the individual strategy options.&lt;br /&gt;
* &#039;&#039;&#039;Tick Accept&#039;&#039;&#039; The user can state for each choice if it is acceptable for him.&lt;br /&gt;
&lt;br /&gt;
In the background each selection option is assigned to an integer value for the use within the algorithm.&lt;br /&gt;
&lt;br /&gt;
===Dates===&lt;br /&gt;
There are three dates, which are of interest for the underlying process of a &amp;quot;Fair Allocation&amp;quot; activity.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Rating begins at&#039;&#039;&#039; This date states the time, when the rating period is opened. Before this time no user will be able to edit his rating.&lt;br /&gt;
* &#039;&#039;&#039;Rating ends at&#039;&#039;&#039; This date states the time, when the rating period is closed. After this time users are no longer able to create or edit their rating. In addition, all further steps of distribution offered to the teacher are only enabled after the rating period ended.&lt;br /&gt;
* &#039;&#039;&#039;Publishdate&#039;&#039;&#039; This date has no effect on the process of the activity but offers the teacher a possibility to communicate the expected publish-date. This date can be disabled.&lt;br /&gt;
&lt;br /&gt;
===Strategy Options===&lt;br /&gt;
Each strategy offers individual settings, which are only enabled for editing, when the respective strategy is chosen. There are some options many strategies have in common:&lt;br /&gt;
* &#039;&#039;&#039;Label&#039;&#039;&#039; It is possible to assign individual labels to each selection option. However, when no value is set here the activity will take the default value, which makes it possible to display language specific labels.&lt;br /&gt;
* &#039;&#039;&#039;Maximum number of choices the user can rate with...&#039;&#039;&#039; Here a number can be added, restricting the number of choices the user can decline. Internally the selection options &amp;quot;deny&amp;quot;, 0 etc. are assigned to the value 0. The algorithm will make no assignment of a user to a choice he has rated with 0. To decrease the number of users, which could not be assigned to any choice according to their wished, the users should be forced to rate on a reasonable number of choices. Each user, who could not be assigned via the algorithm has to be allocated manually afterwards!&lt;br /&gt;
&lt;br /&gt;
Some of the options however are very specific to the respective strategy:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Highest number on the lickert-scale (lickert-scale)&#039;&#039;&#039; This number configures who many selection options the users get. The scale starts always with 0 and ranges up to this value. The refresh button on the bottom enables to refresh the number of fields offered for the individual labels.&lt;br /&gt;
* &#039;&#039;&#039;Total number of points users can assign (Give Points)&#039;&#039;&#039; This option states the number of points a user can and has to assign. All points have to add up to this number.&lt;br /&gt;
* &#039;&#039;&#039;Number of fields the user is presented to vote on (Rank Choices)&#039;&#039;&#039; This option specifies the number of choices the user has to rate. For example, the number 3 means, that the user has to specify and order his top 3 choices.&lt;br /&gt;
&lt;br /&gt;
===Additional Settings===&lt;br /&gt;
* &#039;&#039;&#039;Automatic allocation after rating period&#039;&#039;&#039; If checked, the algorithm will start to generate the allocation directly after the rating period ended. This way, the allocation may be already finished when you next visit the course. However, the allocation will not yet be published, so you have time to look at the result and alter it manually.&lt;br /&gt;
&lt;br /&gt;
==Edit Choices==&lt;br /&gt;
Directly after the creation of the Fair Allocation instance you should follow &amp;quot;Edit Choices&amp;quot;. Here it is possible to create an arbitrary number of choices using the &amp;quot;Add new choice&amp;quot; button. Each choice has individual settings:&lt;br /&gt;
* &#039;&#039;&#039;Title&#039;&#039;&#039; The title to be displayed for the choice.&lt;br /&gt;
* &#039;&#039;&#039;Explanation&#039;&#039;&#039; The explanation should provide additional information to the choice.&lt;br /&gt;
* &#039;&#039;&#039;Max number of members&#039;&#039;&#039; This field restricts the number of members, who can be assigned to this choice to a certain value. This is necessary for the algorithm in order to provide a good distribution. If there are no restrictions to the size, it is not necessary trying to optimize the distribution. This settings does however not prohibit an overbooking through the manual allocation.&lt;br /&gt;
* &#039;&#039;&#039;Active&#039;&#039;&#039; It is possible to mark choices as inactive. This feature can be valuable if a course is duplicated over multiple semesters and one choice should be excluded for only one semester. Inactive choices will not be considered in the allocation of the algorithm and will not be available for manual allocation.&lt;br /&gt;
&lt;br /&gt;
==Contributors==&lt;br /&gt;
The plugin is based on the group_distribution plugin of the University of Ulm (Germany) and is further developed and maintained by the University of Münster (Germany)&lt;/div&gt;</summary>
		<author><name>Drcuriosity</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Debugging&amp;diff=140559</id>
		<title>Debugging</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Debugging&amp;diff=140559"/>
		<updated>2021-06-03T05:15:45Z</updated>

		<summary type="html">&lt;p&gt;Drcuriosity: Added a note about debugging() for developers, since it was hard to find details in search.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Developer tools}}&lt;br /&gt;
==Using debugging messages==&lt;br /&gt;
&lt;br /&gt;
Debugging messages are intended to help diagnose problems and/or help Moodle developers. If you have a problem with your Moodle site and ask for help in a Moodle.org forum, a developer may ask you to turn enable debugging i.e. turn debugging messages on, in order to locate the cause of the problem. If you are having problems such as a blank screen or incomplete screens, then turning on debugging is usually the first thing to try. &lt;br /&gt;
&lt;br /&gt;
==Enabling debugging==&lt;br /&gt;
&lt;br /&gt;
To enable debugging, go to &#039;&#039;Site administration &amp;gt; Development &amp;gt; Debugging&#039;&#039; .&lt;br /&gt;
&lt;br /&gt;
===Debug messages===&lt;br /&gt;
&lt;br /&gt;
The options are:&lt;br /&gt;
&lt;br /&gt;
* NONE: Do not show any errors or warnings (Default) &lt;br /&gt;
* MINIMAL: Show only fatal errors&lt;br /&gt;
* NORMAL: Show warnings, errors and notices&lt;br /&gt;
* ALL: Show all reasonable PHP debug messages&lt;br /&gt;
* DEVELOPER: extra Moodle debug messages for developers&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
# It is recommended that a record of error messages is kept, and for the admin to regularly monitor the error logs. This may be done by setting &#039;Debug messages&#039; (debug) to Normal and leaving &#039;Display debug messages&#039; (debugdisplay) off (unticked). Error messages are then recorded in the server logs.&lt;br /&gt;
# If &#039;Debug messages&#039; is set to Developer on a production (public) site, it is recommended to copy and paste the debugging message obtained and then turn off Developer debugging. This is because debugging messages can give clues to a hacker as to the set-up of your site.&lt;br /&gt;
&lt;br /&gt;
===Display debug messages===&lt;br /&gt;
&lt;br /&gt;
If you select this checkbox, the debug messages are displayed directly in the browser, otherwise they are stored in the server logs.&lt;br /&gt;
&lt;br /&gt;
===Debug email sending===&lt;br /&gt;
&lt;br /&gt;
Determines whether or not to enable verbose debug information during sending of email messages to SMTP server.&lt;br /&gt;
&lt;br /&gt;
==== More tools for debugging outgoing mail (SMTP) ====&lt;br /&gt;
You can also use the config.php file to turn on more &amp;quot;tools&amp;quot; which will assist you with debugging the outgoing emails (and SMTP server configuration):&lt;br /&gt;
* Redirect all outgoing emails to a specific address:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
// Divert all outgoing emails to this address to test and debug emailing features&lt;br /&gt;
// $CFG-&amp;gt;divertallemailsto = &#039;root@localhost.local&#039;; // NOT FOR PRODUCTION SERVERS!&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Turn on the CRON debugging and run CLI cron.php script.&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
// Force developer level debug and add debug info to the output of cron&lt;br /&gt;
// $CFG-&amp;gt;showcrondebugging = true;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
And then use SSH (or putty.exe, on windows) to run:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
you@moodle-server(/var/www/html/moodle)# php admin/cli/cron.php&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Turn on verbose SMTP debugging and output it into system&#039;s error_log (code hack):&lt;br /&gt;
As [https://moodle.org/mod/forum/discuss.php?d=316222#p1289850 suggested] on Moodle&#039;s discussion forums:&lt;br /&gt;
Open [https://github.com/moodle/moodle/blob/master/lib/moodlelib.php#L5379 lib/moodlelib.php L5379] and change it to:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
if (!empty($CFG-&amp;gt;debugsmtp)) {&lt;br /&gt;
    $mailer-&amp;gt;SMTPDebug = 1;  // 0 - no debug ... 4 - low level full debug&lt;br /&gt;
    $mailer-&amp;gt;Debugoutput = &amp;quot;error_log&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
See more info about [https://github.com/moodle/moodle/blob/master/lib/phpmailer/class.phpmailer.php#L314 SMTPDebug] parameters &amp;amp; [https://github.com/moodle/moodle/blob/master/lib/phpmailer/class.phpmailer.php#L328 Debugoutput] parameters,&lt;br /&gt;
Set-up mailcatcher (https://mailcatcher.me/).&lt;br /&gt;
&lt;br /&gt;
===Performance info===&lt;br /&gt;
&lt;br /&gt;
The Performance info option determines whether performance info will be included in the footer of the standard theme (and some other themes). Performance info includes the time for the page to load, the amount of memory used to generate the page, cpu usage, load, and the record cache hit/miss ration.&lt;br /&gt;
&lt;br /&gt;
If you add&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
define(&#039;MDL_PERF&#039;, true);&lt;br /&gt;
define(&#039;MDL_PERFDB&#039;, true);&lt;br /&gt;
define(&#039;MDL_PERFTOLOG&#039;, true);&lt;br /&gt;
define(&#039;MDL_PERFTOFOOT&#039;, true);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
to your config.php file, then it will also count database queries. (This has to be in config.php, because Moodle starts doing DB queries before it loads the config information in the database!)&lt;br /&gt;
&lt;br /&gt;
To hide performance info from ordinary users, see the discussion [https://moodle.org/mod/forum/discuss.php?d=358032 Performance info only for admins?]&lt;br /&gt;
&lt;br /&gt;
===Show origin of languages strings===&lt;br /&gt;
&lt;br /&gt;
Helps with [[:dev:Translation|translation]] and also with [[Language customization]]. Sometimes &amp;lt;code&amp;gt;?strings=1&amp;lt;/code&amp;gt; should be added; other times &amp;lt;code&amp;gt;&amp;amp;strings=1&amp;lt;/code&amp;gt;. See the Wikipedia article [http://en.wikipedia.org/wiki/Query_string Query string] for details.&lt;br /&gt;
&lt;br /&gt;
===Show validator links===&lt;br /&gt;
Be careful, read the warning.&lt;br /&gt;
&lt;br /&gt;
===Show page information===&lt;br /&gt;
To show page information printed in the page footer.&lt;br /&gt;
&lt;br /&gt;
===Debug SQL queries===&lt;br /&gt;
You can add (turn ON) any of the following dboptions in your config.php files, which log different types of SQL queries into mdl_log_queries table:&lt;br /&gt;
* &#039;&#039;&#039;logall&#039;&#039;&#039; - log all queries - suitable only for developers, causes high server loads and NOT recommended for production.&lt;br /&gt;
* &#039;&#039;&#039;logslow&#039;&#039;&#039; - log queries that take longer than specified number of seconds (float values are accepted).&lt;br /&gt;
* &#039;&#039;&#039;logerrors&#039;&#039;&#039; - log all error queries.&lt;br /&gt;
&lt;br /&gt;
Full sample:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$CFG-&amp;gt;dboptions = array (&lt;br /&gt;
  //&#039;logall&#039;   =&amp;gt; true,&lt;br /&gt;
  &#039;logslow&#039;  =&amp;gt; 5,&lt;br /&gt;
  &#039;logerrors&#039;  =&amp;gt; true,&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==What to do if you cannot get to the admin screens==&lt;br /&gt;
&lt;br /&gt;
If the error is stopping you even getting to the admin screens to turn on debugging, then you can set the debugging setting manually.&lt;br /&gt;
&lt;br /&gt;
===Try typing the URL directly===&lt;br /&gt;
&lt;br /&gt;
The debug settings are at the URL &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://.../admin/settings.php?section=debugging&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; on your server. Sometimes that URL will work, even though the pages you need to go to get there (for example the site front page) do not. So it is worth trying to enter that URL directly.&lt;br /&gt;
&lt;br /&gt;
===In config.php===&lt;br /&gt;
&lt;br /&gt;
In [[Configuration file|config.php]] you can uncomment lines (delete the // at the start of the line) under Section 7 to enable debugging for all or just specific users:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
//=========================================================================&lt;br /&gt;
// 7. SETTINGS FOR DEVELOPMENT SERVERS - not intended for production use!!!&lt;br /&gt;
//=========================================================================&lt;br /&gt;
//&lt;br /&gt;
// Force a debugging mode regardless the settings in the site administration&lt;br /&gt;
// @error_reporting(E_ALL | E_STRICT);   // NOT FOR PRODUCTION SERVERS!&lt;br /&gt;
// @ini_set(&#039;display_errors&#039;, &#039;1&#039;);         // NOT FOR PRODUCTION SERVERS!&lt;br /&gt;
// $CFG-&amp;gt;debug = (E_ALL | E_STRICT);   // === DEBUG_DEVELOPER - NOT FOR PRODUCTION SERVERS!&lt;br /&gt;
// $CFG-&amp;gt;debugdisplay = 1;              // NOT FOR PRODUCTION SERVERS!&lt;br /&gt;
//&lt;br /&gt;
// You can specify a comma separated list of user ids that that always see&lt;br /&gt;
// debug messages, this overrides the debug flag in $CFG-&amp;gt;debug and $CFG-&amp;gt;debugdisplay&lt;br /&gt;
// for these users only.&lt;br /&gt;
// $CFG-&amp;gt;debugusers = &#039;2&#039;;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember to comment those lines again (reinsert the // at the start of the line) when you have finished diagnosing your problem.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE 1&#039;&#039;&#039;: do not try to modify the config database table directly, it will not work because the values are cached in MUC.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE 2&#039;&#039;&#039;: if you find your config.php does not have the above settings (you have a cut down approx 30 lines config.php) look for a &amp;quot;config-dist.php&amp;quot; file that contains the full details. I would suggest transferring your details in the current config.php file you have into the full config file and renaming that one to &amp;quot;config.php&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* If you are a developer looking for usage information on the &amp;lt;tt&amp;gt;debugging()&amp;lt;/tt&amp;gt; statement, try lib/weblib.php for documentation on how it is used, and lib/setuplib.php for definitions of which PHP error levels the &amp;lt;tt&amp;gt;DEBUG_*&amp;lt;/tt&amp;gt; flags map to.&lt;br /&gt;
* Developers can also use [http://xdebug.org/ XDEBUG] (Installed as a module on the Apache server) to further dig into the code, step by step using an [http://xdebug.org/docs/remote XDEBUG client application]. Probably, as part of their favorite IDE. For example: [http://php.netbeans.org/ NetBeans], [http://www.jetbrains.com/phpstorm/ phpStorm] or...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Depuración]]&lt;br /&gt;
[[fr:Débogage]]&lt;br /&gt;
[[de:Debugging]]&lt;/div&gt;</summary>
		<author><name>Drcuriosity</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Maintenance_mode&amp;diff=135457</id>
		<title>Maintenance mode</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Maintenance_mode&amp;diff=135457"/>
		<updated>2019-09-15T22:26:43Z</updated>

		<summary type="html">&lt;p&gt;Drcuriosity: /* Outage manager additial plugin */ Should be &amp;#039;additional&amp;#039;, I think.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server settings}}&lt;br /&gt;
==Preventing access whilst maintenance is taking place==&lt;br /&gt;
Maintenance mode is for preventing any users other than administrators from using the site while maintenance is taking place, though &#039;&#039;it&#039;s not designed to prevent user access during version upgrades&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When users attempt to access a course when your site is in maintenance mode, they obtain a message informing them that the site is in maintenance mode. If you wish, you can create a customized maintenance mode message, perhaps stating when the site will be available again or giving the reason for doing maintenance.&lt;br /&gt;
&lt;br /&gt;
Note: The front page of your site will appear as normal when your site is in maintenance mode. Users will only see the maintenance mode message when they attempt to access a course.&lt;br /&gt;
&lt;br /&gt;
==Setting maintenance mode==&lt;br /&gt;
&lt;br /&gt;
An administrator can put the site into maintenance mode in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Server &amp;gt; Maintenance mode&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When a site is in maintenance mode, the link &amp;quot;In Maintenance Mode&amp;quot; is displayed near the top right of each page (except the front page) for admins.&lt;br /&gt;
&lt;br /&gt;
If your session finished while still in Mainenance mode, you can re-login by typing the login URL directly (&amp;lt;nowiki&amp;gt;http://yoursitename/login/&amp;lt;/nowiki&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==CLI maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Admins can enable CLI maintenance mode by adding a file &amp;lt;tt&amp;gt;$CFG-&amp;gt;dataroot/climaintenance.html&amp;lt;/tt&amp;gt;. If it exists, this file will be sent to the navigator instead of the standard Moodle home page.&lt;br /&gt;
The difference from the standard maintenance mode is that all web access is prevented, CLI scripts continue to work (with the exception of admin/cli/cron.php). This CLI maintenance mode is often used during CLI version upgrades.&lt;br /&gt;
&lt;br /&gt;
It is possible to use the admin/cli/maintenance.php to schedule the CLI maintenance mode and then to display a message to users warning them when the site will become unavailable. In the scheduled maintenance mode, the maintenance message is taken from admin setting, template file &amp;lt;tt&amp;gt;$CFG-&amp;gt;dataroot/climaintenance.template.html&amp;lt;/tt&amp;gt; and the language pack, in this order. See MDL-37596 for details.&lt;br /&gt;
{|&lt;br /&gt;
|[[File:maintenancecli25.png|thumb|Scheduled  maintenance mode]]&lt;br /&gt;
|}&lt;br /&gt;
See also the section on maintenance mode in [[Administration via command line]].&lt;br /&gt;
&lt;br /&gt;
==Allowing non-admin users access to site whilst in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Non-admin users may be given access to the site whilst in maintenance mode as follows:&lt;br /&gt;
&lt;br /&gt;
# Create a new role with the capability [[Capabilities/moodle/site:maintenanceaccess|moodle/site:maintenanceaccess]] allowed&lt;br /&gt;
# Assign it to selected users as a system role&lt;br /&gt;
&lt;br /&gt;
==Outage manager additional plugin==&lt;br /&gt;
This is a Moodle plugin which makes the student experience of planned outages nicer, and provides extra tools for administrators and testers that help before and after the outage window.&lt;br /&gt;
&lt;br /&gt;
The main idea is that instead of an outage being a very boolean on/off situation, this plugin creates the concept of graduated outages where at predefined times before an outage and after, different levels of warning and access can be provided to students and testers letting them know what is about to happen and why.&lt;br /&gt;
&lt;br /&gt;
See [https://moodle.org/plugins/auth_outage Outage manager] - A plugin to manage outage periods, such as scheduled maintenance, including CLI tools to embed in your scripting.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
Forum discussions:&lt;br /&gt;
*[https://moodle.org/mod/forum/discuss.php?d=245299 Maintenance mode cannot be switched off]&lt;br /&gt;
*[https://moodle.org/mod/forum/discuss.php?d=251954 Moodle for Windows stuck in Maintenance mode]&lt;br /&gt;
*[https://moodle.org/mod/forum/discuss.php?d=318890 Turned on Maintenance and can&#039;t get back in]&lt;br /&gt;
&lt;br /&gt;
[[es:Modo de mantenimiento]]&lt;br /&gt;
[[fr:Mode de maintenance]]&lt;br /&gt;
[[ja:メンテナンスモード]]&lt;br /&gt;
[[de:Wartungsmodus]]&lt;/div&gt;</summary>
		<author><name>Drcuriosity</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Installing_Moodle&amp;diff=135427</id>
		<title>Installing Moodle</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Installing_Moodle&amp;diff=135427"/>
		<updated>2019-09-08T21:42:18Z</updated>

		<summary type="html">&lt;p&gt;Drcuriosity: /* Settings within Moodle */ underline OS -&amp;gt; underlying OS&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Installing Moodle}}&lt;br /&gt;
&#039;&#039;This page explains how to install Moodle. If you are an expert and/or in a hurry try [[Installation Quickstart]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you just want to try Moodle on a standalone machine there are &#039;one-click&#039; installers for Windows (see [[Complete install packages for Windows]]) and for OSX (see [[Complete Install Packages for Mac OS X]]) or [[ install on OS X]]. These are unsuitable for production servers. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Moodle is primarily developed in Linux using [[Apache]], [[PostgreSQL]]/[[MySQL]]/[[MariaDB]] and [[PHP]] (sometimes known as the LAMP platform). Typically this is also how Moodle is run, although there are other options as long as the software requirements of the  [{{Release notes}} release] are met.&lt;br /&gt;
&lt;br /&gt;
If you are installing Moodle in a Windows server, note that from php5.5 onwards, you will also need to have  the Visual C++ Redistributable for Visual Studio 2012 installed from:&lt;br /&gt;
http://www.microsoft.com/en-us/download/details.aspx?id=30679 Visual C++] ( x86 or x64)  &lt;br /&gt;
&lt;br /&gt;
The basic requirements for Moodle are as follows:&lt;br /&gt;
&lt;br /&gt;
=== Hardware === &lt;br /&gt;
* Disk space: 200MB for the Moodle code, plus as much as you need to store content. 5GB is probably a realistic minimum. &lt;br /&gt;
* Processor: 1GHz (min), 2GHz dual core or more recommended.&lt;br /&gt;
* Memory: 512MB (min), 1GB or more is recommended. 8GB plus is likely on a large production server&lt;br /&gt;
* Consider separate servers for the web &amp;quot;front ends&amp;quot; and the database. It is much easier to &amp;quot;tune&amp;quot;&lt;br /&gt;
&lt;br /&gt;
All the above requirements will vary depending on specific hardware and software combinations as well as the type of use and load; busy sites may well require additional resources. Further guidance can be found under [[Performance_recommendations|performance recommendations]]. Moodle scales easily by increasing hardware.&lt;br /&gt;
&lt;br /&gt;
For very large sites, you are much better starting with a small pilot and gaining some experience and insight. A &amp;quot;what hardware do I need for 50,000 user?&amp;quot; style post in the forums is highly unlikely to get a useful answer.&lt;br /&gt;
&lt;br /&gt;
=== Software ===&lt;br /&gt;
&lt;br /&gt;
See the [{{Release notes}} release notes] in the dev docs for software requirements.&lt;br /&gt;
&lt;br /&gt;
== Set up your server ==&lt;br /&gt;
&lt;br /&gt;
Depending the use case a Moodle server may be anything from a Desktop PC (e.g. for testing and evaluating) to a rackmounted or  [[Server cluster|clustered]] solution. As mentioned above there are lots of possibilities for installing the basic server software, some links and pointers are at [[Installing AMP]], [[Internet_Information_Services|IIS]], [[Nginx]]. &lt;br /&gt;
&lt;br /&gt;
It will help hugely, regardless of your deployment choices, if time is taken to understand how to configure the different parts of your software stack (HTTP daemon, database,  PHP etc). Do not expect the standard server configuration to be optimal for Moodle. For example, the web server and database servers will almost certainly require tuning to get the best out of Moodle.&lt;br /&gt;
&lt;br /&gt;
If a hosting provider is being used  ensure that all Moodle [{{Release notes}}#Server_requirements requirements] (such as PHP version) are met by the hosting platform before attempting the installation. It will help to become familiar with changing settings within the hosting provider&#039;s platform (e.g. PHP file upload maximums) as the options and tools provided vary.&lt;br /&gt;
&lt;br /&gt;
== Download and copy files into place ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT: While there are now a number of places you can get the Moodle code (including host provided Moodle installers), you are strongly advised to only obtain Moodle from moodle.org. If you run into problems it will be a great deal easier to support you.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You have two options:&lt;br /&gt;
* Download your required version from http://moodle.org/downloads and unzip/unpack...&lt;br /&gt;
* &#039;&#039;&#039;OR&#039;&#039;&#039; Pull the code from the Git repository (recommended for developers and also makes upgrading very simple):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git clone -b MOODLE_{{Version3}}_STABLE git://git.moodle.org/moodle.git  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options you might consider:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;--depth=1&#039;&#039;  for shallow cloning (only) latest revision (be advised! If you are a developer, you will not be able to easily make git updates and modification later on when this feature is used) &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;--single-branch&#039;&#039;  to limit cloning to a single branch, this fetches the Moodle {{Version}} Stable branch (latest weekly build). For a fuller discussion see [[Git for Administrators]]. &lt;br /&gt;
&lt;br /&gt;
Either of the above should result in a directory called &#039;&#039;&#039;moodle&#039;&#039;&#039;, containing a number of files and folders. &lt;br /&gt;
&lt;br /&gt;
You can typically place the whole folder in your web server documents directory, in which case the site will be located at &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://yourwebserver.com/moodle&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;, or you can copy all the contents straight into the main web server documents directory, in which case the site will be simply &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://yourwebserver.com&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;. See the documentation for your system and/or web server if you are unsure. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; If you are downloading Moodle to your local computer and then uploading it to your hosted web site, if possible upload the compressed file and decompress at the remote end (check your &#039;file manager&#039;). Failing that, watch FTP progress carefully for errors or missed files.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Secure the Moodle files:&#039;&#039;&#039; It is vital that the files are not writeable by the web server user. For example, on Unix/Linux (as root):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# chown -R root /path/to/moodle&lt;br /&gt;
# chmod -R 0755 /path/to/moodle&lt;br /&gt;
# find /path/to/moodle -type f -exec chmod 0644 {} \;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(files are owned by the administrator/superuser and are only writeable by them - readable by everyone else)&lt;br /&gt;
&lt;br /&gt;
The third command finds all the regular files and executes the chmod command 0644 on them. &lt;br /&gt;
&lt;br /&gt;
If you want to use the built-in plugin installer you need to make the directory writable by web server user. It is strongly recommended to use ACL when your server supports it, for example if your Apache server uses account www-data: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# chmod -R +a &amp;quot;www-data allow read,delete,write,append,file_inherit,directory_inherit&amp;quot; /path/to/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The effect of the previous command is to allow the Apache user account (www-data in this case) to access and change files within the moodle site. Many people would consider this a brave move for a new site admin to implement. In a new moodle you can safely leave this out. A default Ubuntu install does not have the +a option for the chmod command anyway. The +a attribute is an ACL (Access Control List) facility which allows you to set per user access for individual files. For example, OSX has this by default.&lt;br /&gt;
&lt;br /&gt;
== Create an empty database ==&lt;br /&gt;
&lt;br /&gt;
Next create a new, empty database for your installation. You need to find and make a note of following information for use during the final installation stage:&lt;br /&gt;
* &#039;&#039;&#039;dbhost&#039;&#039;&#039; - the database server hostname. Probably &#039;&#039;localhost&#039;&#039; if the database and web server are the same machine, otherwise the name of the database server&lt;br /&gt;
* &#039;&#039;&#039;dbname&#039;&#039;&#039; - the database name. Whatever you called it, e.g. &#039;&#039;moodle&#039;&#039; &lt;br /&gt;
* &#039;&#039;&#039;dbuser&#039;&#039;&#039; - the username for the database. Whatever you assigned, e.g. &#039;&#039;moodleuser&#039;&#039; - do not use the root/superuser account. Create a proper account with the minimum permissions needed.&lt;br /&gt;
* &#039;&#039;&#039;dbpass&#039;&#039;&#039; - the password for the above user&lt;br /&gt;
&lt;br /&gt;
If your site is hosted you should find a web-based administration page for databases as part of the control panel (or ask your administrator). For everyone else or for detailed instructions, see the page for your chosen database server:&lt;br /&gt;
* [[PostgreSQL]] (recommended)&lt;br /&gt;
* [[MariaDB]] (recommended)&lt;br /&gt;
* [[MySQL]]&lt;br /&gt;
* [[MSSQL]]&lt;br /&gt;
* [[Oracle]] (not recommended)&lt;br /&gt;
&lt;br /&gt;
== Create the (&#039;&#039;moodledata&#039;&#039;) data directory  ==&lt;br /&gt;
&lt;br /&gt;
Moodle requires a directory to store all of its files (all your site&#039;s uploaded files, temporary data, cache, session data etc.). The web server needs to be able to write to this directory. On larger systems consider how much free space you are going to use when allocating this directory. &lt;br /&gt;
&lt;br /&gt;
Due to the default way Moodle caches data you may have serious performance issues if you use relatively slow storage (e.g. NFS) for this directory. Read the [[Performance_recommendations]] carefully and consider using (e.g.) redis or memcached for [[Caching]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; This directory must &#039;&#039;&#039;NOT&#039;&#039;&#039; be accessible directly via the web. This would be a serious security hole. Do not try to place it inside your web root or inside your Moodle program files directory. Moodle will not install. It can go anywhere else convenient. &lt;br /&gt;
&lt;br /&gt;
Here is an example (Unix/Linux) of creating the directory and setting the permissions for &#039;&#039;&#039;anyone&#039;&#039;&#039; on the server to write here. This is only appropriate for Moodle servers that are not shared. Discuss this with your server administrator for better permissions that just allow the web server user to access these files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# mkdir /path/to/moodledata&lt;br /&gt;
# chmod 0777 /path/to/moodledata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your server supports ACL it is recommended to set following permissions, for example if your Apache server uses account www-data:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# chmod -R +a &amp;quot;www-data allow read,delete,write,append,file_inherit,directory_inherit&amp;quot; /path/to/moodledata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you are planning to execute PHP scripts from the command line you should set the same permissions for the current user:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo chmod -R +a &amp;quot;`whoami` allow read,delete,write,append,file_inherit,directory_inherit&amp;quot; /path/to/moodledata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Securing moodledata in a web directory ====&lt;br /&gt;
&lt;br /&gt;
If you are using a hosted site and you have no option but to place &#039;moodledata&#039; in a web accessible directory. You may be able to secure it by creating an .htaccess file in the &#039;moodledata&#039; directory. This does not work on all systems - see your host/administrator. Create a file called .htaccess containing only the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
order deny,allow&lt;br /&gt;
deny from all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Start Moodle install ==&lt;br /&gt;
It&#039;s now time to run the installer to create the database tables and configure your new site. The recommended method is to use the command line installer. If you cannot do this for any reason (e.g. on a Windows server) the web-based installer is still available.&lt;br /&gt;
&lt;br /&gt;
=== Command line installer ===&lt;br /&gt;
&lt;br /&gt;
It&#039;s best to run the command line as your system&#039;s web user. You need to know what that is - see your system&#039;s documentation (e.g. Ubuntu/Debian is &#039;www-data&#039;, Centos is &#039;apache&#039;)&lt;br /&gt;
&lt;br /&gt;
* Example of using the command-line  (as root - substitute &#039;www-data&#039; for your web user):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# chown www-data /path/to/moodle&lt;br /&gt;
# cd /path/to/moodle/admin/cli&lt;br /&gt;
# sudo -u www-data /usr/bin/php install.php&lt;br /&gt;
# chown -R root /path/to/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The chowns allow the script to write a new config.php file. More information about the options can be found using &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# php install.php --help&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be asked for other settings that have not been discussed on this page - if unsure just accept the defaults. For a full discussion see [[Administration via command line]]&lt;br /&gt;
&lt;br /&gt;
=== Web based installer ===&lt;br /&gt;
&lt;br /&gt;
For ease of use you can install Moodle via the web. We recommend configuring your web server so that the page is not publicly accessible until the installation is complete.&lt;br /&gt;
&lt;br /&gt;
To run the web installer script, just go to your Moodle&#039;s main URL using a web browser.&lt;br /&gt;
&lt;br /&gt;
The installation process will take you through a number of pages. You should be asked to confirm the copyright, see the database tables being created, supply administrator account details and supply the site details. The database creation can take some time - please be patient. You should eventually end up at the Moodle front page with an invitation to create a new course. &lt;br /&gt;
&lt;br /&gt;
It is very likely that you will be asked to download the new config.php file and upload it to your Moodle installation - just follow the on-screen instructions.&lt;br /&gt;
&lt;br /&gt;
==Final configuration==&lt;br /&gt;
&lt;br /&gt;
=== Settings within Moodle ===&lt;br /&gt;
There are a number of options within the Moodle Site Administration screens (accessible from the &#039;Site administration&#039; tab in the &#039;Administration&#039; block. Here are a few of the more important ones that you will probably want to check:&lt;br /&gt;
* &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message Outputs &amp;gt; Email&#039;&#039;: Set your smtp server and authentication if required (so your Moodle site can send emails). The support contact for your site is also set on this page. &lt;br /&gt;
* &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Server &amp;gt; System paths&#039;&#039;: Set the paths to du, dot and aspell binaries.&lt;br /&gt;
* &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Server &amp;gt; HTTP&#039;&#039;: If you are behind a firewall you may need to set your proxy credentials in the &#039;Web proxy&#039; section.&lt;br /&gt;
* &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Location &amp;gt; Update timezones&#039;&#039;: Run this to make sure your timezone information is up to date. (more info [[Location]])&lt;br /&gt;
** [http://php.net/manual/en/timezones.php Set server&#039;s local timezone] inside &amp;lt;tt&amp;gt;php.ini&amp;lt;/tt&amp;gt; (should probably be inside &amp;lt;tt&amp;gt;/etc/php.ini&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;/etc/php.d/date.ini&amp;lt;/tt&amp;gt;, depending on the underlying OS):&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
[Date] &lt;br /&gt;
; Defines the default timezone used by the date functions &lt;br /&gt;
date.timezone = &amp;quot;YOUR LOCAL TIMEZONE&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Remaining tasks ===&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Configure Cron&#039;&#039;&#039;: Moodle&#039;s background tasks (e.g. sending out forum emails and performing course backups) are performed by a script which you can set to execute at specific times of the day. This is known as a cron script. Please refer to the [[Cron|Cron instructions]].&lt;br /&gt;
* &#039;&#039;&#039;Set up backups&#039;&#039;&#039;: See [[Site backup]] and [[Automated course backup]].&lt;br /&gt;
* &#039;&#039;&#039;Secure your Moodle site&#039;&#039;&#039;: Read the [[Security recommendations]].&lt;br /&gt;
*&#039;&#039;&#039;Increasing the maximum upload size&#039;&#039;&#039;  See [[Installation FAQ]] Maximum upload file size - how to change it?&lt;br /&gt;
* &#039;&#039;&#039;Check mail works&#039;&#039;&#039; (New in 3.7): From Site administration &amp;gt; Server &amp;gt; Test outgoing mail configuration, use the  link to send yourself a test email. Don&#039;t be tempted to skip this step.&lt;br /&gt;
&lt;br /&gt;
=== Installation is complete :) ===&lt;br /&gt;
&lt;br /&gt;
* Create a new course: You can now access Moodle through your web browser (using the same URL as you set during the install process), log in as your admin user and creatse a new course. See  [[Adding a new course|create a new course]].&lt;br /&gt;
&lt;br /&gt;
=== If something goes wrong... ===&lt;br /&gt;
&lt;br /&gt;
Here are some things you should try...&lt;br /&gt;
&lt;br /&gt;
* Check the [[Installation FAQ]]&lt;br /&gt;
* Check your file permissions carefully. Can your web server read (but not write) the Moodle program files? Can your web server read and write your Moodle data directory? If you don&#039;t fully understand how file ownership and permissions work on your operating system it would be time very well spent to find out.&lt;br /&gt;
* Check your database permissions. Have you set up your database user with the correct rights and permissions for your configuration (especially if the web server and database server are different machines)?&lt;br /&gt;
* Create your [[Configuration file]] (config.php) by hand. Copy config-dist.php (in the root of the Moodle program directory) to config.php, edit it and set your database/site options there. Installation will continue from the right place. &lt;br /&gt;
* Once you have a config.php (see previous tip) you can edit it to turn on debugging (in section 8). This may give you extra information to help track down a problem. If you have access, check your web server error log(s).&lt;br /&gt;
* Re-check your php.ini / .htaccess settings. Are they appropriate (e.g. memory_limit), did you edit the correct php.ini / .htaccess file and (if required) did you re-start the web server after making changes?&lt;br /&gt;
* Did you include any non-core (optional) plugins, themes or other code before starting the installation script? If so, remove it and try again (it may be broken or incompatible).&lt;br /&gt;
* Explain your problem in the [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum]. &#039;&#039;&#039;PLEASE&#039;&#039;&#039; list your software versions; explain what you did, what happened and what error messages you saw (if any); explain what you tried. There is no such thing as &#039;nothing&#039;, even a blank page is something!&lt;br /&gt;
&lt;br /&gt;
== Platform specific instructions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Much of this information is provided by the community. It may not have been checked and may be out of date. Please read in conjunction with the above installation instructions.&lt;br /&gt;
&lt;br /&gt;
* [[Windows installation]]&lt;br /&gt;
** [[Installing Moodle on SmarterASP.NET]]&lt;br /&gt;
* [[Unix or Linux Installation]]&lt;br /&gt;
* [[Mac Installation]]&lt;br /&gt;
* [[Amazon EC2 Cloud Services Installation]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [http://www.slideshare.net/gb2048/my-own-moodle Slideshare presentation by Gareth Barnard on installing a local installation of Moodle] and accompanying [https://drive.google.com/folderview?id=0B17B0rYH2zERU21sQnVweUZCUFk&amp;amp;usp=sharing  help guides]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=182086 New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=199542 Video Tutorial - Install Moodle on a Virtual Box from scratch] &lt;br /&gt;
&lt;br /&gt;
[[es:Instalaci%C3%B3n_de_moodle]]&lt;br /&gt;
[[de:Installation von Moodle]]&lt;br /&gt;
[[fr:Installation de Moodle]]&lt;br /&gt;
[[ja:Moodleのインストール]]&lt;/div&gt;</summary>
		<author><name>Drcuriosity</name></author>
	</entry>
</feed>