<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/test/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jaime</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/test/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jaime"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/Special:Contributions/Jaime"/>
	<updated>2026-07-19T07:13:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Installing_Moodle&amp;diff=31568</id>
		<title>Installing Moodle</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Installing_Moodle&amp;diff=31568"/>
		<updated>2008-01-24T13:35:34Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Reordered language links in alphabetical order&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Firstly don&#039;t panic! :-)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This guide explains how to install Moodle for the first time. For some of these steps it goes into a lot of detail to try and cover the majority of possible web server setups, so this page may look long and complicated. Don&#039;t panic, once you know how to do it you can install Moodle in minutes!&lt;br /&gt;
&lt;br /&gt;
If you have problems please read this page carefully - most common issues are answered in here. If you still have trouble, you can seek help from the Moodle community via  [http://moodle.org/course/view.php?id=5 moodle.org Using Moodle].&lt;br /&gt;
&lt;br /&gt;
Another option is to contact a [http://moodle.com/hosting/ Moodle Partner providing Moodle hosting] who can completely maintain Moodle for you, so that you can ignore all this and get straight into educating! A Moodle partner is the preferred option but if you decide to choose a hosting company that has cpanel then [http://otaru-jc.ac.jp/hagley/settingupmoodleonhostingwithcpanel.swf this tutorial will guide you]  through the process of choosing a host and setting up moodle via cpanel. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning:&#039;&#039;&#039; some hosting companies offer one-click moodle install options, which whilst sometimes effective, usually use old (sometimes years old) versions of moodle and sometimes simply don&#039;t work. If one of these goes wrong, your best bet is often to start from scratch following the instructions here yourself. Its almost certainly quicker.&lt;br /&gt;
&lt;br /&gt;
If you want to run Moodle on your own computer and this page looks a bit daunting, then please see our guides: [[Installing AMP |Installing Apache, MySQL and PHP(AMP)]] or [[Complete install packages| how to install one of Moodle&#039;s complete packages]]. They provide alternative instructions to install all this on most popular platforms.&lt;br /&gt;
==Table of Contents==&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
Moodle is primarily developed in Linux using [[Apache]], [[MySQL]] and [[PHP]] (also sometimes known as the LAMP platform), but is also regularly tested with Windows XP/2000/2003 (WAMP), Solaris 10 (Sparc and x64), Mac OS X and Netware 6 operating systems. Support for PostgreSQL, Oracle and Microsoft SQL Server is also available.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blank page problem while installing Moodle on Windows Vista may occured, follow these steps here [[Installing Moodle on Windows Vista]] might help.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note if you are using a hosted account&#039;&#039;&#039;: Most web hosts support all of these requirements by default. You should contact your web host&#039;s support desk to check that this is the case &#039;&#039;&#039;before&#039;&#039;&#039; signing-up with them. It is especially important to ask about any PHP memory limits or MySQL question limits. If your prospective host does not provide a service which meets these requirements, or you are already signed up with them, ask them why and consider taking your business elsewhere if they do not change.&lt;br /&gt;
&lt;br /&gt;
The requirements for Moodle are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware&#039;&#039;&#039; (unless you are using a hosted server). &lt;br /&gt;
* Disk space: 160MB free (min). You will require more free space to store your teaching materials.&lt;br /&gt;
* Memory: 256MB (min), 1GB (recommended). The general rule of thumb is that Moodle can support 50 &#039;&#039;concurrent&#039;&#039; users for every 1GB of RAM, but this will vary depending on your specific hardware and software combination. &lt;br /&gt;
&#039;&#039;&#039;Software&#039;&#039;&#039;&lt;br /&gt;
* Web server software. Most people use [[Apache]], but Moodle should work fine under any web server that supports [[PHP]], such as [[IIS]] on Windows platforms. PHP does impose requirements on versions of web servers, however these are complex and the general advice is to use the newest version possible of your chosen web server. &lt;br /&gt;
* PHP scripting language. (Please note that there have been issues installing Moodle with [http://www.php-accelerator.co.uk PHP-Accelerator]). There are currently two versions (or branches) of PHP available: PHP4 and PHP5 and the version requirements are listed below.&lt;br /&gt;
** For Moodle version 1.4 or later: PHP4 (version 4.1.0 or later) or PHP5 (version 5.1.0 or later) are supported.&lt;br /&gt;
** For Moodle version 1.6 or later: the PHP4 (version 4.3.0 or later) or PHP5 (version 5.1.0 or later) are supported. &lt;br /&gt;
** Future Moodle versions 2.0 or later will not support PHP4 and will require PHP5 (version 5.2.0 or later).&lt;br /&gt;
** PHP Settings&lt;br /&gt;
*** &#039;&#039;safe_mode&#039;&#039; needs to be OFF (check in your php.ini or Apache configuration file).&lt;br /&gt;
*** &#039;&#039;memory_limit&#039;&#039; should be at least 16M (32M is recommended for Moodle 1.7 and 40M for Moodle 1.8 or later). Large sites may need more than 128M. PHP 5.2.x requires higher memory_limit values than previous versions of PHP. 64bit operating systems require even more memory.&lt;br /&gt;
*** &#039;&#039;session.save_handler&#039;&#039; needs to be set to files. &lt;br /&gt;
** PHP Extensions and libraries&lt;br /&gt;
*** The mbstring extension is recommended for Moodle 1.6 or later.&lt;br /&gt;
*** The iconv extension is recommended for Moodle 1.6 or later.&lt;br /&gt;
*** [http://www.libgd.org/ GD library] and the [http://www.freetype.org/ FreeType 2] library and extensions are needed to be able to look at the dynamic graphs that the logs pages make.&lt;br /&gt;
*** The mysql extension is required if you are using the MySQL database. Note that in some Linux distributions (notably Red Hat) this is an optional installation.&lt;br /&gt;
*** The pgsql extension is required if you are using the PostgreSQL database.&lt;br /&gt;
*** The zlib extension is required for zip/unzip functionality.&lt;br /&gt;
*** The curl extension is recommended for Moodle 1.8 or later.&lt;br /&gt;
*** The tokenizer extension is recommended for Moodle 1.8 or later.&lt;br /&gt;
*** The curl and openssl extensions are required for the Moodle network functionality (Moodle 1.8 or later).&lt;br /&gt;
*** Other PHP extensions may be required to support optional Moodle functionality, especially external authentication and/or enrolment (e.g. LDAP extension for LDAP authentication and the sockets extension for Chat server).&lt;br /&gt;
* A working database server: [[MySQL]] or [[PostgreSQL]] are completely supported and recommended for use with any version of Moodle. Support for Microsoft SQL Server and Oracle has been added in Moodle 1.7. MySQL is &#039;&#039;the&#039;&#039; choice for many people because it is very popular, but there are some [[Arguments in favour of PostgreSQL|arguments in favour of PostgreSQL]], especially if you are planning a large deployment. &lt;br /&gt;
** For Moodle 1.5 or later, MySQL (version 3.23 or later) or PostgreSQL (7.4 or later). &lt;br /&gt;
** For Moodle 1.6 or later, MySQL (version 4.1.12 or later) or PostgreSQL (7.4 or later).&lt;br /&gt;
** For Moodle 1.7 or later, MySQL (version 4.1.12 or later), PostgreSQL (7.4 or later) or Microsoft SQL Server 2005 (version 9 or [http://moodle.org/mod/forum/discuss.php?d=59284 SQL Server Express 2005])&lt;br /&gt;
: MySQL Notes: For Moodle 1.6 or later, If you use latin languages only you can use MySQL 4.1.12. If you are using non-latin languages you require MySQL 4.1.16 or later. Currently the MySQL setting &amp;quot;strict mode&amp;quot; must be OFF (set to &amp;quot;&amp;quot; or &amp;quot;MYSQL40&amp;quot;) in the MySQL configuration file. &lt;br /&gt;
: PostgreSQL Notes: The minimum version of PostgreSQL is 7.4 and Moodle is widely used with 8.0 and 8.1.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== How many users? ==&lt;br /&gt;
&lt;br /&gt;
In addition to the hardware and software requirements, you will also need to think about the capacity of your Moodle installation in terms of the number of users it can handle. There are two numbers to plan for:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Browsing users&#039;&#039;&#039;: the maximum number of users able to browse your Moodle site. This is the number of computers in your organization or on your course (whichever is greater).&lt;br /&gt;
* &#039;&#039;&#039;Concurrent database users&#039;&#039;&#039;: the maximum number of concurrent database users (needed for Moodle activities such as quizzes). This is the number of users who will be using Moodle at the same time. In an educational institution, use your timetable/roster to obtain this figure.&lt;br /&gt;
&lt;br /&gt;
Once you know these figures for your users, you can start work out if your Moodle installation can support this capacity. The exact number of users depends on your hardware/software/network combination. Usually the amount of memory installed (RAM) is the deciding factor but a faster overall processor speed will also help in reducing waiting times for pages to load. &lt;br /&gt;
&lt;br /&gt;
The general rule of thumb for a single server is that the approx max concurrent users = RAM (GB) * 50 and the approx max browsing users = Approx max concurrent users * 5. As an example, a university with 500 total computers on campus and 100 concurrent users at any time will need approx 2GB of RAM on the one server to support the number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note if you are using a hosted account&#039;&#039;&#039;: Ask your provider what limits are placed on the number of concurrent database connections and the processor load. This will give a good estimate of the number of users your Moodle install can manage.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; As of August 31, 2007, the moodle 1.8.2+ codes are still not suitable for large installation, especially if you have large number (e.g. 20,000+) of courses. The main reason is the codes related to ROLES are still not fully optimized with database queries and still need some work. If you are planning to use 1.8.x codes for a larger institution, please make sure that you have sufficient time to do your own testing and performance profiling.&lt;br /&gt;
&lt;br /&gt;
[Update] This performance issue has been improved quite a bit in the most recent 1.8.3+ version (see this thread discussion: http://moodle.org/mod/forum/discuss.php?d=83281). However, you should still plan with caution if you are planning to use Moodle 1.8.x code base for larger installation.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Download and copy files into place ==&lt;br /&gt;
&lt;br /&gt;
There are two ways to get Moodle, either as a compressed package or via CVS. &lt;br /&gt;
* There are two types of compressed packages on the  [http://download.moodle.org/ download page: http://download.moodle.org/], the standard distribution with Moodle only files and the [[Complete install packages|complete install]], which contains programs to operate Moodle in a web environment.  &lt;br /&gt;
* To use CVS, helpful instructions are available at the [[CVS_for_Administrators | CVS for Administrators]] page. The full [http://cvs.moodle.org/moodle/ Moodle CVS repository] is also available for browsing. &lt;br /&gt;
&lt;br /&gt;
After downloading, unpack the archive using either &lt;br /&gt;
 tar -zxvf [filename]&lt;br /&gt;
or&lt;br /&gt;
 unzip [filename]&lt;br /&gt;
as appropriate. &lt;br /&gt;
&lt;br /&gt;
If using CVS, run the CVS Checkout command.&lt;br /&gt;
&lt;br /&gt;
You will now be left with a directory called &amp;quot;moodle&amp;quot;, containing a number of files and folders.&lt;br /&gt;
&lt;br /&gt;
You can either 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;.&lt;br /&gt;
&lt;br /&gt;
If you are downloading Moodle to your local computer and then uploading it to your web site, it is usually better to upload the whole archive as one file, and then do the unpacking on the server. Even web hosting interfaces like cPanel allow you to uncompress archives in the &amp;quot;File Manager&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Structure of moodle directory ===&lt;br /&gt;
&lt;br /&gt;
You can safely skip this section, but here is a quick summary of the contents of the Moodle folder, to help get you oriented:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;config.php&#039;&#039; - contains basic settings. This file does not come with Moodle - you will create it.&lt;br /&gt;
:&#039;&#039;install.php&#039;&#039; - the script you will run to create config.php&lt;br /&gt;
:&#039;&#039;version.php&#039;&#039; - defines the current version of Moodle code&lt;br /&gt;
:&#039;&#039;index.php&#039;&#039; - the front page of the site&lt;br /&gt;
:&#039;&#039;admin/&#039;&#039; - code to administrate the whole server&lt;br /&gt;
:&#039;&#039;auth/&#039;&#039; - plugin modules to authenticate users&lt;br /&gt;
:&#039;&#039;blocks/&#039;&#039; - plugin modules for the little side blocks on many pages&lt;br /&gt;
:&#039;&#039;calendar/&#039;&#039; - all the code for managing and displaying calendars&lt;br /&gt;
:&#039;&#039;course/&#039;&#039; - code to display and manage courses&lt;br /&gt;
:&#039;&#039;doc/&#039;&#039; - help documentation for Moodle (eg this page)&lt;br /&gt;
:&#039;&#039;files/&#039;&#039; - code to display and manage uploaded files&lt;br /&gt;
:&#039;&#039;lang/&#039;&#039; - texts in different languages, one directory per language&lt;br /&gt;
:&#039;&#039;lib/&#039;&#039; - libraries of core Moodle code&lt;br /&gt;
:&#039;&#039;login/&#039;&#039; - code to handle login and account creation&lt;br /&gt;
:&#039;&#039;mod/&#039;&#039; - all the main Moodle course modules are in here&lt;br /&gt;
:&#039;&#039;pix/&#039;&#039; - generic site graphics&lt;br /&gt;
:&#039;&#039;theme/&#039;&#039; - theme packs/skins to change the look of the site.&lt;br /&gt;
:&#039;&#039;user/&#039;&#039; - code to display and manage users&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Setting-up your system==&lt;br /&gt;
To ensure that Moodle will install successfully, you need to check that the web server settings are correct, then create a blank database for Moodle to use and finally create a directory on your hard disk for Moodle to save your materials and other files you upload into your courses.&lt;br /&gt;
&lt;br /&gt;
=== Check web server settings ===&lt;br /&gt;
&lt;br /&gt;
*Firstly, make sure that your web server is set up to use index.php as a default page (perhaps in addition to index.html, default.htm and so on). In Apache, this is done using a DirectoryIndex parameter in your httpd.conf file. Mine usually looks like this:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;DirectoryIndex&#039;&#039;&#039; index.php index.html index.htm&lt;br /&gt;
&lt;br /&gt;
:Just make sure index.php is in the list (and preferably towards the start of the list, for efficiency).&lt;br /&gt;
&lt;br /&gt;
*Secondly, &#039;&#039;&#039;if you are using Apache 2&#039;&#039;&#039;, then you should turn on the &#039;&#039;AcceptPathInfo&#039;&#039; variable, which allows scripts to be passed arguments like &amp;lt;nowiki&amp;gt;http://server/file.php/arg1/arg2&amp;lt;/nowiki&amp;gt;. This is essential to allow relative links between your resources, and also provides a performance boost for people using your Moodle web site. You can turn this on by adding these lines to your httpd.conf file.&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AcceptPathInfo&#039;&#039;&#039; on&lt;br /&gt;
&lt;br /&gt;
=== Check PHP settings ===&lt;br /&gt;
Moodle requires a number of PHP settings to be active for it to work. &#039;&#039;&#039;On most servers these will already be the default settings&#039;&#039;&#039;.  However, some PHP servers (and some of the more recent PHP versions) may have things set differently. These are defined in PHP&#039;s configuration file (usually called &#039;&#039;&#039;php.ini&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
 magic_quotes_gpc = 1    (preferred but not necessary)&lt;br /&gt;
 magic_quotes_runtime = 0    (necessary)&lt;br /&gt;
 file_uploads = 1&lt;br /&gt;
 session.auto_start = 0&lt;br /&gt;
 session.bug_compat_warn = 0&lt;br /&gt;
&lt;br /&gt;
:You may also want to set other, optional php.ini file settings while you are already editing it. For instance, you may want to reset the maximum upload size of file attachments, which usually defaults to 2M(egabytes). For instance, to set these to 16 Megabytes:&lt;br /&gt;
 &lt;br /&gt;
 post_max_size = 16M&lt;br /&gt;
 upload_max_filesize = 16M&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
=== Using a .htaccess file for webserver and PHP settings ===&lt;br /&gt;
&lt;br /&gt;
Use the above if you can directly edit your server&#039;s files, but if you are setting-up Moodle on a webhost, or don&#039;t have access to &#039;&#039;&#039;httpd.conf&#039;&#039;&#039; or &#039;&#039;&#039;php.ini&#039;&#039;&#039; on your server, or you have Moodle on a server with other applications that require different settings, then don&#039;t worry, you can often still override the default settings. This only works on Apache servers and only when Overrides have been allowed in the main Apache configuration.&lt;br /&gt;
&lt;br /&gt;
* Create a file called &#039;&#039;&#039;.htaccess&#039;&#039;&#039; in Moodle&#039;s main directory that contains lines like the following. &lt;br /&gt;
&lt;br /&gt;
 DirectoryIndex index.php index.html index.htm&lt;br /&gt;
 php_flag magic_quotes_gpc 1&lt;br /&gt;
 php_flag magic_quotes_runtime 0&lt;br /&gt;
 php_flag file_uploads 1&lt;br /&gt;
 php_flag session.auto_start 0&lt;br /&gt;
 php_flag session.bug_compat_warn 0&lt;br /&gt;
&lt;br /&gt;
:If you have Apache version 2 installed, add these lines:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfDefine APACHE2&amp;gt;&lt;br /&gt;
     AcceptPathInfo on&lt;br /&gt;
 &amp;lt;/IfDefine&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Otherwise add this single line:&lt;br /&gt;
&lt;br /&gt;
 AcceptPathInfo on&lt;br /&gt;
&lt;br /&gt;
* Optionally, you can also do things like define the maximum size for uploaded files, etc by adding these lines:&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 0&lt;br /&gt;
 php_value upload_max_filesize 2M&lt;br /&gt;
 php_value post_max_size 2M&lt;br /&gt;
     &lt;br /&gt;
* The easiest thing to do is just copy the sample file from lib/htaccess and edit it to suit your needs. It contains further instructions. For example, in a Unix shell:&lt;br /&gt;
&lt;br /&gt;
 cp lib/htaccess .htaccess&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Use a .htaccess file only [http://httpd.apache.org/docs/1.3/howto/htaccess.html#when as a last resort] as it can have an impact on the performance of your Moodle site and cause pages to load slowly on your browser.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
=== Creating an empty database ===&lt;br /&gt;
&lt;br /&gt;
You need to create an empty database (eg &amp;quot;&#039;&#039;moodle&#039;&#039;&amp;quot;) in your database system along with a special user (eg &amp;quot;moodleuser&amp;quot;) that has access to that database (and that database only). You could use the &amp;quot;root&amp;quot; user if you wanted to for a test server, but this is not recommended for a production system: if hackers manage to discover the password then your whole database system would be at risk, rather than just one database.&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Warning&#039;&#039;&#039;: Bear in mind that, as of Moodle version 1.5.x, Moodle doesn&#039;t work with MySQL 5.x&#039;s strict mode setting (STRICT_TRANS_TABLES and/or STRICT_ALL_TABLES) -- see [http://moodle.org/mod/forum/discuss.php?d=58552 forum discussion]. So if you are using MySQL 5.x, edit MySQL&#039;s configuration file (called &amp;quot;my.ini&amp;quot; in Windows and &amp;quot;my.cnf&amp;quot; on Unix/Linux) and comment out that option or set it to &amp;lt;code&amp;gt;sql-mode=&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. You have to restart MySQL after changing this setting. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; If you do not have access to your server, use PHPMyAdmin (or another MySQL client) and enter the command &amp;lt;code&amp;gt;SET @@global.sql_mode=&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;;&amp;lt;/code&amp;gt; (be sure to use single quotes, and don&#039;t forget the semicolon).&lt;br /&gt;
&lt;br /&gt;
====Using a hosted server====&lt;br /&gt;
If you are using a webhost, they will probably have a control panel web interface for you to create your database.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;[http://www.cpanel.com/ cPanel]&#039;&#039;&#039; system is one of the most popular of these. To create a database in cPanel,&lt;br /&gt;
&lt;br /&gt;
# Click on the &amp;quot;&#039;&#039;&#039;MySQL Databases&#039;&#039;&#039;&amp;quot; icon.&lt;br /&gt;
# Type &amp;quot;moodle&amp;quot; in the database field and click &amp;quot;&#039;&#039;&#039;Add Database&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
# Type a username and password (not one you use elsewhere) in the respective fields and click &amp;quot;&#039;&#039;&#039;Add User&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
# Now use the &amp;quot;&#039;&#039;&#039;Add User to Database&#039;&#039;&#039;&amp;quot; button to give this new user account &amp;quot;&#039;&#039;&#039;ALL&#039;&#039;&#039;&amp;quot; rights to the new database.&lt;br /&gt;
# Note that the username and database names may be prefixed by your cPanel account name. When entering this information into the Moodle installer - use the full names.&lt;br /&gt;
&lt;br /&gt;
====Using the command line====&lt;br /&gt;
&lt;br /&gt;
If you have access to Unix or Windows command lines then you can do the same sort of thing by typing commands. You should do this using the MySQL Client program as follows (commands which you type-in are shown in bold):&lt;br /&gt;
&lt;br /&gt;
- Start the MySQL Client program:&lt;br /&gt;
 #&#039;&#039;&#039;mysql -u root -p&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
 Your MySQL connection id is 2 to server version: 5.0.22-log&lt;br /&gt;
 &lt;br /&gt;
 Type &#039;help;&#039; or &#039;\h&#039; for help. Type &#039;\c&#039; to clear the buffer.&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- The prompt changes to &amp;quot;mysql&amp;gt;&amp;quot; to indicate that you are now working in the MySQL Client program. When working in MySQL, all commands which you type-in must end in a semi-colon. (If you hit the Enter key without the final semi-colon, you&#039;ll get the line continuation symbol &#039;-&amp;gt;&#039;; this is your second chance to type the semi-colon and hit Enter.) &lt;br /&gt;
&lt;br /&gt;
- Begin by checking for any existing databases called &amp;quot;moodle&amp;quot; - if there are any you should change the name in all the commands which follow:&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;SHOW DATABASES;&#039;&#039;&#039;&lt;br /&gt;
 +-------------------------+&lt;br /&gt;
 | Database                |&lt;br /&gt;
 +-------------------------+&lt;br /&gt;
 | information_schema      |&lt;br /&gt;
 | mysql                   |&lt;br /&gt;
 | test                    |&lt;br /&gt;
 +-------------------------+&lt;br /&gt;
 3 rows in set (0.03 sec)&lt;br /&gt;
&lt;br /&gt;
- Create a database to store the Moodle tables. We&#039;ll call this &amp;quot;moodle&amp;quot;, as there are none with that name already in the above list, but change it if you need to.&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;CREATE DATABASE moodle;&#039;&#039;&#039;&lt;br /&gt;
 Query OK, 1 row affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
- Change the default character set and collation of the &amp;quot;moodle&amp;quot; database to UTF8. Leave this out if you are installing Moodle 1.5 or earlier):&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;ALTER DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&#039;&#039;&#039;&lt;br /&gt;
 Query OK, 1 row affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
- Create a username and password to access the database &amp;quot;moodle&amp;quot; and grant database access permissions. We&#039;ll call the user &amp;quot;moodleuser&amp;quot; and set the password as &amp;quot;yourpassword&amp;quot;. It&#039;s a good idea to change these for your installation however most people keep the username as &amp;quot;moodleuser&amp;quot;. Remember the username and password you have set, as you&#039;ll need it in the configuration screens later. This is a long command so has been split over several lines by pressing the Return key.&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,&#039;&#039;&#039;&lt;br /&gt;
     -&amp;gt; &#039;&#039;&#039;DROP,INDEX,ALTER ON moodle.*&#039;&#039;&#039;&lt;br /&gt;
     -&amp;gt; &#039;&#039;&#039;TO moodleuser@localhost IDENTIFIED BY &#039;yourpassword&#039;;&#039;&#039;&#039;&lt;br /&gt;
 Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Security Warnings&#039;&#039;&#039;: Never leave the password as the one shown here. Make sure you have a strong password (a mixture of letters and numbers, upper and lower case). Avoid granting &amp;quot;ALL&amp;quot; permissions on the database.&lt;br /&gt;
: &#039;&#039;&#039;Note&#039;&#039;&#039;: For MySQL 4.0.1 or earlier, you don&#039;t need the CREATE TEMPORARY TABLES permission. &lt;br /&gt;
&lt;br /&gt;
- Exit the MySQL Client program:&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;QUIT&#039;&#039;&#039;&lt;br /&gt;
 Bye&lt;br /&gt;
 #&lt;br /&gt;
&lt;br /&gt;
- Reload the grant tables using the mysqladmin program:&lt;br /&gt;
 #&#039;&#039;&#039;mysqladmin -u root -p reload&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 #&lt;br /&gt;
&lt;br /&gt;
And some example command lines for PostgreSQL:&lt;br /&gt;
&lt;br /&gt;
   # su - postgres&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;create user moodleuser createdb;&amp;quot; template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;create database moodle &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;with encoding &#039;unicode&#039;&amp;lt;/font&amp;gt;;&amp;quot; -U moodleuser template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;alter user moodleuser nocreatedb;&amp;quot; template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;alter user moodleuser with encrypted password &#039;yourpassword&#039;;&amp;quot; template1&lt;br /&gt;
   &amp;gt; su - root&lt;br /&gt;
   # /etc/init.d/postgresql reload&lt;br /&gt;
&lt;br /&gt;
If the Postgres create database command above (&amp;gt;psql -c &amp;quot;create database moodle...&amp;quot;) gives an error message you may want to try:&lt;br /&gt;
 psql -c &amp;quot;create database moodle with template=template1 encoding = &#039;unicode&#039; owner =  moodleuser &amp;lt;br&amp;gt;     location = &#039;/var/mydata&#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If the create database command asks you for a password, run the line containing &#039;encrypted password&#039; first before proceeding.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;:&lt;br /&gt;
* Step-by-step instructions on  [https://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu installation for Ubuntu(Debian)]&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
=== Creating the data directory (moodledata) ===&lt;br /&gt;
&lt;br /&gt;
Moodle will also need some space on your server&#039;s hard disk to store uploaded files, such as course documents and user pictures. The Moodle installer tries hard to create this directory for you but if it fails then you will have to create a directory for this purpose manually.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Security warning&#039;&#039;&#039;: For security purposes, it&#039;s best that this directory is NOT accessible directly via the web. The easiest way to do this is to simply locate it OUTSIDE the web directory, but if you must have it in the web directory (and you are using Apache) then protect it by creating a file in the data directory called &#039;&#039;&#039;.htaccess&#039;&#039;&#039;, containing these lines:&lt;br /&gt;
&lt;br /&gt;
 order deny,allow&lt;br /&gt;
 deny from all&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ownership &amp;amp; Permissions&#039;&#039;&#039;: To make sure that Moodle can save uploaded files in this directory, check that the web server software has permission to read, write and execute in this directory. On Unix machines, this means setting the owner of the directory to be something like &amp;quot;nobody&amp;quot; or &amp;quot;apache&amp;quot;, and then giving that user read, write and execute permissions. As an example, to change the owner to &amp;quot;nobody&amp;quot; you could use:&lt;br /&gt;
&lt;br /&gt;
 chown -R nobody:apache moodledata&lt;br /&gt;
&lt;br /&gt;
To change the permissions so that the owner has read,write and execute permissions, use something like this:&lt;br /&gt;
&lt;br /&gt;
 chmod -R 0770 moodledata&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If you are receiving permission denied messages, try &#039;&#039;chmod -R 0770 moodledata&#039;&#039; and then adjust the settings so that they are more secure. A more secure setting is &#039;&#039;chmod -R 0750 moodledata&#039;&#039;. According to the comments in config-dist.php, &amp;quot;On hosting systems you might need to make sure that your group has no permissions at all while others have full permissions.&amp;quot; To do this you could use &#039;&#039;chmod -R 707 moodledata&#039;&#039;. See also the [[Security | security page]].&lt;br /&gt;
&lt;br /&gt;
Remember that by default moodle will issue a warning about moodle data directories created inside the web directory, but otherwise this directory can be located where you wish. You can later move or change the location of this directory, but if you do, be sure to edit the setting in the &#039;&#039;&#039;config.php&#039;&#039;&#039; file that sets this; e.g. if moodledata is under a directory called data, then it would look like this:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;dataroot  = &#039;/data/moodledata&#039;;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CPanel and webhosts&#039;&#039;&#039;: On cPanel systems you can use the &amp;quot;File Manager&amp;quot; to find the folder, click on it, then choose &amp;quot;Change Permissions&amp;quot;. On many shared hosting servers, you will probably need to restrict all file access to your &amp;quot;group&amp;quot; (to prevent other webhost customers from looking at or changing your files), but provide full read/write access to everyone else (which will allow the web server to access your files). Speak to your server administrator if you are having trouble setting this up securely. In particular it will not be possible to create a usable data directory on sites that use a PHP feature known as &amp;quot;&#039;&#039;&#039;Safe Mode&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Run the installer script to create config.php ==&lt;br /&gt;
&lt;br /&gt;
To run the installer script (install.php), just try to access your Moodle main URL using a web browser, or access &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://yourserver/install.php&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; directly.&lt;br /&gt;
&lt;br /&gt;
(The Installer will try to set a session cookie. If you get a popup warning in your browser make sure you accept that cookie!)&lt;br /&gt;
&lt;br /&gt;
Moodle will detect that configuration is necessary and will lead you through some screens to help you create a new configuration file called &#039;&#039;&#039;config.php&#039;&#039;&#039;. At the end of the process Moodle will try and write the file into the right location, otherwise you can press a button to download it from the installer and then upload &#039;&#039;&#039;config.php&#039;&#039;&#039; into the main Moodle directory on the server.&lt;br /&gt;
&lt;br /&gt;
Along the way the installer will test your server environment and give you suggestions about how to fix any problems. For most common issues these suggestions should be sufficient, but if you get stuck, check in the Installation Forum for more help.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Go to the admin page to continue configuration ==&lt;br /&gt;
&lt;br /&gt;
Once the basic config.php has been correctly created in the previous step, trying to access the front page of your site will take you to the &amp;quot;admin&amp;quot; page for the rest of the configuration.&lt;br /&gt;
&lt;br /&gt;
The first time you access this admin page, you will be presented with a GPL &amp;quot;shrink wrap&amp;quot; agreement with which you must agree before you can continue with the setup.&lt;br /&gt;
&lt;br /&gt;
Now Moodle will start setting up your database and creating tables to store data. Firstly, the main database tables are created. You should see a number of SQL statements followed by status messages that look like this:&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE course (&lt;br /&gt;
    id int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
    category int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    password varchar(50) NOT NULL default &amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;,&lt;br /&gt;
    fullname varchar(254) NOT NULL default &amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;,&lt;br /&gt;
    shortname varchar(15) NOT NULL default &amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;,&lt;br /&gt;
    summary text NOT NULL,&lt;br /&gt;
    format tinyint(4) NOT NULL default &#039;1&#039;,&lt;br /&gt;
    teacher varchar(100) NOT NULL default &#039;Teacher&#039;,&lt;br /&gt;
    startdate int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    enddate int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    timemodified int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    PRIMARY KEY (id)&lt;br /&gt;
 ) TYPE=MyISAM;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;SUCCESS&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...and so on, followed by: &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Main databases set up successfully.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t see these, then there must have been some problem with the database or the configuration settings you defined in config.php. Check that PHP isn&#039;t in a restricted &amp;quot;Safe Mode&amp;quot; (commercial web hosts sometimes have safe mode turned on). You can check PHP variables by creating a little file containing &#039;&#039;&#039;&amp;lt;?php phpinfo() ?&amp;gt;&#039;&#039;&#039; and looking at it through a browser. Check all these and try this page again.&lt;br /&gt;
&lt;br /&gt;
Scroll down the very bottom of the page and press the &amp;quot;Continue&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
You should now see a form where you can define more configuration variables for your installation, such as the default language, SMTP hosts and so on. Don&#039;t worry too much about getting everything right just now - you can always come back and edit these later on using the admin interface. The defaults are designed to be useful and secure for most sites. Scroll down to the bottom and click &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If (and only if) you find yourself getting stuck on this page, unable to continue, then your server probably has what I call the &amp;quot;buggy referrer&amp;quot; problem. This is easy to fix: just turn off the &amp;quot;secureforms&amp;quot; setting, then try to continue again.&lt;br /&gt;
&lt;br /&gt;
Next you will see more pages that print lots of status messages as they set up all the tables required by the various Moodle module. As before, they should all be &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;green&amp;lt;/font&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Scroll down the very bottom of the page and press the &amp;quot;Continue&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
The next page is a form where you can define parameters for your Moodle site and the front page, such as the name, format, description and so on. Fill this out (you can always come back and change these later) and then press &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Finally, you will then be asked to create a top-level administration user for future access to the admin pages. Fill out the details with your own name, email etc and then click &amp;quot;Save changes&amp;quot;. Not all the fields are required, but if you miss any important fields you&#039;ll be re-prompted for them.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Make sure you remember the username and password you chose for the administration user account, as they will be necessary to access the administration page in future.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
(If for any reason your install is interrupted, or there is a system error of some kind that prevents you from logging in using the admin account, you can usually log in using the default username of &amp;quot;&#039;&#039;&#039;admin&#039;&#039;&#039;&amp;quot;, with password &amp;quot;&#039;&#039;&#039;admin&#039;&#039;&#039;&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
Once successful, you will be returned to the home page of your new site! Note the administration links that appear down the left hand side of the page (these items also appear on a separate Admin page) - these items are only visible to you because you are logged in as the admin user. All your further administration of Moodle can now be done using this menu, such as:&lt;br /&gt;
&lt;br /&gt;
* creating and deleting courses&lt;br /&gt;
* creating and editing user accounts&lt;br /&gt;
* administering teacher accounts&lt;br /&gt;
* changing site-wide settings like themes etc&lt;br /&gt;
&lt;br /&gt;
But you are not done installing yet! There is one very important thing still to do (see the next section on cron).&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Set up cron ==&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[Cron|Cron instructions]].&lt;br /&gt;
&lt;br /&gt;
== Set up backups ==&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[Backup settings| backup instructions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Create a new course ==&lt;br /&gt;
&lt;br /&gt;
Now that Moodle is running properly, you can try creating a new course to play with.&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Create a new course&amp;quot; from the Admin page (or the admin links on the home page).&lt;br /&gt;
&lt;br /&gt;
Fill out the form, paying special attention to the course format. You don&#039;t have to worry about the details too much at this stage, as everything can be changed later by the teacher. Note that the yellow help icons are everywhere to provide contextual help on any aspect.&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Save changes&amp;quot;, and you will be taken to a new form where you can assign teachers to the course. You can only add existing user accounts from this form - if you want to create a new teacher account then either ask the teacher to create one for themselves (see the login page), or create one for them using the &amp;quot;Add a new user&amp;quot; on the Admin page.&lt;br /&gt;
&lt;br /&gt;
Once done, the course is ready to customize, and is accessible via the &amp;quot;Courses&amp;quot; link on the home page.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Installation FAQ]]&lt;br /&gt;
*[[Complete install packages]] might be an easier first time installs on some systems&lt;br /&gt;
* [[Installing Apache, MySQL and PHP]] - Open source programs that can run Moodle on the web or on a desktop&lt;br /&gt;
* [[Upgrading Moodle]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=42688 Selecting a web host for Moodle] forum discussion&lt;br /&gt;
* [[masquerading|Masquerading]] - Running Moodle behind a masquerading/NAT firewall&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
[[cs:Instalace]]&lt;br /&gt;
[[de:Installieren von Moodle]]&lt;br /&gt;
[[es:Instalación de moodle]]&lt;br /&gt;
[[fr:Installation de Moodle]]&lt;br /&gt;
[[ja:Moodleのインストール]]&lt;br /&gt;
[[nl:Installatiegids]]&lt;br /&gt;
[[pl:Instalacja Moodle]]&lt;br /&gt;
[[pt:Instalação do Moodle]]&lt;br /&gt;
[[ru:Установка Moodle]]&lt;br /&gt;
[[sk:Inštalácia]]&lt;br /&gt;
[[zh:安装Moodlezh:]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Installing_Moodle&amp;diff=31567</id>
		<title>Installing Moodle</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Installing_Moodle&amp;diff=31567"/>
		<updated>2008-01-24T13:34:23Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Firstly don&#039;t panic! :-)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This guide explains how to install Moodle for the first time. For some of these steps it goes into a lot of detail to try and cover the majority of possible web server setups, so this page may look long and complicated. Don&#039;t panic, once you know how to do it you can install Moodle in minutes!&lt;br /&gt;
&lt;br /&gt;
If you have problems please read this page carefully - most common issues are answered in here. If you still have trouble, you can seek help from the Moodle community via  [http://moodle.org/course/view.php?id=5 moodle.org Using Moodle].&lt;br /&gt;
&lt;br /&gt;
Another option is to contact a [http://moodle.com/hosting/ Moodle Partner providing Moodle hosting] who can completely maintain Moodle for you, so that you can ignore all this and get straight into educating! A Moodle partner is the preferred option but if you decide to choose a hosting company that has cpanel then [http://otaru-jc.ac.jp/hagley/settingupmoodleonhostingwithcpanel.swf this tutorial will guide you]  through the process of choosing a host and setting up moodle via cpanel. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning:&#039;&#039;&#039; some hosting companies offer one-click moodle install options, which whilst sometimes effective, usually use old (sometimes years old) versions of moodle and sometimes simply don&#039;t work. If one of these goes wrong, your best bet is often to start from scratch following the instructions here yourself. Its almost certainly quicker.&lt;br /&gt;
&lt;br /&gt;
If you want to run Moodle on your own computer and this page looks a bit daunting, then please see our guides: [[Installing AMP |Installing Apache, MySQL and PHP(AMP)]] or [[Complete install packages| how to install one of Moodle&#039;s complete packages]]. They provide alternative instructions to install all this on most popular platforms.&lt;br /&gt;
==Table of Contents==&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
Moodle is primarily developed in Linux using [[Apache]], [[MySQL]] and [[PHP]] (also sometimes known as the LAMP platform), but is also regularly tested with Windows XP/2000/2003 (WAMP), Solaris 10 (Sparc and x64), Mac OS X and Netware 6 operating systems. Support for PostgreSQL, Oracle and Microsoft SQL Server is also available.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blank page problem while installing Moodle on Windows Vista may occured, follow these steps here [[Installing Moodle on Windows Vista]] might help.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note if you are using a hosted account&#039;&#039;&#039;: Most web hosts support all of these requirements by default. You should contact your web host&#039;s support desk to check that this is the case &#039;&#039;&#039;before&#039;&#039;&#039; signing-up with them. It is especially important to ask about any PHP memory limits or MySQL question limits. If your prospective host does not provide a service which meets these requirements, or you are already signed up with them, ask them why and consider taking your business elsewhere if they do not change.&lt;br /&gt;
&lt;br /&gt;
The requirements for Moodle are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hardware&#039;&#039;&#039; (unless you are using a hosted server). &lt;br /&gt;
* Disk space: 160MB free (min). You will require more free space to store your teaching materials.&lt;br /&gt;
* Memory: 256MB (min), 1GB (recommended). The general rule of thumb is that Moodle can support 50 &#039;&#039;concurrent&#039;&#039; users for every 1GB of RAM, but this will vary depending on your specific hardware and software combination. &lt;br /&gt;
&#039;&#039;&#039;Software&#039;&#039;&#039;&lt;br /&gt;
* Web server software. Most people use [[Apache]], but Moodle should work fine under any web server that supports [[PHP]], such as [[IIS]] on Windows platforms. PHP does impose requirements on versions of web servers, however these are complex and the general advice is to use the newest version possible of your chosen web server. &lt;br /&gt;
* PHP scripting language. (Please note that there have been issues installing Moodle with [http://www.php-accelerator.co.uk PHP-Accelerator]). There are currently two versions (or branches) of PHP available: PHP4 and PHP5 and the version requirements are listed below.&lt;br /&gt;
** For Moodle version 1.4 or later: PHP4 (version 4.1.0 or later) or PHP5 (version 5.1.0 or later) are supported.&lt;br /&gt;
** For Moodle version 1.6 or later: the PHP4 (version 4.3.0 or later) or PHP5 (version 5.1.0 or later) are supported. &lt;br /&gt;
** Future Moodle versions 2.0 or later will not support PHP4 and will require PHP5 (version 5.2.0 or later).&lt;br /&gt;
** PHP Settings&lt;br /&gt;
*** &#039;&#039;safe_mode&#039;&#039; needs to be OFF (check in your php.ini or Apache configuration file).&lt;br /&gt;
*** &#039;&#039;memory_limit&#039;&#039; should be at least 16M (32M is recommended for Moodle 1.7 and 40M for Moodle 1.8 or later). Large sites may need more than 128M. PHP 5.2.x requires higher memory_limit values than previous versions of PHP. 64bit operating systems require even more memory.&lt;br /&gt;
*** &#039;&#039;session.save_handler&#039;&#039; needs to be set to files. &lt;br /&gt;
** PHP Extensions and libraries&lt;br /&gt;
*** The mbstring extension is recommended for Moodle 1.6 or later.&lt;br /&gt;
*** The iconv extension is recommended for Moodle 1.6 or later.&lt;br /&gt;
*** [http://www.libgd.org/ GD library] and the [http://www.freetype.org/ FreeType 2] library and extensions are needed to be able to look at the dynamic graphs that the logs pages make.&lt;br /&gt;
*** The mysql extension is required if you are using the MySQL database. Note that in some Linux distributions (notably Red Hat) this is an optional installation.&lt;br /&gt;
*** The pgsql extension is required if you are using the PostgreSQL database.&lt;br /&gt;
*** The zlib extension is required for zip/unzip functionality.&lt;br /&gt;
*** The curl extension is recommended for Moodle 1.8 or later.&lt;br /&gt;
*** The tokenizer extension is recommended for Moodle 1.8 or later.&lt;br /&gt;
*** The curl and openssl extensions are required for the Moodle network functionality (Moodle 1.8 or later).&lt;br /&gt;
*** Other PHP extensions may be required to support optional Moodle functionality, especially external authentication and/or enrolment (e.g. LDAP extension for LDAP authentication and the sockets extension for Chat server).&lt;br /&gt;
* A working database server: [[MySQL]] or [[PostgreSQL]] are completely supported and recommended for use with any version of Moodle. Support for Microsoft SQL Server and Oracle has been added in Moodle 1.7. MySQL is &#039;&#039;the&#039;&#039; choice for many people because it is very popular, but there are some [[Arguments in favour of PostgreSQL|arguments in favour of PostgreSQL]], especially if you are planning a large deployment. &lt;br /&gt;
** For Moodle 1.5 or later, MySQL (version 3.23 or later) or PostgreSQL (7.4 or later). &lt;br /&gt;
** For Moodle 1.6 or later, MySQL (version 4.1.12 or later) or PostgreSQL (7.4 or later).&lt;br /&gt;
** For Moodle 1.7 or later, MySQL (version 4.1.12 or later), PostgreSQL (7.4 or later) or Microsoft SQL Server 2005 (version 9 or [http://moodle.org/mod/forum/discuss.php?d=59284 SQL Server Express 2005])&lt;br /&gt;
: MySQL Notes: For Moodle 1.6 or later, If you use latin languages only you can use MySQL 4.1.12. If you are using non-latin languages you require MySQL 4.1.16 or later. Currently the MySQL setting &amp;quot;strict mode&amp;quot; must be OFF (set to &amp;quot;&amp;quot; or &amp;quot;MYSQL40&amp;quot;) in the MySQL configuration file. &lt;br /&gt;
: PostgreSQL Notes: The minimum version of PostgreSQL is 7.4 and Moodle is widely used with 8.0 and 8.1.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== How many users? ==&lt;br /&gt;
&lt;br /&gt;
In addition to the hardware and software requirements, you will also need to think about the capacity of your Moodle installation in terms of the number of users it can handle. There are two numbers to plan for:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Browsing users&#039;&#039;&#039;: the maximum number of users able to browse your Moodle site. This is the number of computers in your organization or on your course (whichever is greater).&lt;br /&gt;
* &#039;&#039;&#039;Concurrent database users&#039;&#039;&#039;: the maximum number of concurrent database users (needed for Moodle activities such as quizzes). This is the number of users who will be using Moodle at the same time. In an educational institution, use your timetable/roster to obtain this figure.&lt;br /&gt;
&lt;br /&gt;
Once you know these figures for your users, you can start work out if your Moodle installation can support this capacity. The exact number of users depends on your hardware/software/network combination. Usually the amount of memory installed (RAM) is the deciding factor but a faster overall processor speed will also help in reducing waiting times for pages to load. &lt;br /&gt;
&lt;br /&gt;
The general rule of thumb for a single server is that the approx max concurrent users = RAM (GB) * 50 and the approx max browsing users = Approx max concurrent users * 5. As an example, a university with 500 total computers on campus and 100 concurrent users at any time will need approx 2GB of RAM on the one server to support the number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note if you are using a hosted account&#039;&#039;&#039;: Ask your provider what limits are placed on the number of concurrent database connections and the processor load. This will give a good estimate of the number of users your Moodle install can manage.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; As of August 31, 2007, the moodle 1.8.2+ codes are still not suitable for large installation, especially if you have large number (e.g. 20,000+) of courses. The main reason is the codes related to ROLES are still not fully optimized with database queries and still need some work. If you are planning to use 1.8.x codes for a larger institution, please make sure that you have sufficient time to do your own testing and performance profiling.&lt;br /&gt;
&lt;br /&gt;
[Update] This performance issue has been improved quite a bit in the most recent 1.8.3+ version (see this thread discussion: http://moodle.org/mod/forum/discuss.php?d=83281). However, you should still plan with caution if you are planning to use Moodle 1.8.x code base for larger installation.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Download and copy files into place ==&lt;br /&gt;
&lt;br /&gt;
There are two ways to get Moodle, either as a compressed package or via CVS. &lt;br /&gt;
* There are two types of compressed packages on the  [http://download.moodle.org/ download page: http://download.moodle.org/], the standard distribution with Moodle only files and the [[Complete install packages|complete install]], which contains programs to operate Moodle in a web environment.  &lt;br /&gt;
* To use CVS, helpful instructions are available at the [[CVS_for_Administrators | CVS for Administrators]] page. The full [http://cvs.moodle.org/moodle/ Moodle CVS repository] is also available for browsing. &lt;br /&gt;
&lt;br /&gt;
After downloading, unpack the archive using either &lt;br /&gt;
 tar -zxvf [filename]&lt;br /&gt;
or&lt;br /&gt;
 unzip [filename]&lt;br /&gt;
as appropriate. &lt;br /&gt;
&lt;br /&gt;
If using CVS, run the CVS Checkout command.&lt;br /&gt;
&lt;br /&gt;
You will now be left with a directory called &amp;quot;moodle&amp;quot;, containing a number of files and folders.&lt;br /&gt;
&lt;br /&gt;
You can either 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;.&lt;br /&gt;
&lt;br /&gt;
If you are downloading Moodle to your local computer and then uploading it to your web site, it is usually better to upload the whole archive as one file, and then do the unpacking on the server. Even web hosting interfaces like cPanel allow you to uncompress archives in the &amp;quot;File Manager&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Structure of moodle directory ===&lt;br /&gt;
&lt;br /&gt;
You can safely skip this section, but here is a quick summary of the contents of the Moodle folder, to help get you oriented:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;config.php&#039;&#039; - contains basic settings. This file does not come with Moodle - you will create it.&lt;br /&gt;
:&#039;&#039;install.php&#039;&#039; - the script you will run to create config.php&lt;br /&gt;
:&#039;&#039;version.php&#039;&#039; - defines the current version of Moodle code&lt;br /&gt;
:&#039;&#039;index.php&#039;&#039; - the front page of the site&lt;br /&gt;
:&#039;&#039;admin/&#039;&#039; - code to administrate the whole server&lt;br /&gt;
:&#039;&#039;auth/&#039;&#039; - plugin modules to authenticate users&lt;br /&gt;
:&#039;&#039;blocks/&#039;&#039; - plugin modules for the little side blocks on many pages&lt;br /&gt;
:&#039;&#039;calendar/&#039;&#039; - all the code for managing and displaying calendars&lt;br /&gt;
:&#039;&#039;course/&#039;&#039; - code to display and manage courses&lt;br /&gt;
:&#039;&#039;doc/&#039;&#039; - help documentation for Moodle (eg this page)&lt;br /&gt;
:&#039;&#039;files/&#039;&#039; - code to display and manage uploaded files&lt;br /&gt;
:&#039;&#039;lang/&#039;&#039; - texts in different languages, one directory per language&lt;br /&gt;
:&#039;&#039;lib/&#039;&#039; - libraries of core Moodle code&lt;br /&gt;
:&#039;&#039;login/&#039;&#039; - code to handle login and account creation&lt;br /&gt;
:&#039;&#039;mod/&#039;&#039; - all the main Moodle course modules are in here&lt;br /&gt;
:&#039;&#039;pix/&#039;&#039; - generic site graphics&lt;br /&gt;
:&#039;&#039;theme/&#039;&#039; - theme packs/skins to change the look of the site.&lt;br /&gt;
:&#039;&#039;user/&#039;&#039; - code to display and manage users&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Setting-up your system==&lt;br /&gt;
To ensure that Moodle will install successfully, you need to check that the web server settings are correct, then create a blank database for Moodle to use and finally create a directory on your hard disk for Moodle to save your materials and other files you upload into your courses.&lt;br /&gt;
&lt;br /&gt;
=== Check web server settings ===&lt;br /&gt;
&lt;br /&gt;
*Firstly, make sure that your web server is set up to use index.php as a default page (perhaps in addition to index.html, default.htm and so on). In Apache, this is done using a DirectoryIndex parameter in your httpd.conf file. Mine usually looks like this:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;DirectoryIndex&#039;&#039;&#039; index.php index.html index.htm&lt;br /&gt;
&lt;br /&gt;
:Just make sure index.php is in the list (and preferably towards the start of the list, for efficiency).&lt;br /&gt;
&lt;br /&gt;
*Secondly, &#039;&#039;&#039;if you are using Apache 2&#039;&#039;&#039;, then you should turn on the &#039;&#039;AcceptPathInfo&#039;&#039; variable, which allows scripts to be passed arguments like &amp;lt;nowiki&amp;gt;http://server/file.php/arg1/arg2&amp;lt;/nowiki&amp;gt;. This is essential to allow relative links between your resources, and also provides a performance boost for people using your Moodle web site. You can turn this on by adding these lines to your httpd.conf file.&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AcceptPathInfo&#039;&#039;&#039; on&lt;br /&gt;
&lt;br /&gt;
=== Check PHP settings ===&lt;br /&gt;
Moodle requires a number of PHP settings to be active for it to work. &#039;&#039;&#039;On most servers these will already be the default settings&#039;&#039;&#039;.  However, some PHP servers (and some of the more recent PHP versions) may have things set differently. These are defined in PHP&#039;s configuration file (usually called &#039;&#039;&#039;php.ini&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
 magic_quotes_gpc = 1    (preferred but not necessary)&lt;br /&gt;
 magic_quotes_runtime = 0    (necessary)&lt;br /&gt;
 file_uploads = 1&lt;br /&gt;
 session.auto_start = 0&lt;br /&gt;
 session.bug_compat_warn = 0&lt;br /&gt;
&lt;br /&gt;
:You may also want to set other, optional php.ini file settings while you are already editing it. For instance, you may want to reset the maximum upload size of file attachments, which usually defaults to 2M(egabytes). For instance, to set these to 16 Megabytes:&lt;br /&gt;
 &lt;br /&gt;
 post_max_size = 16M&lt;br /&gt;
 upload_max_filesize = 16M&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
=== Using a .htaccess file for webserver and PHP settings ===&lt;br /&gt;
&lt;br /&gt;
Use the above if you can directly edit your server&#039;s files, but if you are setting-up Moodle on a webhost, or don&#039;t have access to &#039;&#039;&#039;httpd.conf&#039;&#039;&#039; or &#039;&#039;&#039;php.ini&#039;&#039;&#039; on your server, or you have Moodle on a server with other applications that require different settings, then don&#039;t worry, you can often still override the default settings. This only works on Apache servers and only when Overrides have been allowed in the main Apache configuration.&lt;br /&gt;
&lt;br /&gt;
* Create a file called &#039;&#039;&#039;.htaccess&#039;&#039;&#039; in Moodle&#039;s main directory that contains lines like the following. &lt;br /&gt;
&lt;br /&gt;
 DirectoryIndex index.php index.html index.htm&lt;br /&gt;
 php_flag magic_quotes_gpc 1&lt;br /&gt;
 php_flag magic_quotes_runtime 0&lt;br /&gt;
 php_flag file_uploads 1&lt;br /&gt;
 php_flag session.auto_start 0&lt;br /&gt;
 php_flag session.bug_compat_warn 0&lt;br /&gt;
&lt;br /&gt;
:If you have Apache version 2 installed, add these lines:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfDefine APACHE2&amp;gt;&lt;br /&gt;
     AcceptPathInfo on&lt;br /&gt;
 &amp;lt;/IfDefine&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Otherwise add this single line:&lt;br /&gt;
&lt;br /&gt;
 AcceptPathInfo on&lt;br /&gt;
&lt;br /&gt;
* Optionally, you can also do things like define the maximum size for uploaded files, etc by adding these lines:&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 0&lt;br /&gt;
 php_value upload_max_filesize 2M&lt;br /&gt;
 php_value post_max_size 2M&lt;br /&gt;
     &lt;br /&gt;
* The easiest thing to do is just copy the sample file from lib/htaccess and edit it to suit your needs. It contains further instructions. For example, in a Unix shell:&lt;br /&gt;
&lt;br /&gt;
 cp lib/htaccess .htaccess&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Use a .htaccess file only [http://httpd.apache.org/docs/1.3/howto/htaccess.html#when as a last resort] as it can have an impact on the performance of your Moodle site and cause pages to load slowly on your browser.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
=== Creating an empty database ===&lt;br /&gt;
&lt;br /&gt;
You need to create an empty database (eg &amp;quot;&#039;&#039;moodle&#039;&#039;&amp;quot;) in your database system along with a special user (eg &amp;quot;moodleuser&amp;quot;) that has access to that database (and that database only). You could use the &amp;quot;root&amp;quot; user if you wanted to for a test server, but this is not recommended for a production system: if hackers manage to discover the password then your whole database system would be at risk, rather than just one database.&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Warning&#039;&#039;&#039;: Bear in mind that, as of Moodle version 1.5.x, Moodle doesn&#039;t work with MySQL 5.x&#039;s strict mode setting (STRICT_TRANS_TABLES and/or STRICT_ALL_TABLES) -- see [http://moodle.org/mod/forum/discuss.php?d=58552 forum discussion]. So if you are using MySQL 5.x, edit MySQL&#039;s configuration file (called &amp;quot;my.ini&amp;quot; in Windows and &amp;quot;my.cnf&amp;quot; on Unix/Linux) and comment out that option or set it to &amp;lt;code&amp;gt;sql-mode=&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. You have to restart MySQL after changing this setting. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; If you do not have access to your server, use PHPMyAdmin (or another MySQL client) and enter the command &amp;lt;code&amp;gt;SET @@global.sql_mode=&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;;&amp;lt;/code&amp;gt; (be sure to use single quotes, and don&#039;t forget the semicolon).&lt;br /&gt;
&lt;br /&gt;
====Using a hosted server====&lt;br /&gt;
If you are using a webhost, they will probably have a control panel web interface for you to create your database.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;[http://www.cpanel.com/ cPanel]&#039;&#039;&#039; system is one of the most popular of these. To create a database in cPanel,&lt;br /&gt;
&lt;br /&gt;
# Click on the &amp;quot;&#039;&#039;&#039;MySQL Databases&#039;&#039;&#039;&amp;quot; icon.&lt;br /&gt;
# Type &amp;quot;moodle&amp;quot; in the database field and click &amp;quot;&#039;&#039;&#039;Add Database&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
# Type a username and password (not one you use elsewhere) in the respective fields and click &amp;quot;&#039;&#039;&#039;Add User&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
# Now use the &amp;quot;&#039;&#039;&#039;Add User to Database&#039;&#039;&#039;&amp;quot; button to give this new user account &amp;quot;&#039;&#039;&#039;ALL&#039;&#039;&#039;&amp;quot; rights to the new database.&lt;br /&gt;
# Note that the username and database names may be prefixed by your cPanel account name. When entering this information into the Moodle installer - use the full names.&lt;br /&gt;
&lt;br /&gt;
====Using the command line====&lt;br /&gt;
&lt;br /&gt;
If you have access to Unix or Windows command lines then you can do the same sort of thing by typing commands. You should do this using the MySQL Client program as follows (commands which you type-in are shown in bold):&lt;br /&gt;
&lt;br /&gt;
- Start the MySQL Client program:&lt;br /&gt;
 #&#039;&#039;&#039;mysql -u root -p&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
 Your MySQL connection id is 2 to server version: 5.0.22-log&lt;br /&gt;
 &lt;br /&gt;
 Type &#039;help;&#039; or &#039;\h&#039; for help. Type &#039;\c&#039; to clear the buffer.&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- The prompt changes to &amp;quot;mysql&amp;gt;&amp;quot; to indicate that you are now working in the MySQL Client program. When working in MySQL, all commands which you type-in must end in a semi-colon. (If you hit the Enter key without the final semi-colon, you&#039;ll get the line continuation symbol &#039;-&amp;gt;&#039;; this is your second chance to type the semi-colon and hit Enter.) &lt;br /&gt;
&lt;br /&gt;
- Begin by checking for any existing databases called &amp;quot;moodle&amp;quot; - if there are any you should change the name in all the commands which follow:&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;SHOW DATABASES;&#039;&#039;&#039;&lt;br /&gt;
 +-------------------------+&lt;br /&gt;
 | Database                |&lt;br /&gt;
 +-------------------------+&lt;br /&gt;
 | information_schema      |&lt;br /&gt;
 | mysql                   |&lt;br /&gt;
 | test                    |&lt;br /&gt;
 +-------------------------+&lt;br /&gt;
 3 rows in set (0.03 sec)&lt;br /&gt;
&lt;br /&gt;
- Create a database to store the Moodle tables. We&#039;ll call this &amp;quot;moodle&amp;quot;, as there are none with that name already in the above list, but change it if you need to.&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;CREATE DATABASE moodle;&#039;&#039;&#039;&lt;br /&gt;
 Query OK, 1 row affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
- Change the default character set and collation of the &amp;quot;moodle&amp;quot; database to UTF8. Leave this out if you are installing Moodle 1.5 or earlier):&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;ALTER DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&#039;&#039;&#039;&lt;br /&gt;
 Query OK, 1 row affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
- Create a username and password to access the database &amp;quot;moodle&amp;quot; and grant database access permissions. We&#039;ll call the user &amp;quot;moodleuser&amp;quot; and set the password as &amp;quot;yourpassword&amp;quot;. It&#039;s a good idea to change these for your installation however most people keep the username as &amp;quot;moodleuser&amp;quot;. Remember the username and password you have set, as you&#039;ll need it in the configuration screens later. This is a long command so has been split over several lines by pressing the Return key.&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,&#039;&#039;&#039;&lt;br /&gt;
     -&amp;gt; &#039;&#039;&#039;DROP,INDEX,ALTER ON moodle.*&#039;&#039;&#039;&lt;br /&gt;
     -&amp;gt; &#039;&#039;&#039;TO moodleuser@localhost IDENTIFIED BY &#039;yourpassword&#039;;&#039;&#039;&#039;&lt;br /&gt;
 Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Security Warnings&#039;&#039;&#039;: Never leave the password as the one shown here. Make sure you have a strong password (a mixture of letters and numbers, upper and lower case). Avoid granting &amp;quot;ALL&amp;quot; permissions on the database.&lt;br /&gt;
: &#039;&#039;&#039;Note&#039;&#039;&#039;: For MySQL 4.0.1 or earlier, you don&#039;t need the CREATE TEMPORARY TABLES permission. &lt;br /&gt;
&lt;br /&gt;
- Exit the MySQL Client program:&lt;br /&gt;
 mysql&amp;gt; &#039;&#039;&#039;QUIT&#039;&#039;&#039;&lt;br /&gt;
 Bye&lt;br /&gt;
 #&lt;br /&gt;
&lt;br /&gt;
- Reload the grant tables using the mysqladmin program:&lt;br /&gt;
 #&#039;&#039;&#039;mysqladmin -u root -p reload&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 #&lt;br /&gt;
&lt;br /&gt;
And some example command lines for PostgreSQL:&lt;br /&gt;
&lt;br /&gt;
   # su - postgres&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;create user moodleuser createdb;&amp;quot; template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;create database moodle &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;with encoding &#039;unicode&#039;&amp;lt;/font&amp;gt;;&amp;quot; -U moodleuser template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;alter user moodleuser nocreatedb;&amp;quot; template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;alter user moodleuser with encrypted password &#039;yourpassword&#039;;&amp;quot; template1&lt;br /&gt;
   &amp;gt; su - root&lt;br /&gt;
   # /etc/init.d/postgresql reload&lt;br /&gt;
&lt;br /&gt;
If the Postgres create database command above (&amp;gt;psql -c &amp;quot;create database moodle...&amp;quot;) gives an error message you may want to try:&lt;br /&gt;
 psql -c &amp;quot;create database moodle with template=template1 encoding = &#039;unicode&#039; owner =  moodleuser &amp;lt;br&amp;gt;     location = &#039;/var/mydata&#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If the create database command asks you for a password, run the line containing &#039;encrypted password&#039; first before proceeding.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;:&lt;br /&gt;
* Step-by-step instructions on  [https://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu installation for Ubuntu(Debian)]&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
=== Creating the data directory (moodledata) ===&lt;br /&gt;
&lt;br /&gt;
Moodle will also need some space on your server&#039;s hard disk to store uploaded files, such as course documents and user pictures. The Moodle installer tries hard to create this directory for you but if it fails then you will have to create a directory for this purpose manually.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Security warning&#039;&#039;&#039;: For security purposes, it&#039;s best that this directory is NOT accessible directly via the web. The easiest way to do this is to simply locate it OUTSIDE the web directory, but if you must have it in the web directory (and you are using Apache) then protect it by creating a file in the data directory called &#039;&#039;&#039;.htaccess&#039;&#039;&#039;, containing these lines:&lt;br /&gt;
&lt;br /&gt;
 order deny,allow&lt;br /&gt;
 deny from all&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ownership &amp;amp; Permissions&#039;&#039;&#039;: To make sure that Moodle can save uploaded files in this directory, check that the web server software has permission to read, write and execute in this directory. On Unix machines, this means setting the owner of the directory to be something like &amp;quot;nobody&amp;quot; or &amp;quot;apache&amp;quot;, and then giving that user read, write and execute permissions. As an example, to change the owner to &amp;quot;nobody&amp;quot; you could use:&lt;br /&gt;
&lt;br /&gt;
 chown -R nobody:apache moodledata&lt;br /&gt;
&lt;br /&gt;
To change the permissions so that the owner has read,write and execute permissions, use something like this:&lt;br /&gt;
&lt;br /&gt;
 chmod -R 0770 moodledata&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: If you are receiving permission denied messages, try &#039;&#039;chmod -R 0770 moodledata&#039;&#039; and then adjust the settings so that they are more secure. A more secure setting is &#039;&#039;chmod -R 0750 moodledata&#039;&#039;. According to the comments in config-dist.php, &amp;quot;On hosting systems you might need to make sure that your group has no permissions at all while others have full permissions.&amp;quot; To do this you could use &#039;&#039;chmod -R 707 moodledata&#039;&#039;. See also the [[Security | security page]].&lt;br /&gt;
&lt;br /&gt;
Remember that by default moodle will issue a warning about moodle data directories created inside the web directory, but otherwise this directory can be located where you wish. You can later move or change the location of this directory, but if you do, be sure to edit the setting in the &#039;&#039;&#039;config.php&#039;&#039;&#039; file that sets this; e.g. if moodledata is under a directory called data, then it would look like this:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;dataroot  = &#039;/data/moodledata&#039;;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CPanel and webhosts&#039;&#039;&#039;: On cPanel systems you can use the &amp;quot;File Manager&amp;quot; to find the folder, click on it, then choose &amp;quot;Change Permissions&amp;quot;. On many shared hosting servers, you will probably need to restrict all file access to your &amp;quot;group&amp;quot; (to prevent other webhost customers from looking at or changing your files), but provide full read/write access to everyone else (which will allow the web server to access your files). Speak to your server administrator if you are having trouble setting this up securely. In particular it will not be possible to create a usable data directory on sites that use a PHP feature known as &amp;quot;&#039;&#039;&#039;Safe Mode&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Run the installer script to create config.php ==&lt;br /&gt;
&lt;br /&gt;
To run the installer script (install.php), just try to access your Moodle main URL using a web browser, or access &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://yourserver/install.php&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; directly.&lt;br /&gt;
&lt;br /&gt;
(The Installer will try to set a session cookie. If you get a popup warning in your browser make sure you accept that cookie!)&lt;br /&gt;
&lt;br /&gt;
Moodle will detect that configuration is necessary and will lead you through some screens to help you create a new configuration file called &#039;&#039;&#039;config.php&#039;&#039;&#039;. At the end of the process Moodle will try and write the file into the right location, otherwise you can press a button to download it from the installer and then upload &#039;&#039;&#039;config.php&#039;&#039;&#039; into the main Moodle directory on the server.&lt;br /&gt;
&lt;br /&gt;
Along the way the installer will test your server environment and give you suggestions about how to fix any problems. For most common issues these suggestions should be sufficient, but if you get stuck, check in the Installation Forum for more help.&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Go to the admin page to continue configuration ==&lt;br /&gt;
&lt;br /&gt;
Once the basic config.php has been correctly created in the previous step, trying to access the front page of your site will take you to the &amp;quot;admin&amp;quot; page for the rest of the configuration.&lt;br /&gt;
&lt;br /&gt;
The first time you access this admin page, you will be presented with a GPL &amp;quot;shrink wrap&amp;quot; agreement with which you must agree before you can continue with the setup.&lt;br /&gt;
&lt;br /&gt;
Now Moodle will start setting up your database and creating tables to store data. Firstly, the main database tables are created. You should see a number of SQL statements followed by status messages that look like this:&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE course (&lt;br /&gt;
    id int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
    category int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    password varchar(50) NOT NULL default &amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;,&lt;br /&gt;
    fullname varchar(254) NOT NULL default &amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;,&lt;br /&gt;
    shortname varchar(15) NOT NULL default &amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;,&lt;br /&gt;
    summary text NOT NULL,&lt;br /&gt;
    format tinyint(4) NOT NULL default &#039;1&#039;,&lt;br /&gt;
    teacher varchar(100) NOT NULL default &#039;Teacher&#039;,&lt;br /&gt;
    startdate int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    enddate int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    timemodified int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
    PRIMARY KEY (id)&lt;br /&gt;
 ) TYPE=MyISAM;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;SUCCESS&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...and so on, followed by: &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Main databases set up successfully.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t see these, then there must have been some problem with the database or the configuration settings you defined in config.php. Check that PHP isn&#039;t in a restricted &amp;quot;Safe Mode&amp;quot; (commercial web hosts sometimes have safe mode turned on). You can check PHP variables by creating a little file containing &#039;&#039;&#039;&amp;lt;?php phpinfo() ?&amp;gt;&#039;&#039;&#039; and looking at it through a browser. Check all these and try this page again.&lt;br /&gt;
&lt;br /&gt;
Scroll down the very bottom of the page and press the &amp;quot;Continue&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
You should now see a form where you can define more configuration variables for your installation, such as the default language, SMTP hosts and so on. Don&#039;t worry too much about getting everything right just now - you can always come back and edit these later on using the admin interface. The defaults are designed to be useful and secure for most sites. Scroll down to the bottom and click &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If (and only if) you find yourself getting stuck on this page, unable to continue, then your server probably has what I call the &amp;quot;buggy referrer&amp;quot; problem. This is easy to fix: just turn off the &amp;quot;secureforms&amp;quot; setting, then try to continue again.&lt;br /&gt;
&lt;br /&gt;
Next you will see more pages that print lots of status messages as they set up all the tables required by the various Moodle module. As before, they should all be &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;green&amp;lt;/font&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Scroll down the very bottom of the page and press the &amp;quot;Continue&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
The next page is a form where you can define parameters for your Moodle site and the front page, such as the name, format, description and so on. Fill this out (you can always come back and change these later) and then press &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Finally, you will then be asked to create a top-level administration user for future access to the admin pages. Fill out the details with your own name, email etc and then click &amp;quot;Save changes&amp;quot;. Not all the fields are required, but if you miss any important fields you&#039;ll be re-prompted for them.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Make sure you remember the username and password you chose for the administration user account, as they will be necessary to access the administration page in future.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
(If for any reason your install is interrupted, or there is a system error of some kind that prevents you from logging in using the admin account, you can usually log in using the default username of &amp;quot;&#039;&#039;&#039;admin&#039;&#039;&#039;&amp;quot;, with password &amp;quot;&#039;&#039;&#039;admin&#039;&#039;&#039;&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
Once successful, you will be returned to the home page of your new site! Note the administration links that appear down the left hand side of the page (these items also appear on a separate Admin page) - these items are only visible to you because you are logged in as the admin user. All your further administration of Moodle can now be done using this menu, such as:&lt;br /&gt;
&lt;br /&gt;
* creating and deleting courses&lt;br /&gt;
* creating and editing user accounts&lt;br /&gt;
* administering teacher accounts&lt;br /&gt;
* changing site-wide settings like themes etc&lt;br /&gt;
&lt;br /&gt;
But you are not done installing yet! There is one very important thing still to do (see the next section on cron).&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Set up cron ==&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[Cron|Cron instructions]].&lt;br /&gt;
&lt;br /&gt;
== Set up backups ==&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[Backup settings| backup instructions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Installing_Moodle#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== Create a new course ==&lt;br /&gt;
&lt;br /&gt;
Now that Moodle is running properly, you can try creating a new course to play with.&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Create a new course&amp;quot; from the Admin page (or the admin links on the home page).&lt;br /&gt;
&lt;br /&gt;
Fill out the form, paying special attention to the course format. You don&#039;t have to worry about the details too much at this stage, as everything can be changed later by the teacher. Note that the yellow help icons are everywhere to provide contextual help on any aspect.&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Save changes&amp;quot;, and you will be taken to a new form where you can assign teachers to the course. You can only add existing user accounts from this form - if you want to create a new teacher account then either ask the teacher to create one for themselves (see the login page), or create one for them using the &amp;quot;Add a new user&amp;quot; on the Admin page.&lt;br /&gt;
&lt;br /&gt;
Once done, the course is ready to customize, and is accessible via the &amp;quot;Courses&amp;quot; link on the home page.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Installation FAQ]]&lt;br /&gt;
*[[Complete install packages]] might be an easier first time installs on some systems&lt;br /&gt;
* [[Installing Apache, MySQL and PHP]] - Open source programs that can run Moodle on the web or on a desktop&lt;br /&gt;
* [[Upgrading Moodle]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=42688 Selecting a web host for Moodle] forum discussion&lt;br /&gt;
* [[masquerading|Masquerading]] - Running Moodle behind a masquerading/NAT firewall&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
[[cs:Instalace]]&lt;br /&gt;
[[de:Installieren von Moodle]]&lt;br /&gt;
[[es:Instalación de moodle]]&lt;br /&gt;
[[fr:Installation de Moodle]]&lt;br /&gt;
[[ja:Moodleのインストール]]&lt;br /&gt;
[[nl:Installatiegids]]&lt;br /&gt;
[[ru:Установка Moodle]]&lt;br /&gt;
[[sk:Inštalácia]]&lt;br /&gt;
[[zh:安装Moodlezh:]]&lt;br /&gt;
[[pl:Instalacja Moodle]]&lt;br /&gt;
[[pt:Instalação do Moodle]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Themes&amp;diff=31274</id>
		<title>Themes</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Themes&amp;diff=31274"/>
		<updated>2008-01-14T11:11:05Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
&lt;br /&gt;
==Moodle themes==&lt;br /&gt;
Moodle has a powerful themes system that allows for a variety of effects through the use of XHTML and CSS.&lt;br /&gt;
&lt;br /&gt;
* Themes may be [[Theme settings|configured]] at site level, course level and/or user level.&lt;br /&gt;
* Each page is individually-addressable via CSS, allowing you to pinpoint exact items.&lt;br /&gt;
* Our CSS class naming system uses simple English, is consistent and easily understood.&lt;br /&gt;
* New modules can tell Moodle what styles they need and automatically include these in the stylesheet.&lt;br /&gt;
* Themes can be based on the &#039;&#039;standard&#039;&#039; theme, which is very plain but functional.  You simply override styles you want to change by adding to the stylesheet in your own theme.  This means that if you upgrade Moodle later and new styles are needed, your custom theme will still work without any changes, because the new classes will be defined in the &#039;&#039;standard&#039;&#039; theme.&lt;br /&gt;
* Themes can also be based on any other theme.  This allows you to easily create families of themes, or variations on a theme.  For example you might create a spectrum of pastel shades for use in different courses, but with the same basic layout and logos.  You may also want to create a family of differently-coloured themes for accessibility purposes.&lt;br /&gt;
&lt;br /&gt;
==Theme selector== &lt;br /&gt;
&lt;br /&gt;
Moodle has a number of themes for you to choose from using the theme selector, including an interactive theme called [[Chameleon]]. Chameleon uses Ajax technology to enable you to easily design your own theme or enhance an existing theme.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can download a theme from the Moodle.org [http://moodle.org/themes Themes database].&lt;br /&gt;
&lt;br /&gt;
== Creating your own theme ==&lt;br /&gt;
&lt;br /&gt;
If you plan to work on your own theme please create a new one (with its own named subfolder) and use Moodle&#039;s theme system to base your theme on an existing theme such as &#039;&#039;standard&#039;&#039;. If you just modify one of the delivered themes it will be overwritten by the next Moodle update.&lt;br /&gt;
&lt;br /&gt;
To distribute your theme, zip the theme folder and submit to the Moodle.org [http://moodle.org/themes Themes database].&lt;br /&gt;
&lt;br /&gt;
== Installing a theme ==&lt;br /&gt;
&lt;br /&gt;
To install a theme:&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039; (version 1.7+) or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Themes&#039;&#039; (older versions).&lt;br /&gt;
&lt;br /&gt;
== Theme system changes ==&lt;br /&gt;
&lt;br /&gt;
Themes have improved a great deal in recent versions of Moodle. If you are using your own theme and want to upgrade, please refer to one of the following:&lt;br /&gt;
* [[1.6 theme upgrade]]&lt;br /&gt;
* [[1.7 theme upgrade]]&lt;br /&gt;
* [[1.8 theme upgrade]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
**[http://www.youtube.com/watch?v=pPUB_ReBPeg Installing 3rd Party Modules and Themes in Moodle video]&lt;br /&gt;
&lt;br /&gt;
[[Category:Themes]]&lt;br /&gt;
&lt;br /&gt;
[[es:Temas]]&lt;br /&gt;
[[fr:Thèmes]]&lt;br /&gt;
[[ja:テーマ]]&lt;br /&gt;
[[pt:Temas]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=2.1:Category:Forum&amp;diff=48924</id>
		<title>2.1:Category:Forum</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=2.1:Category:Forum&amp;diff=48924"/>
		<updated>2008-01-14T02:54:40Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of documentation pages about [[Forums]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Catégorie:Forum]]&lt;br /&gt;
[[pt:Categoria:Fórum]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Category:Forum&amp;diff=31257</id>
		<title>Category:Forum</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Category:Forum&amp;diff=31257"/>
		<updated>2008-01-14T02:54:40Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of documentation pages about [[Forums]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Catégorie:Forum]]&lt;br /&gt;
[[pt:Categoria:Fórum]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=2.1:Category:Course&amp;diff=48966</id>
		<title>2.1:Category:Course</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=2.1:Category:Course&amp;diff=48966"/>
		<updated>2008-01-14T02:43:22Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of documentation pages about course features.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[fr:Catégorie:Cours]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[pt:Categoria:Disciplina]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Category:Course&amp;diff=31255</id>
		<title>Category:Course</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Category:Course&amp;diff=31255"/>
		<updated>2008-01-14T02:43:22Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of documentation pages about course features.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[fr:Catégorie:Cours]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[pt:Categoria:Disciplina]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Development:Developer_documentation&amp;diff=31254</id>
		<title>Development:Developer documentation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Development:Developer_documentation&amp;diff=31254"/>
		<updated>2008-01-14T02:24:24Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Note:&#039;&#039;&#039; New developer documentation pages should be added to the &#039;&#039;Development namespace&#039;&#039; by typing &amp;lt;code&amp;gt;Development:&amp;lt;/code&amp;gt; before the new page name i.e. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Development:New page name]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are a developer, you probably want to change your [[Special:Preferences|preferences]] to include the Development namespace in searches.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;A page may be added to the Developer category by typing &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Developer|New page name]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; at the bottom of the page.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How Moodle development works==&lt;br /&gt;
&lt;br /&gt;
This [[Development:Overview|overview of the Moodle development process]] may be handy in understanding how the development of Moodle occurs and how people become Moodle developers.&lt;br /&gt;
&lt;br /&gt;
==Guidelines==&lt;br /&gt;
&lt;br /&gt;
The following guidelines are crucial reading for anyone wanting to contribute to the Moodle code base:&lt;br /&gt;
*[[Development:Coding|Coding guidelines]] have to be followed by all Moodle developers&lt;br /&gt;
*[[Moodle design goals]] spells out the basic design goals behind Moodle&lt;br /&gt;
*[[Interface guidelines]] aim to provide a common feel to the Moodle user interface&lt;br /&gt;
*[[CVS (developer)|Moodle CVS for developers]] explains how to work with the Moodle code in CVS&lt;br /&gt;
*[[Tracker]] explains the Moodle Tracker for keeping track of bugs, issues, feature requests etc&lt;br /&gt;
*[[Development:Working with the Community|Working with the Community]] explains how to engage with the dev community and discuss changes&lt;br /&gt;
*[[Development:Unit tests|Unit tests]] explains how to run the unit tests, and how to write new test cases.&lt;br /&gt;
&lt;br /&gt;
==Documentation for core components==&lt;br /&gt;
&lt;br /&gt;
This section is for documentation of specific components of the existing core Moodle code. Discussion of components that are under discussion or in development can be found in the [[Developer notes]] or on the [[Roadmap]].&lt;br /&gt;
&lt;br /&gt;
The documents below give a general overview. For detailed function-by-function documentation, see the [http://phpdocs.moodle.org/ phpDocumentor] documentation that is automatically generated from the comments in the code. And don&#039;t forget that the most up-to-date and detailed description of how the code works is the code itself, and you can [http://xref.moodle.org/nav.html?index.html browse the code online using phpXRef]. Moodle code should be easy to read and understand. Use the source, Luke!&lt;br /&gt;
&lt;br /&gt;
===Core components that affect everything===&lt;br /&gt;
&lt;br /&gt;
*[[Development:Database schema introduction|The database schema]]&lt;br /&gt;
*lib/moodlelib.php &lt;br /&gt;
*[[Development:lib/weblib.php|lib/weblib.php]] for outputting stuff.&lt;br /&gt;
*[[Development:XMLDB_Documentation|Database abstraction layer]] @ v[[1.7]]&lt;br /&gt;
*[[Development:Roles|Roles and Capabilities system]] @ v[[1.7]] for controlling who can do what.&lt;br /&gt;
*[[Development:lib/formslib.php|Forms library]] @ v[[1.8]] for creating accessible and secure HTML forms that let users edit things.&lt;br /&gt;
&lt;br /&gt;
===Core libraries with a more specific uses===&lt;br /&gt;
&lt;br /&gt;
*[[Authentication API]]&lt;br /&gt;
*[[Cookieless Sessions]]&lt;br /&gt;
*[[Email processing]]&lt;br /&gt;
*[[Development:Environment checking|Environment checking]] before install, check the user&#039;s server to ensure Moodle will work there.&lt;br /&gt;
*[[Development:Groups|Groups system]]&lt;br /&gt;
*[[Development:Grades|Gradebook]]&lt;br /&gt;
*[[Development:Moodle Network|Moodle Network]]&lt;br /&gt;
*[[Question engine]]&lt;br /&gt;
*[[Stats package]]&lt;br /&gt;
*[[UTF-8 migration|Migration to UTF-8]] @ v[[:Category:Moodle 1.6|1.6]]&lt;br /&gt;
*[http://developer.yahoo.com/yui YUI JavaScript library] - YUI was selected as the official AJAX library for Moodle.&lt;br /&gt;
*[[Development:lib/graphlib|lib/graphlib]]&lt;br /&gt;
&lt;br /&gt;
===Modules included in the standard distribution===&lt;br /&gt;
&lt;br /&gt;
*[[Quiz developer docs|Quiz module]]&lt;br /&gt;
*[[SCORM schema|SCORM module 1.5 schema]]&lt;br /&gt;
&lt;br /&gt;
==How you can contribute==&lt;br /&gt;
&lt;br /&gt;
===Make a new plugin===&lt;br /&gt;
&lt;br /&gt;
The M in Moodle stands for modular, and the easiest, most maintainable way to add new functionality to Moodle is by using one of the many plugin APIs. There are many types of plugin you can write:&lt;br /&gt;
*[[Development:Modules|Activity modules]]&lt;br /&gt;
*[[Development:Admin reports|Admin reports]]&lt;br /&gt;
*[[Development:Assignment types|Assignment types]]&lt;br /&gt;
*[[Development:Authentication plugins|Authentication plugins]]&lt;br /&gt;
*[[Development:Blocks|Blocks]]&lt;br /&gt;
*[[Course formats]]&lt;br /&gt;
*[[Development:Course Report Plugins|Course reports]]&lt;br /&gt;
*[[Development:Database fields|Database fields]]&lt;br /&gt;
*[[Development:Database presets|Database presets]]&lt;br /&gt;
*[[Development:Enrolment plugins|Enrolment plugins]]&lt;br /&gt;
*[[Development:Filters|Filters]]&lt;br /&gt;
*[[Development:Gradebook plugins|Gradebook plugins]]&lt;br /&gt;
**[[Development:Gradebook report|Gradebook report]]&lt;br /&gt;
**[[Development:Gradebook export|Gradebook export]]&lt;br /&gt;
**[[Development:Gradebook import|Gradebook import]]&lt;br /&gt;
*[[Development:Question engine|Question engine]]&lt;br /&gt;
*[[Development:Question import/export formats|Question import/export formats]]&lt;br /&gt;
*[[Development:How to write a quiz report plugin|Quiz reports]]&lt;br /&gt;
*[[Development:Resource types|Resource types]]&lt;br /&gt;
*[[Development:SSO plugins|SSO plugins]]&lt;br /&gt;
*[[Development:Search engine adapters|Search engine adapters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have developed a new component please publish it in the [http://moodle.org/mod/data/view.php?id=6009 Moodle modules and plugins database].&lt;br /&gt;
&lt;br /&gt;
===Change core code===&lt;br /&gt;
&lt;br /&gt;
Some types of change can only be made by editing the core Moodle code. Such changes are much harder to maintain than plugins. If you want your core change to be considered for inclusion in the official Moodle release, you need to create an issue in the [[Tracker|tracker]], and attach your change as a [[Development:How_to_create_a_patch|patch]]. It is also a good idea to discuss your ideas in the forums first.&lt;br /&gt;
&lt;br /&gt;
===Ways to contribute that do not involve PHP programming===&lt;br /&gt;
&lt;br /&gt;
*[[Themes|Create Moodle themes]]&lt;br /&gt;
*[[Translation|Translate Moodle into other languages]]&lt;br /&gt;
*[[MoodleDocs:Guidelines for contributors|Help document Moodle]]&lt;br /&gt;
*[[Development:Database schemas|Database schemas]]&lt;br /&gt;
*[[Development:Tests|Join the testing effort]], which involves [[Tracker|participating in the bug tracker]]&lt;br /&gt;
&lt;br /&gt;
==Plans for the future==&lt;br /&gt;
&lt;br /&gt;
Ideas for and details of planned future features of Moodle are initially discussed on the forums in the [http://moodle.org/course/view.php?id=5 Using Moodle] course at moodle.org. That developer discussions are intermixed with user discussions in the same forums may seem strange at first but is one of the reasons for the success of Moodle. It is important that both end-users and developers discuss the future features together.&lt;br /&gt;
&lt;br /&gt;
Once ideas begin to crystallize on the forums they can be summarized in this wiki, either as part of the [[Roadmap]] or in the form of [[Developer notes]]. These pages then form the basis for further discussion in the forums.&lt;br /&gt;
&lt;br /&gt;
*[[Roadmap]]&lt;br /&gt;
*[[Development:Developer notes|Developer notes]]&lt;br /&gt;
*[[Student projects]]&lt;br /&gt;
*[[Developer conferences]]&lt;br /&gt;
&lt;br /&gt;
== Resources and tools ==&lt;br /&gt;
&lt;br /&gt;
*[[Developer FAQ]] - frequently asked questions, especially useful for newcomers to Moodle&lt;br /&gt;
*[[Development:Finding_your_way_into_the_Moodle_code|Finding your way into the Moodle code]] - also aimed at newcomers&lt;br /&gt;
*[http://tracker.moodle.org/ Moodle tracker] - bug reports, feature requests and other tracked issues&lt;br /&gt;
**[[Firefox tracker search]] - How to setup a firefox quicksearch to easily navigate to moodle bugs&lt;br /&gt;
*[[Unmerged files]] - changes on the stable branch in CVS that have not been merged to HEAD&lt;br /&gt;
*Browse the code online:&lt;br /&gt;
**[http://cvs.moodle.org/moodle/ the code with a complete change history from CVS]&lt;br /&gt;
**[http://xref.moodle.org/index.html the code, with links generated by PHPXref]&lt;br /&gt;
*[http://phpdocs.moodle.org/ Moodle PHP doc reference] - compiled from the comment attached to each class and function in the code&lt;br /&gt;
*[[Development:Database Schema|Database Schema]] - for recent releases&lt;br /&gt;
*[http://moodle.org/course/view.php?id=5#4 Development news and discussion] section of Using Moodle course&lt;br /&gt;
**especially the [http://moodle.org/mod/forum/view.php?id=55 General developer forum]&lt;br /&gt;
**[[Filters used on the Moodle.org forums|cool tricks you can use in the moodle.org forums]]&lt;br /&gt;
*Some tools people use when working on Moodle code:&lt;br /&gt;
**[[Development:Setting_up_Eclipse|Setting up Eclipse for Moodle development]] - Eclipse is a great editor to use for php development, if you can work out how to set it up.&lt;br /&gt;
**[[Development:vim|Setting up Vim for Moodle development]]&lt;br /&gt;
**[[Development:ctags|Ctags]] - Using a tags file to navigate code&lt;br /&gt;
**[[W3C_validation|W3C HTML validator]] - Moodle has built in support to make using it easier.&lt;br /&gt;
**Firebug plugin for Firefox.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[http://security.moodle.org/ Moodle Security Centre]&lt;br /&gt;
*[http://moodle.com/partners/ Moodle Partners] - providers of custom Moodle development services&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[es:Documentación para Desarrolladores]]&lt;br /&gt;
[[fr:Documentation développeur]]&lt;br /&gt;
[[pt:Desenvolvimento:Documentação para programadores]]&lt;br /&gt;
[[zh:开发者文档]]&lt;br /&gt;
[[ja:開発者ドキュメント]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Category:Developer&amp;diff=31253</id>
		<title>Category:Developer</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Category:Developer&amp;diff=31253"/>
		<updated>2008-01-14T02:20:03Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Note:&#039;&#039;&#039; To ensure that the pages are listed in alphabetical order below, please include the page name in the category link, for example &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Developer|Grades]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An index of documentation pages for [[Development:Developer documentation|developers]].&lt;br /&gt;
&lt;br /&gt;
[[es:Categoría:Desarrollador]]&lt;br /&gt;
[[fr:Catégorie:Développeur]]&lt;br /&gt;
[[pt:Categoria:Programador]]&lt;br /&gt;
[[ru:Категория:Разработчику]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Language_editing&amp;diff=31250</id>
		<title>Language editing</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Language_editing&amp;diff=31250"/>
		<updated>2008-01-14T00:57:37Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Location: &#039;&#039;Administration &amp;gt; Language &amp;gt; Language editing&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Edit-strings.gif|thumb|Language editing in Moodle 1.6]]The language editing interface enables you to easily change any word or phrase used on the site. For example, you may want to change the word &amp;quot;Course&amp;quot; to &amp;quot;Area&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Edit words or phrases ==&lt;br /&gt;
[[Image:edit words or phrases.png|thumb|Edit words or phrases in Moodle 1.8]]&lt;br /&gt;
From Moodle 1.6 onwards, text may be changed by editing language strings, either via &#039;&#039;Administration &amp;gt; Language &amp;gt; Language editing&#039;&#039; or directly i.e. in &#039;&#039;moodledata/lang/&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To edit a word or phrase:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Language &amp;gt; Language editing&#039;&#039;.&lt;br /&gt;
#Click the &amp;quot;Edit words or phrases&amp;quot; link in the middle of the page.&lt;br /&gt;
#On the edit words or phases page click the &amp;quot;Switch lang directory&amp;quot; button and a local language folder, &#039;&#039;parentlanguage_local&#039;&#039;, will automatically be created in &#039;&#039;moodledata/lang&#039;&#039;. Files of edited strings will then be saved in this folder. This is necessary to prevent changes that you make to be overwritten by a newer language pack when updating.&lt;br /&gt;
#Choose a file to edit. You may need to search through a few files before finding the file containing the word you wish to change. The file &#039;&#039;moodle.php&#039;&#039; contains all common site-wide phrases.&lt;br /&gt;
#Change the word or phrase.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button. The changed phrase will be highlighted in a different colour.&lt;br /&gt;
&lt;br /&gt;
If you wish to make further changes later, be sure to check that files of edited strings will again be saved to the folder &#039;&#039;parentlanguage_local&#039;&#039;, switching folder if necessary.&lt;br /&gt;
&lt;br /&gt;
Note: From Moodle 1.9 onwards, the option to switch is no longer provided and edited strings are automatically saved in the local language folder.&lt;br /&gt;
&lt;br /&gt;
==Changes in 1.9==&lt;br /&gt;
{{Moodle 1.9}}* From Moodle 1.9 onwards, only users with the capability [[Capabilities/moodle/site:langeditmaster|moodle/site:langeditmaster]] may modify the master language packages (i.e. those being saved in &#039;&#039;moodledata/lang/&#039;&#039;). It is prevented from all roles by default. It is expected that only language maintainers will manually allow this to themselves.&lt;br /&gt;
* From Moodle 1.9 onwards, only users with the capability [[Capabilities/moodle/site:langeditlocal|moodle/site:langeditlocal]] may customize the site translation (i.e. files being saved in &#039;&#039;moodledata/lang_local/&#039;&#039;). Admins are allowed to do this by default.&lt;br /&gt;
* Added ability to edit language files in non-standard locations, i.e. string files for various types of plugin (e.g. blocks, database presets, 3rd party modules etc.)&lt;br /&gt;
* TODO (currently working on) ability to edit help files in non-standard locations and translate local modifications of help files.&lt;br /&gt;
* Several GUI improvements including tabs&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot-admin-lang-19.png|frame|center|Moodle 1.9 admin/lang.php interface]]&lt;br /&gt;
&lt;br /&gt;
==Previous admin/lang==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle 1.5 may be changed by editing the language strings, either via &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; or directly e.g. in &#039;&#039;lang/en&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To ensure that any changes are not overwritten by a new version when upgrading, you need to create your own local language pack as follows:&lt;br /&gt;
&lt;br /&gt;
* Copy the contents of your language folder (e.g. &#039;&#039;lang/en&#039;&#039;) into a new folder (e.g. &#039;&#039;lang/en_local&#039;&#039;) - you will need access to the server to achieve this step, it cannot be done from within Moodle.&lt;br /&gt;
* Make your local language pack the default for the site via &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Variables.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Translation]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=43 Languages forum]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=49150 Local language] forum discussion&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=78225 Editing help files] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
&lt;br /&gt;
[[es:admin/lang]]&lt;br /&gt;
[[fr:Langue]]&lt;br /&gt;
[[ja:言語]]&lt;br /&gt;
[[pt:Edição da língua]]&lt;br /&gt;
[[zh:语言]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Variables&amp;diff=31249</id>
		<title>Variables</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Variables&amp;diff=31249"/>
		<updated>2008-01-14T00:42:28Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for administrators of Moodle 1.6 sites (see [[Talk:Variables]]).  &lt;br /&gt;
:&#039;&#039;&#039;NOTE: In later versions of Moodle, variables may be in different locations in the interface. For instance, the &amp;quot;maxbytes&amp;quot; variable is in the site administration block under Security -&amp;gt; Site Policies -&amp;gt; Maximum uploaded file size.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;lang&#039;&#039; - If you wish to change any text on your site, it is recommended that a local language pack is created. Please refer to [[Language]] for details&lt;br /&gt;
*&#039;&#039;timezone&#039;&#039; -  This field is used to set the default timezone used by Moodle. It affects time-related messages on the system such as assignment deadlines. If you have set this and still have time problems, make sure the time is set correctly on the server. Users can also set their timezone, see [[Edit profile]].&lt;br /&gt;
*&#039;&#039;themelist&#039;&#039;, &#039;&#039;allowuserthemes&#039;&#039;, &#039;&#039;allowcoursethemes&#039;&#039; - Please refer to the [[Theme config|Theme configuration]] for details&lt;br /&gt;
&lt;br /&gt;
== Operating System ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;slasharguments&#039;&#039; - Please refer to the FAQ [[Installation_FAQ#Uploaded_files_give_.22File_not_found.22|Uploaded files give &amp;quot;File not found&amp;quot;]] and the [[Installing_Moodle#Check_web_server_settings|check web server settings]] instructions&lt;br /&gt;
&lt;br /&gt;
==User==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;autologinguests&#039;&#039; - Please refer to [[Guest access]]&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;opentogoogle&#039;&#039; - Please refer to [[Search engine optimization]] for further information&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;maxeditingtime&#039;&#039; - Please refer to the forum discussions [http://moodle.org/mod/forum/discuss.php?d=28679 Editing a forum post after the 30 minutes deadline] and [http://moodle.org/mod/forum/discuss.php?d=5367 The philosophy underlying &amp;quot;no editing after 30 minutes&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;debug&#039;&#039; - Set debug to on in order to get more information about PHP errors. This is often helpful to an administrator when trying to get more information about an error or problem being experienced. Normally, debug is set to off. For more information about debugging in Moodle 1.7 onwards, see [[Debugging]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*[[Administration FAQ]]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=32306 How to make individual course policies (vs. site policies)] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Paramètres techniques]]&lt;br /&gt;
[[es:Variables]]&lt;br /&gt;
[[ja:詳細設定]]&lt;br /&gt;
[[pt:Variáveis]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Installation_FAQ&amp;diff=31248</id>
		<title>Installation FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Installation_FAQ&amp;diff=31248"/>
		<updated>2008-01-14T00:16:57Z</updated>

		<summary type="html">&lt;p&gt;Jaime: The stucture of the administration block changed in 1.7 and not 1.6&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
==Table of Contents==&lt;br /&gt;
__TOC__&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;?PHP phpinfo() ?&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
== System information needed for Installation Forum ==&lt;br /&gt;
When posting questions to the installation forum, try to provide as much background information as possible about your moodle system. Use this template to copy and paste into your post:&lt;br /&gt;
* Server Operating System name (version also if possible): &lt;br /&gt;
* Browser name (version also if possible):&lt;br /&gt;
* Moodle version:&lt;br /&gt;
* Moodle install type? (New/Upgrade):&lt;br /&gt;
* Moodle config.php attached?(Y/N):&lt;br /&gt;
* Phpinfo attached? (Y/N):&lt;br /&gt;
&lt;br /&gt;
For the last two items, try to include the following in your post as an attachment:&lt;br /&gt;
* A copy of your phpinfo output as shown in your browser (see the instructions above for an explanation of how to obtain this).&lt;br /&gt;
* A copy of the Moodle configuration file. This is located in the directory moodle and is named config.php&lt;br /&gt;
&lt;br /&gt;
Copy and paste both of these into a single text file (using vi, Notepad, etc) and attach this to your post.&lt;br /&gt;
&lt;br /&gt;
If you cannot provide your phpinfo, try to copy &amp;amp; paste and complete these in your post:&lt;br /&gt;
* Webserver (e.g. Apache/IIS) version:&lt;br /&gt;
* Database server (e.g. MySQL, PostgreSQL) version:&lt;br /&gt;
* PHP version:&lt;br /&gt;
&lt;br /&gt;
For installation on web hosting accounts: contact your support desk who should be able to tell you this information.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Security Warning&#039;&#039;&#039;: Make sure you edit any files and delete any passwords before posting onto the forum.&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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. Please remember that manually editing the file is not recommended and may lead to blank pages, especially if there are additional spaces and/or lines after the final php closing tag &amp;quot;?&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==Running a health check==&lt;br /&gt;
Moodle contains a script that will help identify common php and webserver configuration problems as well as configuration problems. It is a good idea to run this script to check if you are having post-installation problems. Use your browser to run this file:&lt;br /&gt;
&lt;br /&gt;
 http://www.mymoodle.com/moodle/admin/health.php&lt;br /&gt;
&lt;br /&gt;
Change the above line if you have installed moodle in the webroot instead of a folder inside the webroot.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==Downloading previous releases of Moodle==&lt;br /&gt;
* &#039;&#039;&#039;Generic Packages&#039;&#039;&#039;: If your server does not meet the [[Installing_Moodle#Requirements | requirements]] for the current version of Moodle, 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 http://download.moodle.org/stable15. 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, or alternatively use these URLs for zip or tgz downloads:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]/moodle-latest-[version_number].zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://download.moodle.org/stable[version_number]/moodle-latest-[version_number].tgz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Changes made in the version in the last month are listed in the &amp;quot;CHANGES&amp;quot; file in the directory listing. The files you download contain Moodle code and are not the Windows or Mac packages - so you need to have a webserver, a database server and PHP already installed. The earliest version available is Moodle 1.3.&lt;br /&gt;
* &#039;&#039;&#039;Windows Packages&#039;&#039;&#039;: To download previous releases of the 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 previous releases of the Mac pacakges, 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;
* &#039;&#039;&#039;Using CVS&#039;&#039;&#039;: You can also use CVS to download older releases and incremental releases of the Moodle generic packages, e.g. Moodle 1.5.4 - see the [[CVS_for_Administrators | CVS documentation]].&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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. &lt;br /&gt;
* &#039;&#039;&#039;Using the php.ini file&#039;&#039;&#039;: The log settings are contained in the php.ini file stored on the server. If you don&#039;t know where that is, edit your Moodle &#039;&#039;config.php&#039;&#039; and add the following as the second line&lt;br /&gt;
&lt;br /&gt;
  phpinfo();&lt;br /&gt;
&lt;br /&gt;
:then reload the web page. Look for the entry &#039;&#039;&#039;Configuration File (php.ini) Path&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
:When you have located php.ini open it in your favorite text editor. Find the &#039;&#039;&#039;Error handling and logging&#039;&#039;&#039; section of the php.ini file. Make sure that both &#039;&#039;&#039;display_errors = On&#039;&#039;&#039;, &#039;&#039;&#039;display_startup_errors = On&#039;&#039;&#039; and &#039;&#039;&#039;log_errors = On&#039;&#039;&#039; are present and uncommented. Check the value of &#039;&#039;&#039;error_log&#039;&#039;&#039; - this tells you the location of the file errors are logged to. If it is commented out then errors will be sent to the web server error log file. Remember, if you make any changes to this file you will need to restart the web server (or just reboot the server).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Using ini_set commands&#039;&#039;&#039;: If you are using Moodle 1.7 or higher, the previous steps are not enough. In those versions error logging parameters are dependant on certain administrative settings that you specify in the debugging section. The problem is that if you can&#039;t access the administrative pages, you can&#039;t set the debugging options. So the only way to modify them is by adding the following lines to your config.php file, just before the last line (the one containing a single&#039;?&amp;gt;&#039; only):&lt;br /&gt;
&lt;br /&gt;
  ini_set (&#039;display_errors&#039;, &#039;on&#039;);&lt;br /&gt;
  ini_set (&#039;log_errors&#039;, &#039;on&#039;);&lt;br /&gt;
  ini_set (&#039;display_startup_errors&#039;, &#039;on&#039;);&lt;br /&gt;
  ini_set (&#039;error_reporting&#039;, E_ALL);&lt;br /&gt;
&lt;br /&gt;
:This will enable the same settings specified above even if Moodle sets them otherwise. &lt;br /&gt;
:&#039;&#039;&#039;Important&#039;&#039;&#039;: Remember to put them just before the last line of config.php.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==Any text I add with an apostrophe (&#039;) or a quote (&amp;quot;) causes errors or comes up with a slash added==&lt;br /&gt;
&lt;br /&gt;
Problems caused by apostrophes are caused by incorrect &amp;quot;magic quotes&amp;quot; settings. Moodle requires the following settings in the php.ini file (which are usually the default):&lt;br /&gt;
&lt;br /&gt;
 magic_quotes_gpc = On&lt;br /&gt;
 magic_quotes_runtime = Off&lt;br /&gt;
&lt;br /&gt;
Please see [[Installing Moodle]] for more details.&lt;br /&gt;
&lt;br /&gt;
If you are using [[Debian_GNU/Linux_installation|Debian]] then the problem might be in the version of PHP that you have installed. Have a look at this [http://tracker.moodle.org/browse/MDL-9691 bug report ]  to see if it matches your situation.&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.&lt;br /&gt;
&lt;br /&gt;
Basically, you need to set up a process to regularly call the script &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://yoursite/admin/cron.php&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tip:&#039;&#039;&#039; Try the default setting in Moodle variables page. Leave the smtphost blank. This will be acceptable for the majority of users.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tip:&#039;&#039;&#039; Make sure that allowuseremailcharset in Administration &amp;gt; Configuration &amp;gt; Variables &amp;gt; Mail is set to No. Setting this to Yes might cause this problem in some versions of Moodle.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==I can&#039;t log in - I just stay stuck on the login screen==&lt;br /&gt;
&lt;br /&gt;
The most common cause for this is that your own computer (not your Moodle server) has 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;
&lt;br /&gt;
The server admin can also fix this for everyone by changing the &#039;&#039;secureforms&#039;&#039; variable to &#039;No&#039; in the security section of Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
Another possible cause of this problem is that sessions are not configured properly on the server. You can test this by calling the script &amp;lt;nowiki&amp;gt;http://yourserver/moodle/lib/session-test.php&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, read the [[Can_not_log_in | Cannot log in]] page.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==I keep getting this error: A server error that affects your login session was detected.==&lt;br /&gt;
&lt;br /&gt;
Please refer to the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=73716 A server error that affects your login session was detected. Please login again or restart your browser.].&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==I keep getting this 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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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 3rd party modules or 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 bug tracker.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==Serious Error! Could not set up the site!==&lt;br /&gt;
&lt;br /&gt;
Please refer to the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=32071 Serious Error! Could not set up the site!].&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
If you are not using Apache 2 and you still have this problem (unlikely) then you can switch Moodle to use an alternative method. The disadvantages are a slight loss of performance for your users and you won&#039;t be able to use relative links within HTML resources.&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==When trying to add a resource I receive error messages==&lt;br /&gt;
&lt;br /&gt;
Assuming you are using Apache, then it&#039;s quite likely that your setting in &#039;&#039;config.php&#039;&#039; for &amp;lt;code&amp;gt;$CFG-&amp;gt;wwwroot&amp;lt;/code&amp;gt; is different from the actual URL you are using to access the site. Also try turning off the &#039;&#039;secureforms&#039;&#039; variable in the security section of Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
 $CFG-&amp;gt;dirroot = &amp;quot;d:\inetpub\sites\www.yoursite.com\web\moodle&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Another reason might be that PHP has not been configured to support MySQL. 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, set these lines in your &#039;&#039;php.ini&#039;&#039; file and reload the web page.&lt;br /&gt;
&lt;br /&gt;
 display_errors = On&lt;br /&gt;
 display_startup_errors = On&lt;br /&gt;
&lt;br /&gt;
To determine if MySQL 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;
 phpinfo();&lt;br /&gt;
&lt;br /&gt;
then reload the web page. Examine the output closely to see if MySQL is supported. If not look for a package you are missing.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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 [[Installation_FAQ#How_to_enable_and_check_PHP_error_logs | check your 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 required optional plugins that were required by your courses. &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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==Installation hangs when setting-up database tables==&lt;br /&gt;
*Sometimes the installation will hang when setting up tables. This will be an abrupt hang with half the page displayed in the browser and/or other outputs removed, e.g. the “Scroll to continue” link is displayed but no “Continue” button is there. If this is the case, it is usually a mysql error and not a php error. Check that there is no limit placed on your mysql database, e.g. a &amp;quot;questions&amp;quot; limit.&lt;br /&gt;
&lt;br /&gt;
*If the install is on a webhost, adding the following line to the .htaccess file in the moodle directory has been known to solve the problem.&lt;br /&gt;
 AddType x-mapp-php5 .php&lt;br /&gt;
&lt;br /&gt;
*Try also renaming the .htaccess file so that it is disabled.&lt;br /&gt;
&lt;br /&gt;
*You may also want to look and see if you&#039;ve customized any of your code.  Look at the last successful table, and then look at the block, mod, or other code that is referenced by that table.  For example, if your install hangs and continues to say that the forum tables were successful as the last message, look at /mod/forum/ for any custom code.  If you have customized code, backup those files and replace with the correct files.  You can then restart the install by renaming config.php or reinstalling your database from the backup.  If your install is successful, you can make your code changes back into the stock Moodle code.&lt;br /&gt;
&lt;br /&gt;
*It may also be that the &amp;quot;memory_limit&amp;quot; in your php.ini is set too low. Please check your php.ini file and allocate the recommended amount (see [https://docs.moodle.org/en/Installing_Moodle#Requirements Moodle requirements]). For Moodle version 1.8 and above at least 40MB is  recommended.&lt;br /&gt;
&lt;br /&gt;
*A work-around to this problem is to setup a working Moodle system on your local PC or server using the [http://download.moodle.org Moodle Packages]. Once you have a running Moodle, [https://docs.moodle.org/en/Upgrading_Moodle#Backup_important_data backup the database] and import to your webhost. Then backup the Moodle code itself (the &amp;quot;moodle&amp;quot; directory on your PC) and copy this to your webhost using (for example) FTP. Finally, edit the moodle/config.php file for the new settings that have to be changed for the webhost.&lt;br /&gt;
&lt;br /&gt;
*To avoid this problem when upgrading, prefer to upgrade incrementally. For example: upgrade from 1.6.* to 1.7.* and then to 1.8.* rather than straight from 1.6.* to 1.8.*&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: When upgrading an existing database, the installation may appear to hang at the roles generation phase. This process can take a very long time - so please be patient.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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 because GD is not enabled on your server. GD is a library that allows image processing.&lt;br /&gt;
&lt;br /&gt;
1. Make sure &#039;&#039;&#039;GD has been included in your PHP installation&#039;&#039;&#039;. You can check this by going into Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[Variables]] 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;
&lt;br /&gt;
2. 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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
&lt;br /&gt;
==I receive this error &amp;quot;500:Internal Server Error&amp;quot;==&lt;br /&gt;
You&#039;ll get this error message if there is a syntax error in your .htaccess or httpd.conf files. You will also see this error if your server does not support .htaccess files, especially if it is running PHPsuexec. Also, you may have a directive in your .htaccess or httpd.conf files which are not compatible with your web server version.&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==How do I uninstall Moodle?==&lt;br /&gt;
&#039;&#039;&#039;Moodle package installation&#039;&#039;&#039;: If you have downloaded a Moodle package, simply uninstall using your system commands. On Windows PCs, you should access the Control Panel -&amp;gt; Add/Remove Programs. Select the package name and click Change or Remove Programs.&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
==How do I upgrade Moodle? Do I just overwrite the files?==&lt;br /&gt;
Do not overwrite files, it may cause strange errors. You should read the [[Upgrade]] documentation before proceeding.&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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, 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;
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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&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;
The second place to check are the server files.  The php.ini file has a limit which will override any other setting. (Hint: remember to restart your server for changes to take effect).  For more help see:&lt;br /&gt;
*[[Installing_Moodle#Check_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;
&lt;br /&gt;
&lt;br /&gt;
[[Installation_FAQ#Table_of_Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Instalación]]&lt;br /&gt;
[[fr:FAQ d&#039;installation]]&lt;br /&gt;
[[nl:Installatie FAQ]]&lt;br /&gt;
[[ja:インストールFAQ]]&lt;br /&gt;
[[ru:Установка FAQ]]&lt;br /&gt;
[[pl:Instalacja FAQ]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Configuration&amp;diff=31243</id>
		<title>Configuration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Configuration&amp;diff=31243"/>
		<updated>2008-01-13T22:59:31Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Variables]]&lt;br /&gt;
*[[Site settings]]&lt;br /&gt;
*[[Themes]]&lt;br /&gt;
*[[Language]]&lt;br /&gt;
*[[Activity modules administration]]&lt;br /&gt;
*[[Blocks administration]]&lt;br /&gt;
*[[Filters]]&lt;br /&gt;
*[[Backup settings]]&lt;br /&gt;
*[[HTML editor settings]]&lt;br /&gt;
*[[Calendar settings]]&lt;br /&gt;
*[[Maintenance mode]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[es:Configuración]]&lt;br /&gt;
[[fr:Configuration]]&lt;br /&gt;
[[pt:Configuração]]&lt;br /&gt;
[[zh:配置]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Add/edit_course_categories&amp;diff=31231</id>
		<title>Add/edit course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Add/edit_course_categories&amp;diff=31231"/>
		<updated>2008-01-13T17:09:27Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Added link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Location: Category link in &#039;&#039;Administration block &amp;gt; Courses &amp;gt; Add/edit courses&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Course categories organize courses for all Moodle site participants. Miscellaneous is the default course category on a new Moodle site. A course creator or administrator can put all courses in the miscellaneous category. However, teachers and students will find it easier to find their classes if they are organized in descriptive categories.&lt;br /&gt;
&lt;br /&gt;
The list of courses within a category by default shows the teachers and the summary of each course. If the number of courses within a category exceeds 9 (10 or more), then a short list without teachers and summary is shown.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding a category==&lt;br /&gt;
Most people organize their courses by department and college or by topic. Be sure to test the organizational scheme with a few users before entering a large number of courses, to save time in moving them later.&lt;br /&gt;
&lt;br /&gt;
Adding categories is very simple:&lt;br /&gt;
&lt;br /&gt;
#From the Site Administration block, click Courses then &amp;quot;Add/edit courses&amp;quot;.&lt;br /&gt;
#At the top of the &amp;quot;Course Categories&amp;quot; page is a text area and an &amp;quot;Add new category&amp;quot; button. Type the name of your new category in the text area and click the button.&lt;br /&gt;
&lt;br /&gt;
==Adding sub course categories==&lt;br /&gt;
&lt;br /&gt;
Course sub-categories may be created by adding a new course category then using the &amp;quot;move category to&amp;quot; drop-down menu to move the category inside another category. Similarly, sub-sub-categories etc. may be created. &lt;br /&gt;
&lt;br /&gt;
==Hiding categories==&lt;br /&gt;
[[Image:Hidden_categories.JPG|thumb|Hidden categories]]&lt;br /&gt;
Categories may be easily hidden or shown via &#039;&#039;Administration block &amp;gt; Courses &amp;gt; Add/edit courses&#039;&#039;.  Click on the icon to show or hide a category.  Hidden categories are only visible to site administrators.  By default, all courses inside a hidden category are not available for students to access, but you can go to &#039;&#039;Administration &amp;gt; Front Page &amp;gt;Front Page Settings&#039;&#039; and click the checkbox to &#039;Allow visible courses in hidden categories&#039;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Edit category settings]] in Moodle 1.9 onwards&lt;br /&gt;
&lt;br /&gt;
[[Category:Course]]&lt;br /&gt;
&lt;br /&gt;
[[pl:Dodaj/edytuj_kategorie]]&lt;br /&gt;
[[pt:Adicionar/editar categorias de disciplinas]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Talk:Teaching_FAQ&amp;diff=31151</id>
		<title>Talk:Teaching FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Talk:Teaching_FAQ&amp;diff=31151"/>
		<updated>2008-01-10T13:44:37Z</updated>

		<summary type="html">&lt;p&gt;Jaime: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What shall we do here, then?==&lt;br /&gt;
I&#039;m not sure I fully understand this page as some of these answers can be found by simply searching this site eg &#039;&#039;what is a metacourse&#039;&#039; and all of the &#039;&#039;setting up activities&#039;&#039; questions. I have also noticed pedogical pages in this wiki and there is a teacher overview page also which covers getting started / day to day type needs and jumps to pages with more depth. I am wondering where this article fits without simply explaining the same things in different ways. I think a teacher FAQ could be very useful but would be intersted in what others want from it before I roll my sleeves up :-) --[[User:Darren Smith|Darren Smith]] 00:52, 11 April 2006 (WST)&lt;br /&gt;
:Well, this page is a translation of a page in the Dutch Moodle.org area. There it intends to provide some answers to questions teachers ask regularly to Moodle administrators. I agree that probably all questions are answered elsewhere already, so that gives IMHO two options: delete the page, since everything already answered or create links to the explanation and even extend the page. I don&#039;t like the idea of rewriting everything here. Nothing is worse then keeping the same information up to date on different locations.  --[[User:koen roggemans|koen roggemans]] 04:51, 26 April 2006 (WST)&lt;br /&gt;
&lt;br /&gt;
:If this page is not deleted, why not just put in a link to some index or other MoodleDoc pages.  Yes it is redundant but it is also user friendly.   Sometimes new users (and old bald ones) don&#039;t know what to search on.   FAQ might be such a search term a newbie might use.I will add one in Lesson --[[User:chris collman 2|chris collman 2]] 00:07, 20 July 2006 (WST)&lt;br /&gt;
&lt;br /&gt;
This page shows too many unanswered questions. In my opinion, they&#039;d better be deleted and we should just start up again with a short collection of questions about teaching practices with Moodle (I can start, if nobody objects) [[User:Jaime Villate|Jaime Villate]] 07:44, 10 January 2008 (CST)&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Backup_and_restore_FAQ&amp;diff=31144</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Backup_and_restore_FAQ&amp;diff=31144"/>
		<updated>2008-01-10T13:06:46Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Typos fixed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
;Site backups&lt;br /&gt;
:Site backups, as explained in [[Upgrading_Moodle#Backup_important_data|upgrading Moodle]], are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
;Course backups&lt;br /&gt;
:Course backups, configured on the [[admin/backup|backup]] page, are more expensive in terms of time and CPU usage. The recovery time to have your site running again is longer. Course backups are useful for obtaining &amp;quot;fresh&amp;quot; copies of courses to be re-used or distributed individually, however they should never be used as a primary backup system (unless your hosting doesn&#039;t allow the preferred site backups). In order to make scheduled backups, you have to set up CRON to run periodically. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How do I backup my whole Moodle site?==&lt;br /&gt;
&lt;br /&gt;
There are two main things you need to make a copy of - the database and the uploaded files. The Moodle scripts themselves are less important, since you can always download a fresh copy if you have to.&lt;br /&gt;
&lt;br /&gt;
There are many ways to do such backups. Here is an outline of a little script you can run on Unix to backup the database (it works well to have such a script run daily via a cron task):&lt;br /&gt;
&lt;br /&gt;
 cd /my/backup/directory&lt;br /&gt;
 mv moodle-database.sql.gz moodle-database-old.sql.gz&lt;br /&gt;
 mysqldump -h example.com -u myusername --password=mypassword -C -Q -e -a mydatabasename &amp;gt; moodle-database.sql&lt;br /&gt;
 gzip moodle-database.sql&lt;br /&gt;
&lt;br /&gt;
For the files, you can use rsync regularly to copy only the changed files to another host:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvtz --delete -e ssh mysshusername@example.com:/my/server/directory /my/backup/directory/&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Character Encoding&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When dumping the entire Moodle database, Administrators should be careful to watch for possible character encoding issues. In some instances, backups created with mysqldump or phpmyadmin may not properly encode all of the data resulting in spurious A characters. One solution is to use mySQL Administrator 1.1 or another tool that will force a UTF-8 dump of the data.&lt;br /&gt;
&lt;br /&gt;
==How do I restore a backup of my whole Moodle site?==&lt;br /&gt;
&lt;br /&gt;
If you have followed the above instructions and created a backup of a Moodle site, you may need to know how to restore the site backup you created.  Here is a set of basic steps that make up the restore process.&lt;br /&gt;
&lt;br /&gt;
1. Rename the original moodle directory to something different (so you still have it) and copy the backed up moodle directory or a newly downloaded moodle directory in its place.&lt;br /&gt;
&lt;br /&gt;
2. If you are running mysql, a backup of the database should be a .sql, .gz or .tar.gz file.  If it is .tar.gz or .gz you need to extract it until it is an sql file.&lt;br /&gt;
&lt;br /&gt;
 tar -xzvf moodlesqlfile.tar.gz&lt;br /&gt;
&lt;br /&gt;
3. If you are running mysql, import the sql file back into a newly created database on the mysql server.  Be careful here, some backups try to import right back into the same working database that moodle is connected to.  This causes database problems that damage a Moodle installation.  The best thing to do is make a new database, restore the backed up database into it, and change the Moodle config.php file to connect to this new database (this way you still have the original database).&lt;br /&gt;
&lt;br /&gt;
once you have created the new database:&lt;br /&gt;
 mysql -p new_database &amp;lt; moodlesqlfile.sql&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;
&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;
&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;
&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;
There are various ways of repairing tables, including using MySQL Admin.&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;
==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;
==How can I restore pre 1.6 non-ISO-8859-1 backups to Moodle 1.6 (Unicode)?==&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.6}}Any backup files with contents which are not 100% ISO-8859-1 will be a problem to restore to Moodle 1.6 (and upwards) running under Unicode. Instead, please try the following:&lt;br /&gt;
&lt;br /&gt;
# Make a clean install of Moodle 1.5.x (the latest version available)&lt;br /&gt;
# Restore all your courses there (they should work if they were working originally)&lt;br /&gt;
# Upgrade your site to Moodle 1.6 and run the UTF-8 migration script&lt;br /&gt;
# Backup your courses again&lt;br /&gt;
&lt;br /&gt;
This will produce a new set of backup files that will be 100% UTF-8 and you will be able to use them with Moodle 1.6 without any problems.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.6}}From 1.6 onwards, 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;
== 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;
*[[Backup restore]] Version 1.6 description of screens for both&lt;br /&gt;
*[[Restore]] almost same as backup_restore&lt;br /&gt;
*[[Roll courses forward]] new Version 1.7 option&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=66708 Scheduled backup fails] forum discussion including possible solution to &amp;quot;An error occured while copying files&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Repairing Database Corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[http://youtube.com/watch?v=ufAmf_jm_p8 How to backup a whole Moodle site video]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Backup]]&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>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Backup_and_restore_FAQ&amp;diff=31142</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Backup_and_restore_FAQ&amp;diff=31142"/>
		<updated>2008-01-10T12:49:44Z</updated>

		<summary type="html">&lt;p&gt;Jaime: A misleading sentence corrected, and a few refinements.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
;Site backups&lt;br /&gt;
:Site backups, as explained in [[Upgrading_Moodle#Backup_important_data|upgrading Moodle]], are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
;Course backups&lt;br /&gt;
:Course backups, configured on the [[admin/backup|backup]] page, are more expensive in terms of time and CPU usage. The recovery time to have your site running again is longer. Course backups are useful for obtaining &amp;quot;fresh&amp;quot; copies of courses to be re-used or distributed individually, however they should never be used as a primary backup system (unless your hosting doesn&#039;t allow the preferred site backups). In order to make scheduled backups, you have to set up CRON to run periodically. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How do I backup my whole Moodle site?==&lt;br /&gt;
&lt;br /&gt;
There are two main things you need to make a copy of - the database and the uploaded files. The Moodle scripts themselves are less important, since you can always download a fresh copy if you have to.&lt;br /&gt;
&lt;br /&gt;
There are many ways to do such backups. Here is an outline of a little script you can run on Unix to backup the database (it works well to have such a script run daily via a cron task):&lt;br /&gt;
&lt;br /&gt;
 cd /my/backup/directory&lt;br /&gt;
 mv moodle-database.sql.gz moodle-database-old.sql.gz&lt;br /&gt;
 mysqldump -h example.com -u myusername --password=mypassword -C -Q -e -a mydatabasename &amp;gt; moodle-database.sql&lt;br /&gt;
 gzip moodle-database.sql&lt;br /&gt;
&lt;br /&gt;
For the files, you can use rsync regularly to copy only the changed files to another host:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvtz --delete -e ssh mysshusername@example.com:/my/server/directory /my/backup/directory/&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Character Encoding&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When dumping the entire Moodle database, Administrators should be careful to watch for possible character encoding issues. In some instances, backups created with mysqldump or phpmyadmin may not properly encode all of the data resulting in spurious A characters. One solution is to use mySQL Administrator 1.1 or another tool that will force a UTF-8 dump of the data.&lt;br /&gt;
&lt;br /&gt;
==How do I restore a backup of my whole Moodle site?==&lt;br /&gt;
&lt;br /&gt;
If you have followed the above instructions and created a backup of a Moodle site, you may need to know how to restore the site backup you created.  Here is a set of basic steps that make up the restore process.&lt;br /&gt;
&lt;br /&gt;
1. Rename the original moodle directory to something different (so you still have it) and copy the backed up moodle directory or a newly downloaded moodle directory in its place.&lt;br /&gt;
&lt;br /&gt;
2. If you are running mysql, a backup of the database should be a .sql, .gz or .tar.gz file.  If it is .tar.gz or .gz you need to extract it until it is an sql file.&lt;br /&gt;
&lt;br /&gt;
 tar -xzvf moodlesqlfile.tar.gz&lt;br /&gt;
&lt;br /&gt;
3. If you are running mysql, import the sql file back into a newly created database on the mysql server.  Be careful here, some backups try to import right back into the same working database that moodle is connected to.  This causes database problems that damage a Moodle installation.  The best thing to do is make a new database, restore the backed up database into it, and change the Moodle config.php file to connect to this new database (this way you still have the original database).&lt;br /&gt;
&lt;br /&gt;
once you have created the new database:&lt;br /&gt;
 mysql -p new_database &amp;lt; moodlesqlfile.sql&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;
&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;
&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;
&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;
There are various ways of repairing tables, including using MySQL Admin.&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;
==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 Cleanr 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 charachter 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;
==How can I restore pre 1.6 non-ISO-8859-1 backups to Moodle 1.6 (Unicode)?==&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.6}}Any backup files with contents which are not 100% ISO-8859-1 will be a problem to restore to Moodle 1.6 (and upwards) running under Unicode. Instead, please try the following:&lt;br /&gt;
&lt;br /&gt;
# Make a clean install of Moodle 1.5.x (the latest version available)&lt;br /&gt;
# Restore all your courses there (they should work if they were working originally)&lt;br /&gt;
# Upgrade your site to Moodle 1.6 and run the UTF-8 migration script&lt;br /&gt;
# Backup your courses again&lt;br /&gt;
&lt;br /&gt;
This will produce a new set of backup files that will be 100% UTF-8 and you will be able to use them with Moodle 1.6 without any problems.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.6}}From 1.6 onwards, 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;
== 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;
*[[Backup restore]] Version 1.6 description of screens for both&lt;br /&gt;
*[[Restore]] almost same as backup_restore&lt;br /&gt;
*[[Roll courses forward]] new Version 1.7 option&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=66708 Scheduled backup fails] forum discussion including possible solution to &amp;quot;An error occured while copying files&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Repairing Database Corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[http://youtube.com/watch?v=ufAmf_jm_p8 How to backup a whole Moodle site video]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Backup]]&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>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Backup_and_restore_FAQ&amp;diff=31125</id>
		<title>Backup and restore FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Backup_and_restore_FAQ&amp;diff=31125"/>
		<updated>2008-01-10T11:05:51Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Added Moodle 1.6 template and link to Portuguese translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
;Site backups&lt;br /&gt;
:Site backups, as explained in [[Upgrading_Moodle#Backup_important_data|upgrading Moodle]], are recommended in order to have all data saved with the best confidence and the shortest recovery time.&lt;br /&gt;
&lt;br /&gt;
;Course backups&lt;br /&gt;
:Course backups, configured on the [[admin/backup|backup]] page, are more expensive in terms of time and CPU usage. The recovery time to have your site running again is longer. Course backups are useful for obtaining &amp;quot;fresh&amp;quot; copies of courses to be re-used or distributed individually, however they should never be used as a primary backup system (unless your hosting doesn&#039;t allow the preferred site backups). In order to make scheduled backups, you have to set up CRON to run periodically. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How do I backup my whole Moodle site?==&lt;br /&gt;
&lt;br /&gt;
There are two main things you need to make a copy of - the database and the uploaded files. The Moodle scripts themselves are less important, since you can always download a fresh copy if you have to.&lt;br /&gt;
&lt;br /&gt;
There are many ways to do such backups. Here is an outline of a little script you can run on Unix to backup the database (it works well to have such a script run daily via a cron task):&lt;br /&gt;
&lt;br /&gt;
 cd /my/backup/directory&lt;br /&gt;
 mv moodle-database.sql.gz moodle-database-old.sql.gz&lt;br /&gt;
 mysqldump -h example.com -u myusername --password=mypassword -C -Q -e -a mydatabasename &amp;gt; moodle-database.sql&lt;br /&gt;
 gzip moodle-database.sql&lt;br /&gt;
&lt;br /&gt;
For the files, you can use rsync regularly to copy only the changed files to another host:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvtz --delete -e ssh mysshusername@example.com:/my/server/directory /my/backup/directory/&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Character Encoding&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When dumping the entire Moodle database, Administrators should be careful to watch for possible character encoding issues. In some instances, backups created with mysqldump or phpmyadmin may not properly encode all of the data resulting in spurious A characters. One solution is to use mySQL Administrator 1.1 or another tool that will force a UTF-8 dump of the data.&lt;br /&gt;
&lt;br /&gt;
==How do I restore a backup of my whole Moodle site?==&lt;br /&gt;
&lt;br /&gt;
If you have followed the above instructions and created a backup of a Moodle site, you may need to know how to restore the site backup you created.  Here is a set of basic steps that make up the restore process.&lt;br /&gt;
&lt;br /&gt;
1. Rename the original moodle directory to something different (so you still have it) and copy the backed up moodle directory or a newly downloaded moodle directory in its place.&lt;br /&gt;
&lt;br /&gt;
2. If you are running mysql, a backup of the database should be a .sql, .gz or .tar.gz file.  If it is .tar.gz or .gz you need to extract it until it is an sql file.&lt;br /&gt;
&lt;br /&gt;
 tar -xzvf moodlesqlfile.tar.gz&lt;br /&gt;
&lt;br /&gt;
3. If you are running mysql, import the sql file back into a newly created database on the mysql server.  Be careful here, some backups try to import right back into the same working database that moodle is connected to.  This causes database problems that damage a Moodle installation.  The best thing to do is make a new database, restore the backed up database into it, and change the Moodle config.php file to connect to this new database (this way you still have the original database).&lt;br /&gt;
&lt;br /&gt;
once you have created the new database:&lt;br /&gt;
 mysql -p new_database &amp;lt; moodlesqlfile.sql&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;
&lt;br /&gt;
==Error: An error occurred deleting old backup data==&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;
&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;
&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;
There are various ways of repairing tables, including using MySQL Admin.&lt;br /&gt;
&lt;br /&gt;
==XML error: not well-formed (invalid token) at line YYYY==&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 paragraph.&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;
==Still XML error: how to clean xml borked 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 paragraph. 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 Cleanr 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 charachter 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;
==Some of your courses weren&#039;t saved!!==&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;
==Restoring pre 1.6 non-ISO-8859-1 backups to Moodle 1.6 - Unicode==&lt;br /&gt;
&lt;br /&gt;
Any backup files with contents which are not 100% ISO-8859-1 will be a problem to restore to Moodle 1.6 (and upwards) running under Unicode. Instead, please try the following:&lt;br /&gt;
&lt;br /&gt;
# Make a clean install of Moodle 1.5.x (the latest version available)&lt;br /&gt;
# Restore all your courses there (they should work if they were working originally)&lt;br /&gt;
# Upgrade your site to Moodle 1.6 and run the UTF-8 migration script&lt;br /&gt;
# Backup your courses again&lt;br /&gt;
&lt;br /&gt;
This will produce a new set of backup files that will be 100% UTF-8 and you will be able to use them with Moodle 1.6 without any problems.&lt;br /&gt;
&lt;br /&gt;
==Why are some courses being skipped?==&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.6}}From 1.6 onwards, 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;
== 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;
*[[Backup restore]] Version 1.6 description of screens for both&lt;br /&gt;
*[[Restore]] almost same as backup_restore&lt;br /&gt;
*[[Roll courses forward]] new Version 1.7 option&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=66708 Scheduled backup fails] forum discussion including possible solution to &amp;quot;An error occured while copying files&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Repairing Database Corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[http://youtube.com/watch?v=ufAmf_jm_p8 How to backup a whole Moodle site video]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Backup]]&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>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=MoodleDocs:Guidelines_for_contributors&amp;diff=31114</id>
		<title>MoodleDocs:Guidelines for contributors</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=MoodleDocs:Guidelines_for_contributors&amp;diff=31114"/>
		<updated>2008-01-09T23:15:40Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Link to Portuguese version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Help}}&lt;br /&gt;
==Introduction==&lt;br /&gt;
* You are welcome to contribute to Moodle Docs. Find something that can be improved, either in content, grammar or formatting, and fix it!&lt;br /&gt;
* If you&#039;ve not done so already, please [[Special:Userlogin|login]].&lt;br /&gt;
* Please note that all contributions are released here under [[License|GNU General Public License]].&lt;br /&gt;
* From Moodle 1.6 onwards, every page in Moodle has a link to a corresponding page in Moodle Docs. You can see this on [http://moodle.org moodle.org] and, from an administrator&#039;s perspective, on the [http://demo.moodle.com/ Moodle demo site].&lt;br /&gt;
* Please note that the [http://moodle.org/help.php?file=index.html Moodle help files] will remain in each language pack and so their text need not be included in this documentation.&lt;br /&gt;
* You are encouraged to illustrate documentation with screenshots. Please refer to the [[MoodleDocs:Style guide|style guide]] for further information.&lt;br /&gt;
* If you find any page requiring deletion, please type &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Deletion}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; at the top of the page.&lt;br /&gt;
&lt;br /&gt;
==Creating new pages==&lt;br /&gt;
&lt;br /&gt;
* You are welcome to create pages for additional documentation. Simply type the name of your new page between double brackets &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[New page name]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; on an existing page and follow the link to start editing the new page. Alternatively, you may type in your browser address bar: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://docs.moodle.org/en/New_page_name&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (i.e. replace spaces in the new page name with underscores).&lt;br /&gt;
* Please choose a short name and capitalize the first word only (with a few exceptions, such as the word &#039;&#039;Moodle&#039;&#039;).&lt;br /&gt;
* New developer documentation pages should be added to the &#039;&#039;Development namespace&#039;&#039; by typing &amp;lt;code&amp;gt;Development:&amp;lt;/code&amp;gt; before the new page name i.e. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Development:New page name]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Please follow the [[MoodleDocs:Style guide|style guide]], in particular ensuring that new pages are categorised.&lt;br /&gt;
* Page titles may be changed in the future by redirecting/moving pages, as part of documentation restructuring.&lt;br /&gt;
&lt;br /&gt;
==Inter-language linking==&lt;br /&gt;
&lt;br /&gt;
* You are welcome to add inter-language links between pages in different languages. Simply type, for example, &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 MoodleDocs, 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 MoodleDocs]], 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;
==Moodle version templates==&lt;br /&gt;
&lt;br /&gt;
* When adding documentation about a new feature, please add a Moodle version template by typing, for example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Moodle 1.9}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* In addition to highlighting differences in Moodle versions, Moodle version templates automatically categorize articles into version categories, for example [[:Category:Moodle 1.9]].&lt;br /&gt;
* Templates for Moodle versions no longer available from [http://download.moodle.org/ Moodle downloads] can be removed and replaced with ordinary text, for example &amp;quot;From Moodle 1.5 onwards, ...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Page comments ==&lt;br /&gt;
&lt;br /&gt;
* For comments about a particular page, and/or short discussions, please use the corresponding talk page (click on the page comments tab). Please sign and date your talk page contribution by typing four tildes &amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
* For longer discussions about the documentation, please use the Using Moodle [http://moodle.org/mod/forum/view.php?id=5838 Documentation forum].&lt;br /&gt;
&lt;br /&gt;
[[Category:MoodleDocs|Guidelines for contributors]]&lt;br /&gt;
&lt;br /&gt;
[[es:MoodleDocs:Normas para colaboradores]]&lt;br /&gt;
[[fr:MoodleDocs:Recommandations pour contributeurs]]&lt;br /&gt;
[[ja:MoodleDocs:寄稿のガイドライン]]&lt;br /&gt;
[[ru:MoodleDocs:Путеводитель_для_разработчиков_документации]]&lt;br /&gt;
[[zh:MoodleDocs:贡献者指引]]&lt;br /&gt;
[[sv:MoodleDocs:Riktlinjer för bidrag]]&lt;br /&gt;
[[pt:MoodleDocs:Manual para colaboradores]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Category:MoodleDocs&amp;diff=31112</id>
		<title>Category:MoodleDocs</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Category:MoodleDocs&amp;diff=31112"/>
		<updated>2008-01-09T22:29:37Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Added link to Portuguese version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of pages relating to Moodle documentation.&lt;br /&gt;
&lt;br /&gt;
[[fr:Catégorie:MoodleDocs]]&lt;br /&gt;
[[pt:Categoria:MoodleDocs]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Help:Contents&amp;diff=31111</id>
		<title>Help:Contents</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Help:Contents&amp;diff=31111"/>
		<updated>2008-01-09T22:14:43Z</updated>

		<summary type="html">&lt;p&gt;Jaime: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Help}}&lt;br /&gt;
&lt;br /&gt;
*You are welcome to explore Moodle Docs using the links on the [[Main Page|main page]] and/or browse the various [[Special:Categories|categories]]. Alternatively, you may try [[MoodleDocs:Searching|searching]] Moodle Docs.&lt;br /&gt;
*Please feel free to [[MoodleDocs:Guidelines for contributors|contribute]] to Moodle Docs and help create the best documentation for Moodle!&lt;br /&gt;
*If you wish to ask a question about Moodle, please visit the moodle.org [http://moodle.org/course/view.php?id=5 Using Moodle] forums.&lt;br /&gt;
*If you&#039;d like to experiment with this wiki, please do so in the [[Sandbox|sandbox]].&lt;br /&gt;
&lt;br /&gt;
[[Category:MoodleDocs]]&lt;br /&gt;
&lt;br /&gt;
[[es:MoodleDocs:Ayuda]]&lt;br /&gt;
[[fr:Aide:Contenu]]&lt;br /&gt;
[[ru:Справка:Содержание]]&lt;br /&gt;
[[zh:帮助:目录]]&lt;br /&gt;
[[ar:مساعدة: محتويات]]&lt;br /&gt;
[[ja:Help:コンテンツ]]&lt;br /&gt;
[[pt:Ajuda:Conteúdo]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Student_FAQ&amp;diff=31089</id>
		<title>Student FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Student_FAQ&amp;diff=31089"/>
		<updated>2008-01-09T00:56:21Z</updated>

		<summary type="html">&lt;p&gt;Jaime: A typo fixed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
This article is intended to prepare teachers for the kinds of questions their students may ask about their Moodle courses. The article could also be given to students (either printed, copied electronically or simply linked to) but the contents may need to be modified depending upon the age / ability of the students concerned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Access and Navigation==&lt;br /&gt;
&lt;br /&gt;
===Why can&#039;t I log in?===&lt;br /&gt;
There could be many reasons but the most probably is you have simply forgotton your password, are trying the wrong one or are entering it incorrectly. Some other things to think about include:&lt;br /&gt;
* Does you username or password contain a mixture of upper and lower case letter? It should be entered exactly&lt;br /&gt;
* Are cookies enabled on your browser&lt;br /&gt;
&lt;br /&gt;
===How do I gain access to a course?===&lt;br /&gt;
Locate or search for the desired course (you can click &#039;All courses...&#039; in the &#039;My courses&#039; block) and click on the course name. If your teacher has given you an enrollment key, enter it when prompted, and click &#039;&#039;&#039;Enroll me in this course&#039;&#039;&#039;. Once you are enrolled in a course, it will appear under &amp;quot;My courses&amp;quot; any time that your are logged into that Moodle site.&lt;br /&gt;
&lt;br /&gt;
===How do I jump between my courses?===&lt;br /&gt;
&lt;br /&gt;
* &#039;My Courses&#039; block if it has been added to the page you are on&lt;br /&gt;
* Go back to the homepage (see below) and then use the main course block (if it has been added!)&lt;br /&gt;
&lt;br /&gt;
===How do I get back to the homepage?===&lt;br /&gt;
&lt;br /&gt;
Use the navigation trail at the top left of the page or the button at the very bottom of the course&lt;br /&gt;
&lt;br /&gt;
===How do I find course X?===&lt;br /&gt;
If you are not already enrolled in a course you can search for it by name and description.&lt;br /&gt;
&lt;br /&gt;
==Course content==&lt;br /&gt;
===Where have all of the weeks / topics gone?===&lt;br /&gt;
You have probably clicked on the [[Image:One.gif]] icon. To reveal all of the other weeks / topics you need to click on the [[Image:All.gif]] icon which you will see in the right margin of the week / topic.&lt;br /&gt;
You can also use the dropdown box underneath the displayed week / topic to jump to a hidden section&lt;br /&gt;
&lt;br /&gt;
==Emails and forums==&lt;br /&gt;
&lt;br /&gt;
===Why am I not getting any e-mails and others are?===&lt;br /&gt;
Chances are your email address in your profile is either wrong or disabled. It could also be that you are not subscribed to the forums that are generating emails. AOL users may also not receive e-mails if the administrator has banned the use of AOL email addresses.&lt;br /&gt;
&lt;br /&gt;
===How can I stop all of these e-mails?===&lt;br /&gt;
E-mails are an essential part of the way Moodle works. They are used to keep you up to date with what is going on. If you wish to reduce the amount of emails you get you could:&lt;br /&gt;
* Edit your profile and change your e-mail settings to digest&lt;br /&gt;
* Unsubscribe from non-essential forums (although they are there for a reason!)&lt;br /&gt;
* Disable your e-mail address in your profile although this is not recommended and may go against in house rules.&lt;br /&gt;
&lt;br /&gt;
==Assignments and grades==&lt;br /&gt;
&lt;br /&gt;
===Why is there no upload box?===&lt;br /&gt;
This is either because:&lt;br /&gt;
* The assignment has now closed&lt;br /&gt;
* The assignment is not yet open&lt;br /&gt;
* You already uploaded something and the settings prevent resubmissions&lt;br /&gt;
&lt;br /&gt;
===How can I see my recent assignment feedback?===&lt;br /&gt;
There are many ways you can access their feedback. &lt;br /&gt;
The most common method is by simply going to the same place where you uploaded the work. &lt;br /&gt;
Another common method is to follow the link in the recent activity block (if the teacher has included it on the course).&lt;br /&gt;
Another method would be to access the grade book and then follow the link for the required assignment.&lt;br /&gt;
Depending upon how the assignment was set up, you may receive an email when it has been marked with a direct link to the feedback.&lt;br /&gt;
&lt;br /&gt;
===Why is my course average so low?===&lt;br /&gt;
Don&#039;t panic! The Moodle gradebook takes into account unmarked and unsubmitted work. In other words, you start with zero and as you progress through the course and complete graded activities the percentage will steadily rise&lt;br /&gt;
&lt;br /&gt;
==Quizzes==&lt;br /&gt;
&lt;br /&gt;
===Which button do I press when I have finished a quiz?===&lt;br /&gt;
That depends upon what you want to do ....&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Student documentation]]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=43084 AOL - no friend of education!] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Student]]&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Estudiante]]&lt;br /&gt;
[[fr:FAQ d&#039;étudiant]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=User:Jaime_Villate&amp;diff=31002</id>
		<title>User:Jaime Villate</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=User:Jaime_Villate&amp;diff=31002"/>
		<updated>2008-01-07T13:42:17Z</updated>

		<summary type="html">&lt;p&gt;Jaime: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Professor of Physics at the University of Porto. Responsible for the Portuguese translation of Moodle.&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Translation&amp;diff=10200</id>
		<title>Translation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Translation&amp;diff=10200"/>
		<updated>2006-05-26T14:50:27Z</updated>

		<summary type="html">&lt;p&gt;Jaime: Updated the name of the CVS server, to reflect changes in Sourceforge&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Moodle has been designed for internationalisation. Each &#039;string&#039; or &#039;page&#039; of text that is displayed as part of the interface is drawn from a set of language files.&lt;br /&gt;
&lt;br /&gt;
== Structure of a Moodle language pack ==&lt;br /&gt;
{{Moodle 1.6}}&lt;br /&gt;
All Moodle language packs are located in the lang directory, with each language in a unique directory named the same as the language short name (en, fr, nl, es ...). Since Moodle 1.6, you will find the lang directory in your data folder with a clear notice they are UTF-8 language packs: es_utf8, fr_utf8. The default English language pack (en_utf8) is in &#039;&#039;moodle/lang&#039;&#039;, along with a tiny non utf8 version (en) for during the 1.5 to 1.6 upgrade, prior to the database migrationproces.&lt;br /&gt;
&lt;br /&gt;
All the main files are in this &#039;&#039;lang/xx_utf8&#039;&#039; folder, with .php extensions (eg &#039;&#039;moodle.php&#039;&#039;, &#039;&#039;resource.php&#039;&#039; etc).  These files contains short phrases, often called &amp;quot;strings&amp;quot;. Each string supports variable substitution, to support variable ordering in different languages.&lt;br /&gt;
&lt;br /&gt;
e.g. &amp;lt;code&amp;gt;$strdueby = get_string(&amp;quot;assignmentdueby&amp;quot;, &amp;quot;assignment&amp;quot;, userdate($date));&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a string doesn&#039;t exist in a particular language, then the equivalent in English will automatically be used instead.&lt;br /&gt;
&lt;br /&gt;
There is also a help folder containing .html web pages for pop-up context-sensitive help.&lt;br /&gt;
&lt;br /&gt;
In the folder install/lang/xx you will also find some language packs. These language packs contain a small summary of each language pack, containing only the strings needed for the installation process. These files are generated automatically every night by the download.moodle.org server and &#039;&#039;&#039;must not be changed manually&#039;&#039;&#039;. For translators this is a unusual experience, since changes you add to the strings used in the installation script will not be visible before a new download of your 1.6 installation and after 24 hours.&lt;br /&gt;
&lt;br /&gt;
==Creating a new language pack==&lt;br /&gt;
&lt;br /&gt;
If your language is not yet supported by Moodle, you may want to start a new translation.  If you are starting a new language, please contact [[User:koen roggemans|Koen Roggemans]] our Translation Coordinator (&#039;&#039;translation@moodle.org&#039;&#039;). You may also like to post in the Using Moodle [http://moodle.org/mod/forum/view.php?id=43 Languages Forum].&lt;br /&gt;
&lt;br /&gt;
All you need to do is create a new folder in the lang directory using the 2-letter code for your language. You can find these standard codes in &#039;&#039;lib/languages.php&#039;&#039;. If you are making a local variation of another language, use the code of that language with an underscore and a meaningful two letter extension (e.g. pt for Portuguese and pt_br for Brasilian variation of the Portuguese language pack).  If you are making a Unicode version add _utf8 at the end (eg sr_utf8). Language packs created with a new Moodle 1.6 or with a Moodle 1.6 in Unicode mode are always in Unicode and should get the _utf8 suffix.&lt;br /&gt;
&lt;br /&gt;
Next, copy the &#039;&#039;langconfig.php&#039;&#039; from another language into your new directory.  The one from the &amp;quot;en_utf8&amp;quot; folder is usually best.&lt;br /&gt;
&lt;br /&gt;
You are now ready to start inserting new strings by editing your language... see below for details on this.&lt;br /&gt;
&lt;br /&gt;
Note that your new language pack may not show up immediately on the dropdown list if under your site configuration you have langcache set to &amp;quot;Yes.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.6}}&lt;br /&gt;
Since Moodle 1.6, only UTF-8 is used as characterset. This setting is located in a string named &amp;quot;thischarset&amp;quot; in &#039;&#039;langconfig.php&#039;&#039; and should not be changed. All other settings for your language pack, as the notation of dates, the locale string, the direction etc. are in this file and can be changed there. Just be careful! ;-)&lt;br /&gt;
&lt;br /&gt;
==Editing an existing language pack==&lt;br /&gt;
&lt;br /&gt;
===Making small customisations===&lt;br /&gt;
&lt;br /&gt;
If you just want to change a few things in the interface to suit your own site better, don&#039;t start editing one of the standard language packs.  If you do then your changes will be overwritten next time you upgrade to a new Moodle.&lt;br /&gt;
&lt;br /&gt;
Instead, use the instructions above for making a brand new language pack, add a string &#039;parentlanguage&#039; (in &#039;&#039;langconfig.php&#039;&#039;) with the code of the language that is most similar to yours.  That language will be checked by Moodle for anything missing from yours.&lt;br /&gt;
&lt;br /&gt;
In Moodle versions BEFORE 1.6, a good name for a local English variant could be &amp;quot;en_local&amp;quot;, and the parent language would be defined as &amp;quot;en&amp;quot; or &amp;quot;en_us&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;$string[&#039;parentlanguage&#039;] = &#039;en&#039;;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you also have to create a string &#039;thislanguage&#039; in &#039;&#039;moodle.php&#039;&#039; for your &amp;quot;en_local&amp;quot; language pack:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;$string[&#039;thislanguage&#039;] = &#039;English at OCU&#039;;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.5.x and earlier you would have to then make sure everyone chooses your new language pack.  They can change it in their profiles or you can issue an SQL command to change everyone, and prevent them changing it by restricting the available languages on Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[Variables]].&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.6}}&lt;br /&gt;
Starting in Moodle 1.6, the very best method is just to create a new language directory called &amp;quot;xxxx_local&amp;quot; where xxxx is the name of the language pack you want to modify (eg es_utf8_local or ja_utf8_local).  This new local language pack will automatically be checked before the main one.   The local pack only needs to contain the local changes (you don&#039;t need a complete copy of the language you are modifying).  It will not appear in the language menus for selection and your users do not need to change their settings. &lt;br /&gt;
&lt;br /&gt;
The &#039;parentlanguage&#039; method described above for 1.5 still works, just in case you want to create more than one variant of one language.   In this case, you still have to add the  &#039;thislanguage&#039; string, except in 1.6 you add it to the &#039;&#039;langconfig.php&#039;&#039; and not to  &#039;&#039;moodle.php&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Translating the Moodle interface language files (the &amp;quot;string&amp;quot; files)===&lt;br /&gt;
&lt;br /&gt;
# Log on to your Moodle server as an administrator.&lt;br /&gt;
# Go to Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[Language]], which is the language administration page.&lt;br /&gt;
# On this page you can choose your language from the menu, then choose &amp;quot;Compare and Edit Language&amp;quot;.&lt;br /&gt;
# You should see forms you can edit for each file. If you do not, then you may have to make sure that the files are writeable - you may have to change file permissions in your web folder.&lt;br /&gt;
# The forms consist of three columns, the first is the name of each string, the second is that string in English, and the last is translation in the current language.&lt;br /&gt;
# Edit missing strings in each files (highlighted in colour), remembering to hit the &amp;quot;Save changes&amp;quot; button at the end of each form.&lt;br /&gt;
# It&#039;s OK to leave strings empty - Moodle will simply use the parent language for that string instead. You can define the parent language in langconfig.php, otherwise English is always used by default.&lt;br /&gt;
# A quick way to see all the missing strings is by using the button to &amp;quot;Check for missing strings&amp;quot;. Leave the untranslated strings completely empty or this handy tool won&#039;t work.&lt;br /&gt;
&lt;br /&gt;
===Translating the help files===&lt;br /&gt;
&lt;br /&gt;
There is a built-in editor in Moodle to translate the help files. It uses the en_utf8 language pack as a reference language. You are strongly advised to use this editor: it cleans out some possible problems, it warns you for old translations and it marks (with stars in the drop down list) wich files are out of date and takes care of Unicode.&lt;br /&gt;
If you want another language than English as a reference (wich is not a good idea), you copy a help file from the reference language pack and paste it on the same location in your own language pack. Then use a plain text editor with Unicode support to translate the file, making sure not to modify any code in the file (there usually is no code, just HTML-tags). (DON&#039;T USE A WORDPROCESSOR to write the help-files because these programs add too much rubbish to the files).&lt;br /&gt;
Don&#039;t leave untranslated help files or empty files in your language pack.&lt;br /&gt;
&lt;br /&gt;
Take care to write the helpfiles XHTML-compliant. This means in short:&lt;br /&gt;
&lt;br /&gt;
* All tags should be closed: &amp;lt;pre&amp;gt;&amp;lt;p&amp;gt;lalala&amp;lt;/p&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* All elements should be nested: &amp;lt;pre&amp;gt;&amp;lt;p&amp;gt; lalala &amp;lt;em&amp;gt;lalala&amp;lt;/em&amp;gt; &amp;lt;/p&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* All elements and attributes must be lower case&lt;br /&gt;
* All atributes should be written in full and with quotes : &amp;lt;pre&amp;gt;&amp;lt;p align=&amp;quot;right&amp;quot;&amp;gt; lalala &amp;lt;/p&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Empty elements must end with /&amp;gt;: &amp;lt;pre&amp;gt;&amp;lt;br /&amp;gt; &amp;lt;hr /&amp;gt;&amp;lt;/pre&amp;gt;. You should add an extra space before the &amp;quot;/&amp;quot; symbol.&lt;br /&gt;
* An &amp;lt;img should have an alt=&amp;quot;&amp;quot; (it can be empty) en must be closed like other empty elements with a space and /&amp;gt; like &amp;lt;pre&amp;gt;&amp;lt;img alt=&amp;quot;&amp;quot; src=&amp;quot;picture.gif&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;?= and &amp;lt;? should be &amp;lt;pre&amp;gt;&amp;lt;?php&amp;lt;/pre&amp;gt;&lt;br /&gt;
* There should not be ANY font tags at all. &amp;lt;pre&amp;gt;&amp;lt;p&amp;gt;&amp;lt;em&amp;gt; &amp;lt;h1&amp;gt; &amp;lt;h2&amp;gt;&amp;lt;/pre&amp;gt; etc should be enough for the language files ...&lt;br /&gt;
&lt;br /&gt;
None of the files in the help folder need a doc type, html, body, head opening and closing tags - these files are included with &#039;&#039;help.php&#039;&#039;. The script will take care of welforming the pages. This means also there is not much room for HTML creativity! Please stick to the English example.&lt;br /&gt;
{{Moodle 1.6}}&lt;br /&gt;
The files in the docs folder must be completely XHTML compliant, including doc type, header etc. From Moodle 1.6 they will be moved to this wiki.&lt;br /&gt;
&lt;br /&gt;
Clicking on &amp;quot;Check for missing strings&amp;quot; in the language administration screen will also show you what files you are missing. If you have missing files then Moodle will use the parent language instead, so don&#039;t leave copies of untranslated help files in your language pack or this handy tool won&#039;t work.&lt;br /&gt;
&lt;br /&gt;
==Submitting your language pack to the Moodle project==&lt;br /&gt;
&lt;br /&gt;
Sharing your translation with Moodle will ensure that you help other people who speak your language. Your interface language will be available in future versions of Moodle.&lt;br /&gt;
&lt;br /&gt;
Simply archive your whole new language directory as a zip file and email it to &#039;&#039;translation@moodle.org&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will get back to you with further details.&lt;br /&gt;
&lt;br /&gt;
Checklist you can use before committing:&lt;br /&gt;
&lt;br /&gt;
* No empty files?&lt;br /&gt;
* No untranslated files or strings?&lt;br /&gt;
* Help files not edited with a wordprocessor?&lt;br /&gt;
* README file contains language, name and emailadress of the translator?&lt;br /&gt;
* Foldername is the right language code (check &#039;&#039;moodle\lib\languages.php&#039;&#039;)?&lt;br /&gt;
* Does the language pack run errorfree on a testsite?&lt;br /&gt;
* Are the strings and files XHTML compliant?&lt;br /&gt;
* Does &#039;&#039;langconfig.php&#039;&#039; exists and is it correct?&lt;br /&gt;
&lt;br /&gt;
==Maintenance of a standard language pack==&lt;br /&gt;
&lt;br /&gt;
If you are committed to maintaining a language in Moodle, it&#039;s best to use [[CVS for Developers|Moodle CVS]] so that you have an up-to-date version of Moodle, and can easily &amp;quot;check in&amp;quot; your changes directly into the Moodle project. &lt;br /&gt;
{{Moodle 1.6}}&lt;br /&gt;
You should always use HEAD to do translation. Instead of modifying the lang pack within your main code tree as it was until Moodle 1.6, you will now be modifying the one within your dataroot/lang directory.&lt;br /&gt;
&lt;br /&gt;
* Always check out the very latest Moodle code&lt;br /&gt;
* Upgrade your site. Of course you use a NON-PRODUCTION server for this.  &lt;br /&gt;
* Go to your dataroot directory and check out the new lang directory from CVS there like this on Unix/Linux&lt;br /&gt;
&lt;br /&gt;
   cd moodledata    (for example)&lt;br /&gt;
   cvs -z3 -d:ext:me@moodle.cvs.sourceforge.net:/cvsroot/moodle co lang&lt;br /&gt;
&lt;br /&gt;
or like this with Tortoise on Windows, &lt;br /&gt;
&lt;br /&gt;
   right click on your dataroot folder, choose &amp;quot;CVS Checkout&amp;quot;, &lt;br /&gt;
   CVSROOT field:  :ext:sfusername@moodle.cvs.sourceforge.net:/cvsroot/moodle&lt;br /&gt;
   Module: lang&lt;br /&gt;
&lt;br /&gt;
* Continue editing languages from within the Moodle GUI as you did before Moodle 1.6.  &lt;br /&gt;
&lt;br /&gt;
To check them into CVS, just go into the dataroot/lang directory and commit your changes.&lt;br /&gt;
&lt;br /&gt;
If you really want to continue updating the language packs for 1.5.x or earlier, then you should zip the folder of your langpack and mail it to &#039;&#039;translation@moodle.org&#039;&#039;. CVS write access on moodle/lang/xx will be moved to lang/xx&lt;br /&gt;
&lt;br /&gt;
Please contact &#039;&#039;translation@moodle.org&#039;&#039; if you need help setting this up.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=43 Languages Forum] - news and discussion about issues that affect translations&lt;br /&gt;
*[[Translation credits]]&lt;br /&gt;
*To keep in touch with changes in the project on a day-to-day basis it is recommended that you subscribe to the [http://sourceforge.net/mail/?group_id=30935 CVS mailing list]. This helps to keep your translation as close to the English text as possible.&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
&lt;br /&gt;
[[es:Traducciones]]&lt;br /&gt;
[[nl:Vertalen]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>
	</entry>
</feed>