<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mcampbell</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mcampbell"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/Special:Contributions/Mcampbell"/>
	<updated>2026-04-18T11:28:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Custom_SQL_queries_report&amp;diff=70880</id>
		<title>Custom SQL queries report</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Custom_SQL_queries_report&amp;diff=70880"/>
		<updated>2010-04-09T21:49:10Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Monthly Usage by Role */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Created by The Open University&lt;br /&gt;
&lt;br /&gt;
This admin report plugin allows Administrators to set up arbitrary database queries to act as ad-hoc reports. Reports can be of two types: either run on demand, or scheduled to run automatically. Other users with the right capability can go in and see a list of queries that they have access to. Results can be viewed on-screen or downloaded as CSV.&lt;br /&gt;
&lt;br /&gt;
==Installing this report==&lt;br /&gt;
&lt;br /&gt;
Follow the generic [[Installing contributed modules or plugins]] documentation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Screen shots==&lt;br /&gt;
&lt;br /&gt;
Here are two example screen shots, showing the two main screens.&lt;br /&gt;
&lt;br /&gt;
[[Image:Custom_report_list.png|thumb|none|600px|The list of available reports]]&lt;br /&gt;
[[Image:Custom_report.png|thumb|none|600px|The results of running one of the reports]]&lt;br /&gt;
&lt;br /&gt;
(Note, these screen shots are in the OU theme, not the standard Moodle theme, and iCMA is OU-jargon for quiz.)&lt;br /&gt;
&lt;br /&gt;
==Interface for normal users==&lt;br /&gt;
&lt;br /&gt;
===List of available queries===&lt;br /&gt;
&lt;br /&gt;
Users with the report/customsql:view capability can access the list of reports in the admin block. Each query is accessible only to a certain people. There are three levels of access:&lt;br /&gt;
* Available to any one who can access the report at all (those with report/customsql:view).&lt;br /&gt;
* Available to people who are able to see other system reports (those with moodle/site:viewreports)&lt;br /&gt;
* Available to administrators only (those with moodle/site:config)&lt;br /&gt;
&lt;br /&gt;
When you go to the list, it will only show the queries you have access to. There is a note beside each query saying when it was last run, and how long it took to generate.&lt;br /&gt;
&lt;br /&gt;
The list shows on-demand and scheduled queries separately.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Running an on-demand query===&lt;br /&gt;
&lt;br /&gt;
To run an on-demand query, click on its name in the list of queries.&lt;br /&gt;
&lt;br /&gt;
The query will be run, and the results will be displayed as a table. Any URLs in the table will automatically be made into hyperlinks.&lt;br /&gt;
&lt;br /&gt;
A description of the query may appear above the table.&lt;br /&gt;
&lt;br /&gt;
The summary of when the query was run and how long it took is shown at the bottom, along with a link to download the CSV file (for example to get the data into Excel) and a link back to the list of all available queries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Viewing the results of scheduled queries===&lt;br /&gt;
&lt;br /&gt;
Scheduled queries can work in one of two ways. Either each run of the report generates and entire table of reasults, or each run just creates one line of results, and the report builds up a row at a time.&lt;br /&gt;
&lt;br /&gt;
When you click the name in the list of queries, you get taken to a display of the latest results, just like in the on-demand case.&lt;br /&gt;
&lt;br /&gt;
However, if each scheduled run generates a complete report, then at the bottom of a page there will be a list of all the previous runs of the report, so that you can go and see how the report changed over time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Interface for administrators==&lt;br /&gt;
&lt;br /&gt;
Administrators (that is, users with report/customsql:definequeries) see everything that other users see, but with some additions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Additional controls in the staff interface===&lt;br /&gt;
&lt;br /&gt;
Administrators get shown who each report in the list is available to.&lt;br /&gt;
&lt;br /&gt;
They also get an edit and a delete icon next to each query.&lt;br /&gt;
&lt;br /&gt;
There is an &#039;&#039;&#039;Add new query button&#039;&#039;&#039; at the end of the list of queries.&lt;br /&gt;
&lt;br /&gt;
When viewing a particular query, Administrators get an edit and a delete link underneath the table of results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Adding or editing a query===&lt;br /&gt;
&lt;br /&gt;
When you click the &#039;&#039;&#039;Add new query button&#039;&#039;&#039;, you get taken to an editing form that lets you define the query.&lt;br /&gt;
&lt;br /&gt;
You must give the query a name.&lt;br /&gt;
&lt;br /&gt;
You can optionally enter a description that is displayed above the results table. You should use this to explain what the results of the query mean.&lt;br /&gt;
&lt;br /&gt;
You must enter the SQL to generate the results you want displayed. This must be an SQL select statement. You must use the prefix prefix_ for table names. It should not be possible to enter any SQL that would alter the contents of the database.&lt;br /&gt;
&lt;br /&gt;
You choose who you want the query to be accessible to.&lt;br /&gt;
&lt;br /&gt;
You choose whether the query should be run on-demand or scheduled weekly or monthly. If the report is scheduled, you can say whether the each run returns one row to be added to a single table, or whether each run generates a separate table.&lt;br /&gt;
&lt;br /&gt;
When you save the new query, the SQL is checked to make sure that it will execute without errors. If you have said that the report will only return a single row, this is also checked.&lt;br /&gt;
After saving the query, if this was a manual query, you are taken to the query results page, so you can see what the results look like. If it was an automatic query or if you cancel the form, you are taken to the list of available queries.&lt;br /&gt;
&lt;br /&gt;
Editing an existing query uses the same form as for adding a new query, but to change the properties of an existing query.&lt;br /&gt;
&lt;br /&gt;
Note that at the OU, weeks start on Saturday. If you don&#039;t like that, there is a fairly obvious constant to hack at the top of locallib.php.&lt;br /&gt;
&lt;br /&gt;
===Deleting a query===&lt;br /&gt;
&lt;br /&gt;
When you click the delete icon or link for a query, you are taken to a confirmation page that shows you SQL of the query you are about to delete. The query is only deleted if you click Yes on the confirmation page.&lt;br /&gt;
&lt;br /&gt;
After deleting a query, you are taken back to the list of queries.&lt;br /&gt;
&lt;br /&gt;
==Share your interesting queries here==&lt;br /&gt;
&lt;br /&gt;
If you come up with any interesting SQL to custom reports, you can share it here.&lt;br /&gt;
&lt;br /&gt;
===Quiz attempts in the last week/month===&lt;br /&gt;
&lt;br /&gt;
Set this up as a scheduled report:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(*)&lt;br /&gt;
FROM prefix_quiz_attempts&lt;br /&gt;
WHERE timefinish &amp;gt; %%STARTTIME%%&lt;br /&gt;
    AND timefinish &amp;lt;= %%ENDTIME%%&lt;br /&gt;
    AND preview = 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This &#039;&#039;&#039;must&#039;&#039;&#039; be set up as a &#039;&#039;&#039;Scheduled, on the first day of each week&#039;&#039;&#039; or &#039;&#039;&#039;Scheduled, on the first day of each month&#039;&#039;&#039; report, or it will not work.&lt;br /&gt;
&lt;br /&gt;
===Usage summary===&lt;br /&gt;
&lt;br /&gt;
This report shows roughly the same usage statistics that are sent to moodle.org when you register your site. The ones that are aggregated at http://moodle.org/stats/. (The only difference is that the registration form does not do AND confirmed = 1 for some reason.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_course) - 1 AS courses,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_user WHERE deleted = 0 AND confirmed = 1) AS users,&lt;br /&gt;
(SELECT COUNT(DISTINCT ra.userid)&lt;br /&gt;
 FROM prefix_role_capabilities rc&lt;br /&gt;
 JOIN prefix_role_assignments ra ON ra.roleid = rc.roleid&lt;br /&gt;
 WHERE rc.capability IN (&#039;moodle/course:upd&#039; || &#039;ate&#039;, &#039;moodle/site:doanything&#039;)) AS teachers,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_role_assignments) AS enrolments,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_forum_posts) AS forum_posts,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_resource) AS resources,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_question) AS questions&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are two interesting queries in this blog post [http://tjhunt.blogspot.com/2010/03/when-do-students-submit-their-online.html When do students submit their online tests?].&lt;br /&gt;
&lt;br /&gt;
===Monthly Usage by Role===&lt;br /&gt;
&lt;br /&gt;
This report shows a distinct count of users by their role, accessing your site.  Each instance of user and role is counted once per month, no matter how many courses they access.  We use this to show the total number of students and teachers accessing our site.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT &lt;br /&gt;
month(from_unixtime(`prefix_stats_user_monthly`.`timeend`)) AS calendar_month,&lt;br /&gt;
year(from_unixtime(`prefix_stats_user_monthly`.`timeend`)) AS calendar_year,&lt;br /&gt;
prefix_role.name as user_role,&lt;br /&gt;
COUNT(DISTINCT prefix_stats_user_monthly.userid) AS total_users&lt;br /&gt;
FROM&lt;br /&gt;
prefix_stats_user_monthly&lt;br /&gt;
Inner Join prefix_role_assignments ON prefix_stats_user_monthly.userid = prefix_role_assignments.userid&lt;br /&gt;
Inner Join prefix_context ON prefix_role_assignments.contextid = prefix_context.id&lt;br /&gt;
Inner Join prefix_role ON prefix_role_assignments.roleid = prefix_role.id&lt;br /&gt;
WHERE prefix_context.contextlevel = 50&lt;br /&gt;
AND `prefix_stats_user_monthly`.`stattype` = &#039;activity&#039;&lt;br /&gt;
AND prefix_stats_user_monthly.courseid &amp;lt;&amp;gt;1&lt;br /&gt;
GROUP BY month(from_unixtime(`prefix_stats_user_monthly`.`timeend`)),&lt;br /&gt;
year(from_unixtime(`prefix_stats_user_monthly`.`timeend`)),&lt;br /&gt;
prefix_stats_user_monthly.stattype,&lt;br /&gt;
prefix_role.name&lt;br /&gt;
ORDER BY &lt;br /&gt;
year(from_unixtime(`prefix_stats_user_monthly`.`timeend`)), month(from_unixtime(`prefix_stats_user_monthly`.`timeend`)),&lt;br /&gt;
prefix_role.name&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must have Statistics turned on to be able to generate any data with this report.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Reports_(administrator)]] for other admin reports&lt;br /&gt;
* [[Installing contributed modules or plugins]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136484 Custom SQL queries report] forum announcement&lt;br /&gt;
&lt;br /&gt;
[[Category: Administrator]]&lt;br /&gt;
[[Category:Report]]&lt;br /&gt;
[[Category:Contributed_code]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Custom_SQL_queries_report&amp;diff=70879</id>
		<title>Custom SQL queries report</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Custom_SQL_queries_report&amp;diff=70879"/>
		<updated>2010-04-09T21:47:50Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Created by The Open University&lt;br /&gt;
&lt;br /&gt;
This admin report plugin allows Administrators to set up arbitrary database queries to act as ad-hoc reports. Reports can be of two types: either run on demand, or scheduled to run automatically. Other users with the right capability can go in and see a list of queries that they have access to. Results can be viewed on-screen or downloaded as CSV.&lt;br /&gt;
&lt;br /&gt;
==Installing this report==&lt;br /&gt;
&lt;br /&gt;
Follow the generic [[Installing contributed modules or plugins]] documentation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Screen shots==&lt;br /&gt;
&lt;br /&gt;
Here are two example screen shots, showing the two main screens.&lt;br /&gt;
&lt;br /&gt;
[[Image:Custom_report_list.png|thumb|none|600px|The list of available reports]]&lt;br /&gt;
[[Image:Custom_report.png|thumb|none|600px|The results of running one of the reports]]&lt;br /&gt;
&lt;br /&gt;
(Note, these screen shots are in the OU theme, not the standard Moodle theme, and iCMA is OU-jargon for quiz.)&lt;br /&gt;
&lt;br /&gt;
==Interface for normal users==&lt;br /&gt;
&lt;br /&gt;
===List of available queries===&lt;br /&gt;
&lt;br /&gt;
Users with the report/customsql:view capability can access the list of reports in the admin block. Each query is accessible only to a certain people. There are three levels of access:&lt;br /&gt;
* Available to any one who can access the report at all (those with report/customsql:view).&lt;br /&gt;
* Available to people who are able to see other system reports (those with moodle/site:viewreports)&lt;br /&gt;
* Available to administrators only (those with moodle/site:config)&lt;br /&gt;
&lt;br /&gt;
When you go to the list, it will only show the queries you have access to. There is a note beside each query saying when it was last run, and how long it took to generate.&lt;br /&gt;
&lt;br /&gt;
The list shows on-demand and scheduled queries separately.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Running an on-demand query===&lt;br /&gt;
&lt;br /&gt;
To run an on-demand query, click on its name in the list of queries.&lt;br /&gt;
&lt;br /&gt;
The query will be run, and the results will be displayed as a table. Any URLs in the table will automatically be made into hyperlinks.&lt;br /&gt;
&lt;br /&gt;
A description of the query may appear above the table.&lt;br /&gt;
&lt;br /&gt;
The summary of when the query was run and how long it took is shown at the bottom, along with a link to download the CSV file (for example to get the data into Excel) and a link back to the list of all available queries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Viewing the results of scheduled queries===&lt;br /&gt;
&lt;br /&gt;
Scheduled queries can work in one of two ways. Either each run of the report generates and entire table of reasults, or each run just creates one line of results, and the report builds up a row at a time.&lt;br /&gt;
&lt;br /&gt;
When you click the name in the list of queries, you get taken to a display of the latest results, just like in the on-demand case.&lt;br /&gt;
&lt;br /&gt;
However, if each scheduled run generates a complete report, then at the bottom of a page there will be a list of all the previous runs of the report, so that you can go and see how the report changed over time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Interface for administrators==&lt;br /&gt;
&lt;br /&gt;
Administrators (that is, users with report/customsql:definequeries) see everything that other users see, but with some additions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Additional controls in the staff interface===&lt;br /&gt;
&lt;br /&gt;
Administrators get shown who each report in the list is available to.&lt;br /&gt;
&lt;br /&gt;
They also get an edit and a delete icon next to each query.&lt;br /&gt;
&lt;br /&gt;
There is an &#039;&#039;&#039;Add new query button&#039;&#039;&#039; at the end of the list of queries.&lt;br /&gt;
&lt;br /&gt;
When viewing a particular query, Administrators get an edit and a delete link underneath the table of results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Adding or editing a query===&lt;br /&gt;
&lt;br /&gt;
When you click the &#039;&#039;&#039;Add new query button&#039;&#039;&#039;, you get taken to an editing form that lets you define the query.&lt;br /&gt;
&lt;br /&gt;
You must give the query a name.&lt;br /&gt;
&lt;br /&gt;
You can optionally enter a description that is displayed above the results table. You should use this to explain what the results of the query mean.&lt;br /&gt;
&lt;br /&gt;
You must enter the SQL to generate the results you want displayed. This must be an SQL select statement. You must use the prefix prefix_ for table names. It should not be possible to enter any SQL that would alter the contents of the database.&lt;br /&gt;
&lt;br /&gt;
You choose who you want the query to be accessible to.&lt;br /&gt;
&lt;br /&gt;
You choose whether the query should be run on-demand or scheduled weekly or monthly. If the report is scheduled, you can say whether the each run returns one row to be added to a single table, or whether each run generates a separate table.&lt;br /&gt;
&lt;br /&gt;
When you save the new query, the SQL is checked to make sure that it will execute without errors. If you have said that the report will only return a single row, this is also checked.&lt;br /&gt;
After saving the query, if this was a manual query, you are taken to the query results page, so you can see what the results look like. If it was an automatic query or if you cancel the form, you are taken to the list of available queries.&lt;br /&gt;
&lt;br /&gt;
Editing an existing query uses the same form as for adding a new query, but to change the properties of an existing query.&lt;br /&gt;
&lt;br /&gt;
Note that at the OU, weeks start on Saturday. If you don&#039;t like that, there is a fairly obvious constant to hack at the top of locallib.php.&lt;br /&gt;
&lt;br /&gt;
===Deleting a query===&lt;br /&gt;
&lt;br /&gt;
When you click the delete icon or link for a query, you are taken to a confirmation page that shows you SQL of the query you are about to delete. The query is only deleted if you click Yes on the confirmation page.&lt;br /&gt;
&lt;br /&gt;
After deleting a query, you are taken back to the list of queries.&lt;br /&gt;
&lt;br /&gt;
==Share your interesting queries here==&lt;br /&gt;
&lt;br /&gt;
If you come up with any interesting SQL to custom reports, you can share it here.&lt;br /&gt;
&lt;br /&gt;
===Quiz attempts in the last week/month===&lt;br /&gt;
&lt;br /&gt;
Set this up as a scheduled report:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(*)&lt;br /&gt;
FROM prefix_quiz_attempts&lt;br /&gt;
WHERE timefinish &amp;gt; %%STARTTIME%%&lt;br /&gt;
    AND timefinish &amp;lt;= %%ENDTIME%%&lt;br /&gt;
    AND preview = 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This &#039;&#039;&#039;must&#039;&#039;&#039; be set up as a &#039;&#039;&#039;Scheduled, on the first day of each week&#039;&#039;&#039; or &#039;&#039;&#039;Scheduled, on the first day of each month&#039;&#039;&#039; report, or it will not work.&lt;br /&gt;
&lt;br /&gt;
===Usage summary===&lt;br /&gt;
&lt;br /&gt;
This report shows roughly the same usage statistics that are sent to moodle.org when you register your site. The ones that are aggregated at http://moodle.org/stats/. (The only difference is that the registration form does not do AND confirmed = 1 for some reason.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_course) - 1 AS courses,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_user WHERE deleted = 0 AND confirmed = 1) AS users,&lt;br /&gt;
(SELECT COUNT(DISTINCT ra.userid)&lt;br /&gt;
 FROM prefix_role_capabilities rc&lt;br /&gt;
 JOIN prefix_role_assignments ra ON ra.roleid = rc.roleid&lt;br /&gt;
 WHERE rc.capability IN (&#039;moodle/course:upd&#039; || &#039;ate&#039;, &#039;moodle/site:doanything&#039;)) AS teachers,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_role_assignments) AS enrolments,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_forum_posts) AS forum_posts,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_resource) AS resources,&lt;br /&gt;
(SELECT COUNT(id) FROM prefix_question) AS questions&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are two interesting queries in this blog post [http://tjhunt.blogspot.com/2010/03/when-do-students-submit-their-online.html When do students submit their online tests?].&lt;br /&gt;
&lt;br /&gt;
===Monthly Usage by Role===&lt;br /&gt;
&lt;br /&gt;
This report shows a distinct count of users by their role, accessing your site.  Each instance of user and role is counted once per month, no matter how many courses they access.  We use this to show the total number of students and teachers accessing our site.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT &lt;br /&gt;
month(from_unixtime(`prefix_stats_user_monthly`.`timeend`)) AS calendar_month,&lt;br /&gt;
year(from_unixtime(`prefix_stats_user_monthly`.`timeend`)) AS calendar_year,&lt;br /&gt;
prefix_role.name,&lt;br /&gt;
COUNT(DISTINCT prefix_stats_user_monthly.userid) AS TOTAL_COURSES&lt;br /&gt;
FROM&lt;br /&gt;
prefix_stats_user_monthly&lt;br /&gt;
Inner Join prefix_role_assignments ON prefix_stats_user_monthly.userid = prefix_role_assignments.userid&lt;br /&gt;
Inner Join prefix_context ON prefix_role_assignments.contextid = prefix_context.id&lt;br /&gt;
Inner Join prefix_role ON prefix_role_assignments.roleid = prefix_role.id&lt;br /&gt;
WHERE prefix_context.contextlevel = 50&lt;br /&gt;
AND `prefix_stats_user_monthly`.`stattype` = &#039;activity&#039;&lt;br /&gt;
AND prefix_stats_user_monthly.courseid &amp;lt;&amp;gt;1&lt;br /&gt;
GROUP BY month(from_unixtime(`prefix_stats_user_monthly`.`timeend`)),&lt;br /&gt;
year(from_unixtime(`prefix_stats_user_monthly`.`timeend`)),&lt;br /&gt;
prefix_stats_user_monthly.stattype,&lt;br /&gt;
prefix_role.name&lt;br /&gt;
ORDER BY &lt;br /&gt;
year(from_unixtime(`prefix_stats_user_monthly`.`timeend`)), month(from_unixtime(`prefix_stats_user_monthly`.`timeend`)),&lt;br /&gt;
prefix_role.name&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must have Statistics turned on to be able to generate any data with this report.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Reports_(administrator)]] for other admin reports&lt;br /&gt;
* [[Installing contributed modules or plugins]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136484 Custom SQL queries report] forum announcement&lt;br /&gt;
&lt;br /&gt;
[[Category: Administrator]]&lt;br /&gt;
[[Category:Report]]&lt;br /&gt;
[[Category:Contributed_code]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=54950</id>
		<title>Message Log</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=54950"/>
		<updated>2009-04-27T18:01:35Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The message log report is based on code originally written by Will H and Mike Worth, and converted to an admin report by Matt Campbell.&lt;br /&gt;
&lt;br /&gt;
Filters include the order of the message, the number of days worth of messages to get, and the username to, from, or both.&lt;br /&gt;
&lt;br /&gt;
Clicking on the [more] link in the to or from columns will filter the messages which involve that user.  Clicking on the user&#039;s name will take you to their profile.&lt;br /&gt;
&lt;br /&gt;
PLEASE NOTE:&lt;br /&gt;
This report is compatible with Moodle 1.9, but you must add a line to core Moodle files to make it work with Moodle 1.9.1-1.9.3.&lt;br /&gt;
&lt;br /&gt;
It works as expected with Moodle 1.9.4, simply copy the messagelog directory into the /admin/report directory of your install.&lt;br /&gt;
&lt;br /&gt;
For earlier versions of Moodle 1.9, please see http://tracker.moodle.org/browse/CONTRIB-1185&lt;br /&gt;
Once you add the following line to /admin/settings/misc.php, the report will work as expected:&lt;br /&gt;
&lt;br /&gt;
    $ADMIN-&amp;gt;add(&#039;reports&#039;, new admin_externalpage(&#039;messagelog&#039;, get_string(&#039;messagelog&#039;, &#039;report_messagelog&#039;), &amp;quot;$CFG-&amp;gt;wwwroot/$CFG-&amp;gt;admin/report/messagelog/index.php?days=30&amp;quot;,&#039;moodle/site:readallmessages&#039;)); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*http://moodle.org/mod/forum/discuss.php?d=27559 Development of the SQL and code for the initial report&lt;br /&gt;
*http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2285 Modules and Plugins database entry&lt;br /&gt;
*http://download.moodle.org/plugins/admin/report/messagelog.zip Latest version in CVS&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53601</id>
		<title>Message Log</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53601"/>
		<updated>2009-03-31T13:18:37Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The message log report is based on code originally written by Will H and Mike Worth, and converted to an admin report by Matt Campbell.&lt;br /&gt;
&lt;br /&gt;
To install, simply copy the messagelog directory into the /admin/report directory of your install, and it will then be available under Reports in the Site Administration block.&lt;br /&gt;
&lt;br /&gt;
Filters include the order of the message, the number of days worth of messages to get, and the username to, from, or both.&lt;br /&gt;
&lt;br /&gt;
Clicking on the [more] link in the to or from columns will filter the messages which involve that user.  Clicking on the user&#039;s name will take you to their profile.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*http://moodle.org/mod/forum/discuss.php?d=27559 Development of the SQL and code for the initial report&lt;br /&gt;
*http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2285 Modules and Plugins database entry&lt;br /&gt;
*http://download.moodle.org/plugins/admin/report/messagelog.zip Latest version in CVS&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53600</id>
		<title>Message Log</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53600"/>
		<updated>2009-03-31T13:18:00Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The message log report is based on code originally written by Will H and Mike Worth, and converted to an admin report by Matt Campbell.&lt;br /&gt;
&lt;br /&gt;
To install, simply copy the messagelog directory into the /admin/report directory of your install, and it will then be available under Reports in the Site Administration block.&lt;br /&gt;
&lt;br /&gt;
Filters include the order of the message, the number of days worth of messages to get, and the username to, from, or both.&lt;br /&gt;
&lt;br /&gt;
Clicking on the [more] link in the to or from columns will filter the messages which involve that user.  Clicking on the user&#039;s name will take you to their profile.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
http://moodle.org/mod/forum/discuss.php?d=27559 Development of the SQL and code for the initial report&lt;br /&gt;
http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2285 Modules and Plugins database entry&lt;br /&gt;
http://download.moodle.org/plugins/admin/report/messagelog.zip Latest version in CVS&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53599</id>
		<title>Message Log</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53599"/>
		<updated>2009-03-31T13:14:42Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The message log report is based on code originally written by Will H and Mike Worth, and converted to an admin report by Matt Campbell.&lt;br /&gt;
&lt;br /&gt;
To install, simply copy the messagelog directory into the /admin/report directory of your install, and it will then be available under Reports in the Site Administration block.&lt;br /&gt;
&lt;br /&gt;
Filters include the order of the message, the number of days worth of messages to get, and the username to, from, or both.&lt;br /&gt;
&lt;br /&gt;
Clicking on the [more] link in the to or from columns will filter the messages which involve that user.  Clicking on the user&#039;s name will take you to their profile.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
http://moodle.org/mod/forum/discuss.php?d=27559 Development of the SQL and code for the initial report&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53598</id>
		<title>Message Log</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Message_Log&amp;diff=53598"/>
		<updated>2009-03-31T13:13:51Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: message log report documentation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The message log report is based on code originally written by Will H and Mike Worth, discussed at http://moodle.org/mod/forum/discuss.php?d=27559.  &lt;br /&gt;
&lt;br /&gt;
To install, simply copy the messagelog directory into the /admin/report directory of your install, and it will then be available under Reports in the Site Administration block.&lt;br /&gt;
&lt;br /&gt;
Filters include the order of the message, the number of days worth of messages to get, and the username to, from, or both.&lt;br /&gt;
&lt;br /&gt;
Clicking on the [more] link in the to or from columns will filter the messages which involve that user.  Clicking on the user&#039;s name will take you to their profile.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
http://moodle.org/mod/forum/discuss.php?d=27559 Development of the SQL and code for the initial report&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Development:Progress_tracking&amp;diff=40189</id>
		<title>Development:Progress tracking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Development:Progress_tracking&amp;diff=40189"/>
		<updated>2008-07-21T21:07:13Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Issues */&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;: This page outlines ideas for the Progress tracking feature planned for Moodle 2.0. It&#039;s a &#039;&#039;specification under construction&#039;&#039;! If you have any comments or suggestions, please add them to the [[https://docs.moodle.org/en/Development_talk:Progress_tracking|page comments]].&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
This feature will allow tracking of the progress of each student, displaying what has been achieved and what is still to be achieved.&lt;br /&gt;
&lt;br /&gt;
There are two ways to do this: by course and by competency:&lt;br /&gt;
&lt;br /&gt;
#Showing progress by course is pretty obvious and can work on any Moodle site:  we just list the courses that have been completed and some courses that are still to be done. The completed courses can show the final grades and the date completed. Courses which are not yet completed can be shown with dates of when they start (if courses use a &#039;weekly&#039; course format) or shown with the text &amp;quot;not yet completed&amp;quot;. In Moodle 2.0, the &#039;&#039;&#039;course completion&#039;&#039;&#039; feature should also allow courses to be shown as either completed or not yet complete (see [[Development:Course_completion]]). &lt;br /&gt;
#Showing progress using competencies requires the Outcomes features in Moodle 1.9 to be enabled and used across the whole site.   When outcomes are enabled, we have a way of saying &amp;quot;these courses and these activities are intended to achieve these outcomes&amp;quot; and teachers can grade students against those outcomes.  The progress report can then show a list of outcomes as past achievements and future goals for each user.&lt;br /&gt;
&lt;br /&gt;
==Definitions==&lt;br /&gt;
&#039;&#039;&#039;Scale&#039;&#039;&#039; : A way to measure ability&lt;br /&gt;
 eg : Terrible, Bad, Good, Excellent&lt;br /&gt;
&#039;&#039;&#039;Outcome&#039;&#039;&#039; : A statement about potential knowledge together combined with a scale&lt;br /&gt;
 eg : “Can catch a ball”   Scale:  Terrible, Bad, Good, Excellent&lt;br /&gt;
&#039;&#039;&#039;Skill&#039;&#039;&#039; : An outcome and the actual grade a learner obtained&lt;br /&gt;
 eg : Can catch a ball  - “Bad”&lt;br /&gt;
&#039;&#039;&#039;Required grade&#039;&#039;&#039; : The minimum grade that is needed to deem a competency&lt;br /&gt;
 eg : &amp;quot;Good&amp;quot; &lt;br /&gt;
&#039;&#039;&#039;Actual grade&#039;&#039;&#039; : The grade a learner obtained for an outcome&lt;br /&gt;
 eg : &amp;quot;Bad&amp;quot;&lt;br /&gt;
&#039;&#039;&#039;Competency&#039;&#039;&#039; : A meaningful ability a learner acquires when achieving one or more skills.&lt;br /&gt;
 Eg : An &amp;quot;admin&amp;quot; may define a competency as “Ability to play cricket” with the following skills&lt;br /&gt;
 and corresponding required grades.&lt;br /&gt;
 “Ability to catch a ball” – good&lt;br /&gt;
 “Ability to throw a ball” – good&lt;br /&gt;
 “Ability to swing a bat” – good.&lt;br /&gt;
 If a learner obtains good, bad, excellent respectively for the above three outcomes, then the&lt;br /&gt;
 learner fails to achieve an “Ability to play cricket” competency.&lt;br /&gt;
&#039;&#039;&#039;Organization role&#039;&#039;&#039; : A name for a role that has one or more required competencies.&lt;br /&gt;
 Eg : Athlete - &amp;quot;Ability to play cricket&amp;quot;, &amp;quot;Ability to swim&amp;quot;, &amp;quot;Ability to ski&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Goals==&lt;br /&gt;
&lt;br /&gt;
# Allow &amp;quot;admins&amp;quot; to devise a &#039;&#039;&#039;learning plan&#039;&#039;&#039; for an individual user. This can be either in terms of &amp;quot;courses&amp;quot; or &amp;quot;competencies&amp;quot;.&lt;br /&gt;
# Allow &amp;quot;admins&amp;quot; to develop a &#039;&#039;&#039;learning plan template&#039;&#039;&#039;. This can also be either in terms of &amp;quot;courses&amp;quot; or &amp;quot;competencies&amp;quot;.&lt;br /&gt;
# Allow &amp;quot;admins&amp;quot; to assign a learning plan from a learning plan template to an individual a user or a group of users. This assignment can be made manually in one action (similar to role or group assignments), or automatically using methods such as external databases or parsing text files containing data.&lt;br /&gt;
# Allow &amp;quot;admins&amp;quot; to adjust an individual learning plan for a user, including a portion previously assigned from a learning plan template.&lt;br /&gt;
# Allow &amp;quot;admins&amp;quot; to assign a due date for completing each &amp;quot;course&amp;quot; or &amp;quot;competency&amp;quot;.&lt;br /&gt;
# Allow &amp;quot;students&amp;quot; to see their own individual learning plan and their current progress along it (showing what is: done; in progress; or not done).&lt;br /&gt;
# Allow &amp;quot;admins&amp;quot; the ability to see different reports for this data and answer questions like &amp;quot;how many people fit this profile&amp;quot; or &amp;quot;what is everybody working on right now?&amp;quot; or &amp;quot;which people haven&#039;t met this competency&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
==General architecture==&lt;br /&gt;
&lt;br /&gt;
Most of the scripts will be in a top-level subdirectory called &amp;quot;track&amp;quot;.  This directory will have a similar structure to the [http://cvs.moodle.org/moodle/grade grade subdirectory], with plugin support for reports, import and export plugins.&lt;br /&gt;
&lt;br /&gt;
===Course-based progress tracking===&lt;br /&gt;
&lt;br /&gt;
# Each user can have courses linked to them (past, current and future).&lt;br /&gt;
# For each course, we look if the course is finished or not.&lt;br /&gt;
# Finished courses are show as &amp;quot;Done&amp;quot;, with final grade&lt;br /&gt;
# Unfinished but currently-enrolled courses are shown as &amp;quot;In progress&amp;quot;&lt;br /&gt;
# Other courses are shown as &amp;quot;Not done yet&amp;quot; and will be done in the future&lt;br /&gt;
&lt;br /&gt;
===Competency-based progress tracking===&lt;br /&gt;
&lt;br /&gt;
# Each user can have outcomes linked to them , with a required level of competency (grade) for that outcome&lt;br /&gt;
# For each outcome, we look at completed courses to see what grades they have&lt;br /&gt;
# These are aggregated in some admin-defined way  (Mean?  Maximum?)&lt;br /&gt;
# Outcomes with high grades are show as &amp;quot;Done&amp;quot;, with final grade&lt;br /&gt;
# Other outcomes in currently-enrolled courses are shown as &amp;quot;In progress&amp;quot;&lt;br /&gt;
# Other outcomes are shown as &amp;quot;Not done yet&amp;quot; and will be done in the future.  They can be used to suggest further courses by matching outcomes.&lt;br /&gt;
&lt;br /&gt;
===Learning plan===&lt;br /&gt;
&lt;br /&gt;
# Each user can have a set of either courses to be completed, outcomes to be completed, or a mixture of both. These comprise an individual user&#039;s learning plan.&lt;br /&gt;
# Due dates for course completions and outcome completions can be assigned in an individual user&#039;s learning plan.&lt;br /&gt;
# A comment can be added to a user&#039;s learning plan item when a course or outcome is manually added or removed from it.&lt;br /&gt;
&lt;br /&gt;
===Learning plan template===&lt;br /&gt;
&lt;br /&gt;
# Each template can contain a set of courses to be completed, outcomes to be completed, or a mixture of both.&lt;br /&gt;
# A course or outcome can be assigned to a learning plan template (using an interface similar to assigning a user to a role or group).&lt;br /&gt;
# A course or group of courses can be selected for a template from a list of all courses (by drilling-down category/sub-category) or from the results of a search (by course name or course description). Since outcomes are defined within a course, an outcome or a group of outcomes can be selected from a list of courses or search result.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
* We&#039;ll need to access and use the existing site-wide Outcomes [https://docs.moodle.org/en/Development:Grades#grade_outcomes Outcomes tables]&lt;br /&gt;
&lt;br /&gt;
* We&#039;ll need to use the tables that indicate completion status for courses (these are not yet in place) [https://docs.moodle.org/en/Development:Course_completion Course Completion]&lt;br /&gt;
&lt;br /&gt;
* We need to get aggregate information about the course outcomes and aggregate grades for each user from the gradebook API&lt;br /&gt;
&lt;br /&gt;
==Standards support==&lt;br /&gt;
&lt;br /&gt;
Moodle should support global standards in order to enable importing and exporting of competency information. IMS specifications will be used on this matter. IMS RDCEO (IMS Reusable Definition of Competency or Educational Objectives) will be used to capture the competencies/educational objectives and IMS LIP (IMS Learner Information Package) will be used to model the user profiles and their competencies.&lt;br /&gt;
&lt;br /&gt;
===IMS RDCEO===&lt;br /&gt;
&lt;br /&gt;
IMS Global Learning Consortium, Inc released IMS RDCEO for describing, referencing, and exchanging definitions of competencies, primarily in the context of online and distributed learning. Mostly the specification information are unstructured text and intended for human interpretation.  This specification provides means to create common understandings of competencies that appear as a part of a learning plan. The IMS RDCEO also provides a way to store competency information in many languages at a time.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMS RDCEO specification contains following elements:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Identifier :&#039;&#039;&#039; Globally unique label that identifies the Competency or Learning objects.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Title&#039;&#039;&#039; : A single short mandatory human readable text for competency.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Description&#039;&#039;&#039; : Human readable unstructured description of competency and this is an optional element.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Definition&#039;&#039;&#039; : An optional structured description that provides more meaning to the competency.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Metadata&#039;&#039;&#039; : An optional meta-data used to denote authors information, creation date etc. It is recommended that this should conform to IEEE LOM standard.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Definition&#039;&#039;&#039; element contains following sub elements :&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Model source&#039;&#039;&#039; : An identifier of the model or structure upon which the definition is based.  It is good to have a URI as model source.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Statement&#039;&#039;&#039; : Description about single characteristic of a definition and a definition must contain one or more statements.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Statement Id&#039;&#039;&#039; : An optional string that is local identifier for the statement within the model&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Statement Name&#039;&#039;&#039; : This is an optional sub elements used to label the statement.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Statement text&#039;&#039;&#039; : An optional unstructured textual description of those aspects of the competency referred to by the statement Name.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Statement token&#039;&#039;&#039; : An optional vocabulary token, along with an identifier of the source of the vocabulary.&lt;br /&gt;
&lt;br /&gt;
===IMS LIP===&lt;br /&gt;
&lt;br /&gt;
IMS LIP describes the characteristics of a learner, which are needed for recording and managing learning-related history, goals, and accomplishments, engaging a learner in a learning experience, and discovering learning opportunities for learners. Here, the learner information is a collection of information about a learner (individual or group learners) or a producer of learning content (creators, providers or vendors). &lt;br /&gt;
In competency modeling, the IMS LIP can be used to merge the competencies in IMS RDCEO and the users.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMS LIP Core datastructures:&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;Identification:&#039;&#039;&#039; Biographic and demographic data relevant to learning; &lt;br /&gt;
*&#039;&#039;&#039;Goal:&#039;&#039;&#039; Learning, career and other objectives and aspirations; &lt;br /&gt;
*&#039;&#039;&#039;Qualifications, Certifications and Licenses (qcl):&#039;&#039;&#039; Qualifications, certifications and licenses granted by recognized authorities; &lt;br /&gt;
*&#039;&#039;&#039;Activity:&#039;&#039;&#039; Any learning-related activity in any state of completion.  Could be self-reported.  Includes formal and informal education, training, work experience, and military or civic service; &lt;br /&gt;
*&#039;&#039;&#039;Transcript:&#039;&#039;&#039;  A record that is used to provide an institutionally-based summary of academic achievement.  The structure of this record can take many forms; &lt;br /&gt;
*&#039;&#039;&#039;Interest:&#039;&#039;&#039; Information describing hobbies and recreational activities; &lt;br /&gt;
*&#039;&#039;&#039;Competency:&#039;&#039;&#039; Skills, knowledge, and abilities acquired in the cognitive, affective, and/or psychomotor domains;  &lt;br /&gt;
*&#039;&#039;&#039;Affiliation:&#039;&#039;&#039; Membership of professional organizations, etc.  Membership of groups is covered by the IMS Enterprise specification; &lt;br /&gt;
*&#039;&#039;&#039;Accessibility:&#039;&#039;&#039; General accessibility to the learner information as defined through language capabilities, disabilities, eligibilities and learning preferences including cognitive preferences (e.g. issues of learning style), physical preferences (e.g. a preference for large print), and technological preferences (e.g. a preference for a particular computer platform); &lt;br /&gt;
*&#039;&#039;&#039;Securitykey:&#039;&#039;&#039;  The set of passwords and security keys assigned to the learner for transactions with learner information systems and services; &lt;br /&gt;
*&#039;&#039;&#039;Relationship:&#039;&#039;&#039;  The set of relationships between the core components.  The core structures do not have within them identifiers that link to the core structures.  Instead all of these relationships are captured in a single core structure thereby making the links simpler to identify and manage.&lt;br /&gt;
&lt;br /&gt;
None of the above data structures is mandatory and also the multiple occurrences of these data structures are allowed. Each of these data structures itself has various sub elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;An example : &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An outcome is defined as &amp;quot;ability to identify verbs in simple sentences&amp;quot; and the scale is Aways, Sometimes and Never. If it is also defined that, learner can gets the &amp;quot;ability to identify verbs in simple sentences&amp;quot; competency if obtain Sometimes grade. Assume that a Lerner called Jenney has deemed this competency.    &lt;br /&gt;
This information can be modeled as follows using IMS RDCEO and IMS LIP. Here the Pseudo-Structures of IMS RDCEO and IMS LIP are used. Note that the given structure is not complete.&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039; IMS RDECEO Pseudo-Structure&#039;&#039;&#039;&lt;br /&gt;
 rdceo.identifier = rdceo434323&lt;br /&gt;
 rdceo.title = Identify verbs in simple sentences&lt;br /&gt;
 rdceo.description = “Identify verbs in simple sentences”&lt;br /&gt;
 rdceo.definition.statement.&lt;br /&gt;
    statementid = 123&lt;br /&gt;
    statementname = Always&lt;br /&gt;
    statementtext = Scale&lt;br /&gt;
    statementtoken = scl55435&lt;br /&gt;
 rdceo.definition.statement.&lt;br /&gt;
    statementid = 124&lt;br /&gt;
    statementname = Never&lt;br /&gt;
    statementtext = Scale&lt;br /&gt;
    statementtoken = scl55436&lt;br /&gt;
 rdceo.definition.statement.&lt;br /&gt;
    statementid = 125&lt;br /&gt;
    statementname = Sometimes&lt;br /&gt;
    statementtext = Scale&lt;br /&gt;
    statementtoken = scl55437&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039; IMS LIP Pseudo-Structure&#039;&#039;&#039;&lt;br /&gt;
 lip.contenttype.referencial.sourceid.id = jenney_profile&lt;br /&gt;
 lip.identification.cotenttype.referential.indexid = id123&lt;br /&gt;
 lip.identification.name.partname.typename=Jenny &lt;br /&gt;
 lip.competency&lt;br /&gt;
    cotenttype.referential.indexid = j123&lt;br /&gt;
    exrefrecord = rdceo434323&lt;br /&gt;
    description = Always&lt;br /&gt;
&lt;br /&gt;
==Tables==&lt;br /&gt;
===competency _required_grade===&lt;br /&gt;
&lt;br /&gt;
This table is used to map the outcome and required the grade to the corresponding competency. A competencyid can be mapped to more than one outcome and the required grade when competency comprises more than one outcome. &lt;br /&gt;
 &lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Field&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Type&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Default&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Info&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;id&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Auto incrementing &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;outcomeid&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The id of the outcome being assigned to the required grade&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;competencyid&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The competency that the outcome belongs too&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timecreated&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that the required grade was first assigned to outcome&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timemodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that the required grade was last modified&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;usermodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The userid of the person who last modified the required grade&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===competency_items===&lt;br /&gt;
&lt;br /&gt;
This table is used to describe the competencies in text form. As the example in the section above that defines Competency, this may have an entry like &amp;quot;Ability to play cricket&amp;quot;. If so it also should have 3 corresponding entries “Ability to catch a ball” – good, “Ability to throw a ball” – good and “Ability to swing a bat” – good in &#039;&#039;&#039;competency _required_grade&#039;&#039;&#039; table.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Field&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Type&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Default&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Info&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;id&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Auto incrementing &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;description&#039;&#039;&#039;&lt;br /&gt;
|Text&lt;br /&gt;
|&lt;br /&gt;
|Competency description&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timecreated&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that a competency was first created&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timemodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that a competency was last modified&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;usermodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The userid of the person who last modified the competency&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===learning_plan_competency===&lt;br /&gt;
&lt;br /&gt;
This table is used to describe the competency based learning plan of a user. This table also states whether a user has achieved a competency or not. &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Field&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Type&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Default&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Info&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;id&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Auto incrementing &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;userid&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Userid of the user who is assigned to the competency based leaning plan&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;competencyid&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Id of the competency which belongs to the competency based learning plan&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;learningtemplateid&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Id of the template that the competency based plan belongs to&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;competencyachieved&#039;&#039;&#039;&lt;br /&gt;
|Text&lt;br /&gt;
|&lt;br /&gt;
|Describe whether a competency has been achieved by a user or not.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timeachieved&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time when this has been achieved&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timecreated&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that the competency based learning plan was first created&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timemodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that the competency based learning plan was last modified&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;usermodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The userid of the person who last modified the competency based learning plan&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===learning_plan_course===&lt;br /&gt;
&lt;br /&gt;
This table is used to describe the course based learning plan of a user. Initially a set of courses that the user has to sit for can be defined and whether it is completed or not is derived from  [https://docs.moodle.org/en/Development:Course_completion course completion]  &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Field&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Type&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Default&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Info&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;id&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Auto incrementing &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;userid&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Userid of the user who is assigned to the course based leaning plan&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timecreated&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that the course based learning plan was first created&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timemodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time that the course based learning plan was last modified&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;usermodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Id of the course which belongs to the course based learning plan&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===learning_plan_template===&lt;br /&gt;
&lt;br /&gt;
This table is used to describe a learning template, which describes the competencies that need to achieve a particular role, like Software Engineer. Therefore if this template is assigned to a user, then all the required competencies also will be mapped to the user. Admin does not have to assign the competencies one by one.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Field&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Type&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Default&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Info&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;id&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|Auto incrementing &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;title&#039;&#039;&#039;&lt;br /&gt;
|Text&lt;br /&gt;
|&lt;br /&gt;
|Title of the learning plan&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
|Text&lt;br /&gt;
|&lt;br /&gt;
|Description of the Learning plan&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timecreated&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time when the learning template was first created&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;timemodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time this learning template was last modified&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;usermodified&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The userid of the person who last modified the learning template&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Development plan==&lt;br /&gt;
&lt;br /&gt;
===Learner windows===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When a learner logins to the system, leaner will see the Progress Monitor block in the SITE.&lt;br /&gt;
[[Image:progress_block.jpg]]&lt;br /&gt;
&lt;br /&gt;
Learner will get a similar window like below when she clicks on Find more link in the above picture.&lt;br /&gt;
&lt;br /&gt;
[[Image:progress_moni.jpg]]&lt;br /&gt;
&lt;br /&gt;
By clicking on the Course based or Competency based links the learner can see their detail progress.  These will be similar to the Grade reports.&lt;br /&gt;
Also there will be a graphical representation of the progress will be visible in the bottom right hand bottom corner.&lt;br /&gt;
In addition to these, an option can be added to suggest the learner that this course has this competency, you can follow this course, etc.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note : In the above interface, the graph and the table are not real. The table may contain some more information and there may be some more options too.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Progress tracking administration===&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Course based tracking administration&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There should be a link called Progress in the site admin area and it should contain the links to handle course based progress tracking and the competency based progress tracking. Currently, here only the course based progress tracking is considered. As given in the following diagram, Progress link should contain 4 sub menus to handle the course based progress tracking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:siteadmin.JPG]]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Create learning template&#039;&#039;&#039; should direct us to a page where we can create / edit template, assign courses to the template and can sequence the courses.&lt;br /&gt;
*&#039;&#039;&#039;Upload learning template&#039;&#039;&#039; shold help us to create a template and assign courses in order by importing them from an external file.&lt;br /&gt;
*&#039;&#039;&#039;Assign users&#039;&#039;&#039; should help to assign users to a learning template&lt;br /&gt;
*&#039;&#039;&#039;Progress monitor&#039;&#039;&#039; should allow us to do learning based monitoring and the template based monitoring&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add Learning template&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This screen should look like this :&lt;br /&gt;
&lt;br /&gt;
[[Image:add_template.JPG]]&lt;br /&gt;
&lt;br /&gt;
Here admin can add a new template, edit existing template and delete a template. This should be a ‘paged’ page. As shown 1,2 ,3…  at the bottom, if there are 100s of template those should be displayed as part by part in separate pages. &lt;br /&gt;
When admin adds a template, then admin should be directed to a new page where the courses can be added and sequenced.&lt;br /&gt;
Also if admin click on the Edit link, the admin should get a page (similar to the sample given below) where admin can sequence or add new courses to the existing learning template.&lt;br /&gt;
&lt;br /&gt;
A page similar to following one should be devloped to facilitate admin to add and sequence the courses.&lt;br /&gt;
&lt;br /&gt;
[[Image:assign_course1.JPG]]&lt;br /&gt;
&lt;br /&gt;
In the available course area, only the short name of the courses that are about to start or the will start in the future should be listed. Admin can filter the courses by clicking on the corresponding starting letter on the left. Also admin should be able to search for a course by typing a keyword (can be course name, etc). Also there a facility should be provided in the available course pane is that when admin double click on a course, a pop-up should be displayed with important course inforamtion.   &lt;br /&gt;
If a course is not available in the list, then admin should be able to add a new course by giving minimal information using the [New Course] link. &lt;br /&gt;
Admin ought to shift the required courses from left pane right using the Add selection button and the other two remove button should give the functionality as there are meant. &lt;br /&gt;
Among the selected courses which are on right pane, the admin able to sequence the courses. There are two ways this can be developed.&lt;br /&gt;
*By dragging the courses up and down using mouse pointer.&lt;br /&gt;
*As shown in the below picture, the course should be moving up and down using arrow links.&lt;br /&gt;
&lt;br /&gt;
[[Image:assign_course2.JPG]]&lt;br /&gt;
&lt;br /&gt;
Admins also should be able to create a template by importing the details form an external file. To achieve this as proposed before there should be a link added to the Site administration called upload template. That should give an interface like below, where user also should be able to select the CSV and the encoding before importing the file. &lt;br /&gt;
The importing file should consist following format : &amp;quot;Template_name, course1, course2, course3, etc.&amp;quot; where course1, course2.. should be the shortname of the courses and it should be properly ordered. &lt;br /&gt;
&lt;br /&gt;
[[Image:upload_template.JPG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Assign a template to users&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the learning templates are created then they should be assignable to users. There is an interface as given below should be provided to admin to do this. According to the filter information, the users name should be listed in the left hand side pane. Those users name should be able to further filtered using the filter links provided in the left side of the Users pane. When admin click on a Letter the name that start with that letter should be listed.&lt;br /&gt;
Moreover the admin should be able to search for a user by giving a keyword (Here keyword can be First name, Last name, Username etc.) &lt;br /&gt;
Also when admin click on a User’s name a short description about that user should be pop-up.&lt;br /&gt;
After selecting the required users, the admin should be able to move those users to selected user pane using Add to Selection button. The Remove from selection and Remove all button also should do the intended functions.&lt;br /&gt;
Then there should be a drop down menu, in which all the available template should be listed. &lt;br /&gt;
&lt;br /&gt;
[[Image:add_users.JPG]]&lt;br /&gt;
&lt;br /&gt;
As given below, there should be an interface to filter out the student names. This interface part should go in the NEW FILTER area of the above interface.&lt;br /&gt;
&lt;br /&gt;
[[Image:add_filter.JPG]]&lt;br /&gt;
&lt;br /&gt;
The filter should have following functionality and it should be a course based filter. The filtration should be made based on the courses, whether a learner did / doing /didn’t do a course. &lt;br /&gt;
There should be a drop down and where all “did”, “didn’t do”, “doing”, “incomplete” etc should be listed. And there also should be a textarea where the admin should be allowed to input courses. Here the courses’ short name should be listed and separated by commas. &lt;br /&gt;
Once the admin added a filter, it should go to active filter block. Likewise the admin can have many filers. According to the selection that admin do on this active filer block the user names should be displayed in the user pane.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Progress monitoring&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Progress monitoring based on courses should be able to done in two ways :&lt;br /&gt;
*Learner based progress monitoring&lt;br /&gt;
*Learning template based progress monitoring&lt;br /&gt;
&lt;br /&gt;
To do the learner based monitoring; there should be a keyword search to select the learner. The keyword can be a first name, last name, username etc. When admin click on the corresponding user’s name the user’s course profile should be listed with the status as depicted in the following diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:learner_based.JPG]]&lt;br /&gt;
&lt;br /&gt;
There is another interface like below should be provided to monitor the learners performance from courses point of view. According to this, when admin select a learning template name the all courses corresponds to the template should be listed as follows with the status of completion. For each course these should be a [view] link and using which it should be able to view the learners information corresponds to that state.&lt;br /&gt;
&lt;br /&gt;
[[Image:template_based.JPG]]&lt;br /&gt;
&lt;br /&gt;
===Directory Structure===&lt;br /&gt;
&lt;br /&gt;
There will be two directories with the name Progress. One will be there in Moodle root and the other will be inside the Blocks folder. The Progress which is in the Blocks will contain the scripts that are needed to display the block to the learners. &lt;br /&gt;
The progress directory, which is in Moodle root directory, will contain following scripts :&lt;br /&gt;
*Library files&lt;br /&gt;
*Scripts for admin feature development&lt;br /&gt;
*Scripts for the report generation for the learner.&lt;br /&gt;
&lt;br /&gt;
==Issues==&lt;br /&gt;
&lt;br /&gt;
# Does completing a course mean all the outcomes in a course have been met?   Or should we treat them independently of the course grade?  Perhaps the admin needs to decide this as a setting.&lt;br /&gt;
# How do we deal with the same outcome being used by more than one course?  Should the admin specify an aggregation method for this?&lt;br /&gt;
# Rather than assigning these duties to the admin, they should be capabilities that could be assigned to a role.&lt;br /&gt;
# Could there be more ways of assigning students to a template?  Perhaps from the same database that controls course enrollments, or a CSV file, or a field in their profile?&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[GSOC/2008]]&lt;br /&gt;
*[http://code.google.com/soc/2008/moodle/appinfo.html?csaid=BCC1F568283CE8D4 User Competency Tracking Module application abstract]&lt;br /&gt;
*[http://www.imsglobal.org/competencies/index.html IMS RDCEO home ]&lt;br /&gt;
*[http://www.imsglobal.org/profiles/index.html IMS LIP home ]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Development:Repository_API&amp;diff=38321</id>
		<title>Development:Repository API</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Development:Repository_API&amp;diff=38321"/>
		<updated>2008-06-25T21:11:30Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Teacher linking to an external file as a new resource (think video repository) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes the specification for a future feature, currently being worked on for Moodle 2.0.  This spec is STILL UNDER CONSTRUCTION.&lt;br /&gt;
&lt;br /&gt;
See MDL-13766 to track the status of the implementation.&lt;br /&gt;
&lt;br /&gt;
The page is open for everyone so everyone can help correct mistakes and help with the evolution of this document.  However, if you have questions to ask, problems to report or major changes to suggest, please add them to the [[Development_talk:Repository_API|page comments]], or start a discussion in the [http://moodle.org/mod/forum/view.php?id=1807 Repositories forum].  We&#039;ll endeavour to merge all such suggestions into the main spec before we start development.&lt;br /&gt;
&lt;br /&gt;
Note that parts of this document have been now split off into a separate [[Development:File_API]]&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
&lt;br /&gt;
# Allow all Moodle users to easily bring content into Moodle from external repositories&lt;br /&gt;
# Provide a consistent interface to any external repository, for any Moodle module&lt;br /&gt;
&lt;br /&gt;
==Use cases==&lt;br /&gt;
&lt;br /&gt;
===Teacher adding an external file as a new resource===&lt;br /&gt;
&lt;br /&gt;
# Teacher wants to add a new resource to a course &lt;br /&gt;
# Teacher clicks the &amp;quot;Choose a resource&amp;quot; button&lt;br /&gt;
# Teacher is presented with a simple file picker to choose a file (with a menu to switch between multiple configured repositories)&lt;br /&gt;
# Teacher chooses a file in an external repository&lt;br /&gt;
# File is COPIED into Moodle and stored by the resource module&lt;br /&gt;
# File is marked as owned by that user&lt;br /&gt;
# Whenever someone wants to view that file, the resource module controls access  (see [[Development:File API]] )&lt;br /&gt;
&lt;br /&gt;
===Teacher linking to an external file as a new resource (think video repository) ===&lt;br /&gt;
&lt;br /&gt;
# Teacher wants to display a file in the repository &lt;br /&gt;
# Teacher clicks the &amp;quot;Choose a resource&amp;quot; button&lt;br /&gt;
# Teacher is presented with a simple file picker to choose a file (with a menu to switch between multiple configured repositories)&lt;br /&gt;
# Teacher chooses a file in an external repository&lt;br /&gt;
# Link to the file is COPIED into Moodle and stored by the resource module&lt;br /&gt;
# Link is marked as owned by that user&lt;br /&gt;
# Whenever someone wants to follow that link, the resource module controls access  (see [[Development:File API]] )&lt;br /&gt;
&lt;br /&gt;
===Student submitting an assignment===&lt;br /&gt;
# Student needs to submit an assignment and presses the &amp;quot;Choose files&amp;quot; button&lt;br /&gt;
# Student sees a &amp;quot;file picker&amp;quot; where they can see files listed on any of several configured repositories ([https://docs.moodle.org/en/Image:Filepicker_login.jpg file picker login], [https://docs.moodle.org/en/Image:Filepicker_browser.jpg file picker browser], [https://docs.moodle.org/en/Image:Filepicker_search.jpg file picker search])&lt;br /&gt;
# Student chooses MySpace from the list&lt;br /&gt;
# Student is prompted to enter MySpace username/password (if admin allows it, a checkbox could be there to &amp;quot;remember this for next time&amp;quot; but remember security)&lt;br /&gt;
# Student sees their files in MySpace and chooses one or more&lt;br /&gt;
# Files are copied from MySpace to Moodle &lt;br /&gt;
# Assignment module controls the permissions so that only the Student and assignment graders can see the file (other students would not have permission).&lt;br /&gt;
&lt;br /&gt;
===Student attaching an image to a forum===&lt;br /&gt;
# Student needs to attach an image and presses the &amp;quot;Choose files&amp;quot; button in the posting screen&lt;br /&gt;
# Student sees a &amp;quot;file picker&amp;quot; where they can see files listed on any of several configured repositories&lt;br /&gt;
# Student chooses Mahara from the list&lt;br /&gt;
# Student is prompted to enter Mahara username/password&lt;br /&gt;
# Student sees their files in Mahara and chooses one image&lt;br /&gt;
# Image is copied to Moodle &lt;br /&gt;
# Image file is attached to forum post by Forum module (by reference)&lt;br /&gt;
# Forum module controls permissions so that anyone who can read that forum can see that file&lt;br /&gt;
&lt;br /&gt;
===Student attaching the same image in another forum===&lt;br /&gt;
&lt;br /&gt;
# Student needs to submit an assignment and presses the &amp;quot;Choose files&amp;quot; button&lt;br /&gt;
# Student sees a &amp;quot;file picker&amp;quot; where they can see files listed on any of several configured repositories&lt;br /&gt;
# Student chooses &amp;quot;Local files&amp;quot; from the list and sees all the files they&#039;ve uploaded before&lt;br /&gt;
# A COPY of the image file is attached to forum post by Forum module&lt;br /&gt;
# Forum module controls access to this file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please add more use cases in this same format&lt;br /&gt;
&lt;br /&gt;
==Mock screenshots==&lt;br /&gt;
When you first call up the file picker and choose a repository, you might be asked to log in (if saving of passwords is not allowed):&lt;br /&gt;
&lt;br /&gt;
[[Image:Filepicker_login.jpg]]&lt;br /&gt;
&lt;br /&gt;
Browsing files could look something like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Filepicker_browser.jpg]]&lt;br /&gt;
&lt;br /&gt;
And you can also search:&lt;br /&gt;
&lt;br /&gt;
[[Image:Filepicker_search.jpg]]&lt;br /&gt;
&lt;br /&gt;
==General architecture==&lt;br /&gt;
&lt;br /&gt;
Each repository plugin (a standard Moodle plugin stored under /repository/xxx) will subclass the standard API and override methods specific to that repository.&lt;br /&gt;
&lt;br /&gt;
As is usual in Moodle, there will be admin settings to disable/enable certain repository plugins as standard, as well as user settings so that users can add their own personal repositories to the standard list (eg [http://briefcase.yahoo.com Yahoo Briefcase] or [http://docs.google.com Google Docs]) and to select their default repository.&lt;br /&gt;
&lt;br /&gt;
Once a repository has been used the file will usually be copied into Moodle there and then.  However there will also be options to:&lt;br /&gt;
* only return the URL to the file if it&#039;s desired to keep it external (but this does present security and integrity risks), or&lt;br /&gt;
* refresh the local file copy regularly and automatically&lt;br /&gt;
* refresh the file manually if desired&lt;br /&gt;
&lt;br /&gt;
Once in Moodle, it is subject to the [[Development:File API]] for access control like any other file.&lt;br /&gt;
&lt;br /&gt;
==Repository requirements==&lt;br /&gt;
&lt;br /&gt;
From the Moodle point of view, each repository is just a hierarchy of nodes.&lt;br /&gt;
&lt;br /&gt;
The repository MUST provide:&lt;br /&gt;
# A URI to download each node (eg file).&lt;br /&gt;
# A list of the nodes (eg files and directories) under a given node (eg directory).  This allows Moodle to construct a standard browse interface (much like a standard OS file picker).  However some repository plugins may choose to completely override the repository_browse() method and implement their own interface, that&#039;s OK, as long as they end up with a URL for the file.&lt;br /&gt;
&lt;br /&gt;
The repository can OPTIONALLY:&lt;br /&gt;
# Require some authentication credentials &lt;br /&gt;
# Provide more metadata about each node (mime type, size, dates, related files, dublin core stuff, etc)&lt;br /&gt;
# Describe a search facility (so that Moodle can construct a search form)&lt;br /&gt;
# Provide copyright and usage rules (or just information about the rules)&lt;br /&gt;
&lt;br /&gt;
==Repository plugins==&lt;br /&gt;
&lt;br /&gt;
Some plugins I&#039;d like to see developed for the first version are:&lt;br /&gt;
* local - very similar to the current course-based file manager, except user-based&lt;br /&gt;
* moodle - an interface to another Moodle site, accessed over a secure mnet connection&lt;br /&gt;
* jsr170 - an interface that can talk to anything that supports jsr170 (eg [http://www.alfresco.com/ Alfresco])&lt;br /&gt;
* oki - an OKI emulator allowing us to access things with OKI interfaces,like [http://www.fedora.info/ Fedora]&lt;br /&gt;
* briefcase - an interface to [http://briefcase.yahoo.com/ Yahoo Briefcase]&lt;br /&gt;
* myspace - an interface to MySpace files (perhaps via [http://www.programmableweb.com/api/myspace this MySpace API])&lt;br /&gt;
* googledocs - an interface to [http://docs.google.com Google Docs]&lt;br /&gt;
* s3 - an interface to [http://www.amazon.com/gp/browse.html?node=16427261 Amazon S3]&lt;br /&gt;
* skydrive - an interface to Microsoft&#039;s [http://skydrive.live.com/ SkyDrive] files&lt;br /&gt;
* box - an interface to [http://box.net box.net]&lt;br /&gt;
* facebook - an interface to Facebook files&lt;br /&gt;
* merlot - an interface to the learning materials in [http://www.merlot.org/merlot/materials.htm Merlot.org]&lt;br /&gt;
* flickr - an interface to [http://flickr.com flickr]&lt;br /&gt;
* youtube - an interface to [http://youtube.com YouTube]&lt;br /&gt;
* mahara - an interface to a Mahara installation&lt;br /&gt;
* Dspace - a repository from MIT&lt;br /&gt;
* DOOR - another popular open source repository&lt;br /&gt;
* SMB shares - An interface for windows shares e.g. personal folders on network drives. Would need to link with LDAP as usernames will often be wholly/partially the same as network folder names. This could be done using SAMBA, but would also need to work on windows machines natively. See [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=991 this block] for a linux implementation.&lt;br /&gt;
* WebDAV - to access arbitrary external WebDAV servers&lt;br /&gt;
&lt;br /&gt;
==Tables==&lt;br /&gt;
&lt;br /&gt;
=== repository ===&lt;br /&gt;
&lt;br /&gt;
This table contains one entry for every configured external repository instance.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Field&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Type&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Default&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Info&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;id&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|autoincrementing &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|repositoryname&lt;br /&gt;
|varchar&lt;br /&gt;
|&lt;br /&gt;
|A custom name for this repository (non-unique)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;repositorytype&#039;&#039;&#039; &lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|The name of the plugin being used  (1 special case:  &amp;quot;local&amp;quot; which covers all files uploaded from desktop)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;userid&#039;&#039;&#039; &lt;br /&gt;
|int(10)&lt;br /&gt;
| &lt;br /&gt;
|The person who created this repository instance&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;contextid&#039;&#039;&#039; &lt;br /&gt;
|int(10)&lt;br /&gt;
| &lt;br /&gt;
|The context that this repository is available to ( = system context for site-wide ones)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|username&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|username to log in with, if required&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|password&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|password to log in with, if required&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option1&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option2&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option3&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option4&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option5&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|timecreated&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time this repository was created&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|timemodified&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The last time the repository was modified&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===File types===&lt;br /&gt;
&lt;br /&gt;
The context at which someone is inserting a file may require certain file types (eg uploading a new user profile image is only looking for images).  &lt;br /&gt;
&lt;br /&gt;
To support this, the calling code needs to be able to specify the required mimetypes, and the listing code should be able to filter the results based on these mimetypes.  Ideally the repository itself can do the filtering for ultimate speed (though not all repositories will support this).&lt;br /&gt;
&lt;br /&gt;
We will have to develop special new mimetypes for Moodle files like backups (application/vnd.moodle.backup) and IMS learning design (application/vnd.moodle.imsld) etc&lt;br /&gt;
&lt;br /&gt;
==Invoking the API==&lt;br /&gt;
&lt;br /&gt;
Moodle module code doesn&#039;t generally need to call the repository API directly.  Instead it will add a &amp;quot;fileopen&amp;quot; moodleform item:&lt;br /&gt;
&lt;br /&gt;
 $mform-&amp;gt;addElement(&#039;fileopen&#039; ...)&lt;br /&gt;
&lt;br /&gt;
to a form which will invoke the file picker (with file types etc), which in turn will call various repository plugins to create the display.&lt;br /&gt;
&lt;br /&gt;
We should pass the context too, to help the picker decide what repositories are available at this moment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===file_open()===&lt;br /&gt;
&lt;br /&gt;
(in lib/filelib.php ... usually called by moodleforms)&lt;br /&gt;
&lt;br /&gt;
Creates a text field for containing a human-readable filename, together with a hidden field containing a file reference, as well as a button to launch the file picker (repository/picker.php).  If a file has already been chosen, it could also show a preview (depends on file type).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===repository/picker.php===&lt;br /&gt;
&lt;br /&gt;
The main script that displays the picker dialog.  It looks through all the repository settings to give the user what they need to see.&lt;br /&gt;
&lt;br /&gt;
==Repository plugins==&lt;br /&gt;
&lt;br /&gt;
Each repository plugin is required to contain the following elements:&lt;br /&gt;
&lt;br /&gt;
===class repository()===&lt;br /&gt;
&lt;br /&gt;
This class implements the interface to a particular repository, for browsing, selecting and updating files.  The base class (repository) is defined in /repository/repository.class.php, while each repository defines an inherited class (eg repository_alfresco) in /repository/repositoryname/repository.class.php&lt;br /&gt;
&lt;br /&gt;
Repositories can redefine any of these methods as required (and in some instances, MUST redefine them):&lt;br /&gt;
&lt;br /&gt;
====get_file($path)====&lt;br /&gt;
&lt;br /&gt;
Given a URL, get a file from there.&lt;br /&gt;
&lt;br /&gt;
====get_listing($parent=&#039;/&#039;, $search=&#039;&#039;&#039;&#039;&#039;&#039;&#039;&#039;)====&lt;br /&gt;
&lt;br /&gt;
Given a path, and perhaps a search, get a listing of files.&lt;br /&gt;
&lt;br /&gt;
====print_login()====&lt;br /&gt;
&lt;br /&gt;
Show the login screen, if required&lt;br /&gt;
&lt;br /&gt;
====print_listing====&lt;br /&gt;
&lt;br /&gt;
Given a listing from get_listing, print it.&lt;br /&gt;
&lt;br /&gt;
====print_search==== &lt;br /&gt;
&lt;br /&gt;
Print the search form.&lt;br /&gt;
&lt;br /&gt;
====store_login($username, $password, $userid=&#039;&#039;&#039;&#039;&#039;&#039;&#039;&#039;)====&lt;br /&gt;
&lt;br /&gt;
If you do want to cache login details for various repositories, then use this method.&lt;br /&gt;
&lt;br /&gt;
====more to come====&lt;br /&gt;
&lt;br /&gt;
====cron()====&lt;br /&gt;
&lt;br /&gt;
Defines operations that happen occasionally on cron.&lt;br /&gt;
&lt;br /&gt;
===icon.png===&lt;br /&gt;
&lt;br /&gt;
A logo that represents the repository.  Ideally square but we should handle all sizes.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Development:File API]]&lt;br /&gt;
* [[Development:Portfolio API]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Development:Repository_API&amp;diff=38320</id>
		<title>Development:Repository API</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Development:Repository_API&amp;diff=38320"/>
		<updated>2008-06-25T21:09:05Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Use cases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes the specification for a future feature, currently being worked on for Moodle 2.0.  This spec is STILL UNDER CONSTRUCTION.&lt;br /&gt;
&lt;br /&gt;
See MDL-13766 to track the status of the implementation.&lt;br /&gt;
&lt;br /&gt;
The page is open for everyone so everyone can help correct mistakes and help with the evolution of this document.  However, if you have questions to ask, problems to report or major changes to suggest, please add them to the [[Development_talk:Repository_API|page comments]], or start a discussion in the [http://moodle.org/mod/forum/view.php?id=1807 Repositories forum].  We&#039;ll endeavour to merge all such suggestions into the main spec before we start development.&lt;br /&gt;
&lt;br /&gt;
Note that parts of this document have been now split off into a separate [[Development:File_API]]&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
&lt;br /&gt;
# Allow all Moodle users to easily bring content into Moodle from external repositories&lt;br /&gt;
# Provide a consistent interface to any external repository, for any Moodle module&lt;br /&gt;
&lt;br /&gt;
==Use cases==&lt;br /&gt;
&lt;br /&gt;
===Teacher adding an external file as a new resource===&lt;br /&gt;
&lt;br /&gt;
# Teacher wants to add a new resource to a course &lt;br /&gt;
# Teacher clicks the &amp;quot;Choose a resource&amp;quot; button&lt;br /&gt;
# Teacher is presented with a simple file picker to choose a file (with a menu to switch between multiple configured repositories)&lt;br /&gt;
# Teacher chooses a file in an external repository&lt;br /&gt;
# File is COPIED into Moodle and stored by the resource module&lt;br /&gt;
# File is marked as owned by that user&lt;br /&gt;
# Whenever someone wants to view that file, the resource module controls access  (see [[Development:File API]] )&lt;br /&gt;
&lt;br /&gt;
===Teacher linking to an external file as a new resource (think video repository) ===&lt;br /&gt;
&lt;br /&gt;
# Teacher wants to add a new resource to a course &lt;br /&gt;
# Teacher clicks the &amp;quot;Choose a resource&amp;quot; button&lt;br /&gt;
# Teacher is presented with a simple file picker to choose a file (with a menu to switch between multiple configured repositories)&lt;br /&gt;
# Teacher chooses a file in an external repository&lt;br /&gt;
# Link to the file is COPIED into Moodle and stored by the resource module&lt;br /&gt;
# Link is marked as owned by that user&lt;br /&gt;
# Whenever someone wants to follow that link, the resource module controls access  (see [[Development:File API]] )&lt;br /&gt;
&lt;br /&gt;
===Student submitting an assignment===&lt;br /&gt;
# Student needs to submit an assignment and presses the &amp;quot;Choose files&amp;quot; button&lt;br /&gt;
# Student sees a &amp;quot;file picker&amp;quot; where they can see files listed on any of several configured repositories ([https://docs.moodle.org/en/Image:Filepicker_login.jpg file picker login], [https://docs.moodle.org/en/Image:Filepicker_browser.jpg file picker browser], [https://docs.moodle.org/en/Image:Filepicker_search.jpg file picker search])&lt;br /&gt;
# Student chooses MySpace from the list&lt;br /&gt;
# Student is prompted to enter MySpace username/password (if admin allows it, a checkbox could be there to &amp;quot;remember this for next time&amp;quot; but remember security)&lt;br /&gt;
# Student sees their files in MySpace and chooses one or more&lt;br /&gt;
# Files are copied from MySpace to Moodle &lt;br /&gt;
# Assignment module controls the permissions so that only the Student and assignment graders can see the file (other students would not have permission).&lt;br /&gt;
&lt;br /&gt;
===Student attaching an image to a forum===&lt;br /&gt;
# Student needs to attach an image and presses the &amp;quot;Choose files&amp;quot; button in the posting screen&lt;br /&gt;
# Student sees a &amp;quot;file picker&amp;quot; where they can see files listed on any of several configured repositories&lt;br /&gt;
# Student chooses Mahara from the list&lt;br /&gt;
# Student is prompted to enter Mahara username/password&lt;br /&gt;
# Student sees their files in Mahara and chooses one image&lt;br /&gt;
# Image is copied to Moodle &lt;br /&gt;
# Image file is attached to forum post by Forum module (by reference)&lt;br /&gt;
# Forum module controls permissions so that anyone who can read that forum can see that file&lt;br /&gt;
&lt;br /&gt;
===Student attaching the same image in another forum===&lt;br /&gt;
&lt;br /&gt;
# Student needs to submit an assignment and presses the &amp;quot;Choose files&amp;quot; button&lt;br /&gt;
# Student sees a &amp;quot;file picker&amp;quot; where they can see files listed on any of several configured repositories&lt;br /&gt;
# Student chooses &amp;quot;Local files&amp;quot; from the list and sees all the files they&#039;ve uploaded before&lt;br /&gt;
# A COPY of the image file is attached to forum post by Forum module&lt;br /&gt;
# Forum module controls access to this file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please add more use cases in this same format&lt;br /&gt;
&lt;br /&gt;
==Mock screenshots==&lt;br /&gt;
When you first call up the file picker and choose a repository, you might be asked to log in (if saving of passwords is not allowed):&lt;br /&gt;
&lt;br /&gt;
[[Image:Filepicker_login.jpg]]&lt;br /&gt;
&lt;br /&gt;
Browsing files could look something like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Filepicker_browser.jpg]]&lt;br /&gt;
&lt;br /&gt;
And you can also search:&lt;br /&gt;
&lt;br /&gt;
[[Image:Filepicker_search.jpg]]&lt;br /&gt;
&lt;br /&gt;
==General architecture==&lt;br /&gt;
&lt;br /&gt;
Each repository plugin (a standard Moodle plugin stored under /repository/xxx) will subclass the standard API and override methods specific to that repository.&lt;br /&gt;
&lt;br /&gt;
As is usual in Moodle, there will be admin settings to disable/enable certain repository plugins as standard, as well as user settings so that users can add their own personal repositories to the standard list (eg [http://briefcase.yahoo.com Yahoo Briefcase] or [http://docs.google.com Google Docs]) and to select their default repository.&lt;br /&gt;
&lt;br /&gt;
Once a repository has been used the file will usually be copied into Moodle there and then.  However there will also be options to:&lt;br /&gt;
* only return the URL to the file if it&#039;s desired to keep it external (but this does present security and integrity risks), or&lt;br /&gt;
* refresh the local file copy regularly and automatically&lt;br /&gt;
* refresh the file manually if desired&lt;br /&gt;
&lt;br /&gt;
Once in Moodle, it is subject to the [[Development:File API]] for access control like any other file.&lt;br /&gt;
&lt;br /&gt;
==Repository requirements==&lt;br /&gt;
&lt;br /&gt;
From the Moodle point of view, each repository is just a hierarchy of nodes.&lt;br /&gt;
&lt;br /&gt;
The repository MUST provide:&lt;br /&gt;
# A URI to download each node (eg file).&lt;br /&gt;
# A list of the nodes (eg files and directories) under a given node (eg directory).  This allows Moodle to construct a standard browse interface (much like a standard OS file picker).  However some repository plugins may choose to completely override the repository_browse() method and implement their own interface, that&#039;s OK, as long as they end up with a URL for the file.&lt;br /&gt;
&lt;br /&gt;
The repository can OPTIONALLY:&lt;br /&gt;
# Require some authentication credentials &lt;br /&gt;
# Provide more metadata about each node (mime type, size, dates, related files, dublin core stuff, etc)&lt;br /&gt;
# Describe a search facility (so that Moodle can construct a search form)&lt;br /&gt;
# Provide copyright and usage rules (or just information about the rules)&lt;br /&gt;
&lt;br /&gt;
==Repository plugins==&lt;br /&gt;
&lt;br /&gt;
Some plugins I&#039;d like to see developed for the first version are:&lt;br /&gt;
* local - very similar to the current course-based file manager, except user-based&lt;br /&gt;
* moodle - an interface to another Moodle site, accessed over a secure mnet connection&lt;br /&gt;
* jsr170 - an interface that can talk to anything that supports jsr170 (eg [http://www.alfresco.com/ Alfresco])&lt;br /&gt;
* oki - an OKI emulator allowing us to access things with OKI interfaces,like [http://www.fedora.info/ Fedora]&lt;br /&gt;
* briefcase - an interface to [http://briefcase.yahoo.com/ Yahoo Briefcase]&lt;br /&gt;
* myspace - an interface to MySpace files (perhaps via [http://www.programmableweb.com/api/myspace this MySpace API])&lt;br /&gt;
* googledocs - an interface to [http://docs.google.com Google Docs]&lt;br /&gt;
* s3 - an interface to [http://www.amazon.com/gp/browse.html?node=16427261 Amazon S3]&lt;br /&gt;
* skydrive - an interface to Microsoft&#039;s [http://skydrive.live.com/ SkyDrive] files&lt;br /&gt;
* box - an interface to [http://box.net box.net]&lt;br /&gt;
* facebook - an interface to Facebook files&lt;br /&gt;
* merlot - an interface to the learning materials in [http://www.merlot.org/merlot/materials.htm Merlot.org]&lt;br /&gt;
* flickr - an interface to [http://flickr.com flickr]&lt;br /&gt;
* youtube - an interface to [http://youtube.com YouTube]&lt;br /&gt;
* mahara - an interface to a Mahara installation&lt;br /&gt;
* Dspace - a repository from MIT&lt;br /&gt;
* DOOR - another popular open source repository&lt;br /&gt;
* SMB shares - An interface for windows shares e.g. personal folders on network drives. Would need to link with LDAP as usernames will often be wholly/partially the same as network folder names. This could be done using SAMBA, but would also need to work on windows machines natively. See [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=991 this block] for a linux implementation.&lt;br /&gt;
* WebDAV - to access arbitrary external WebDAV servers&lt;br /&gt;
&lt;br /&gt;
==Tables==&lt;br /&gt;
&lt;br /&gt;
=== repository ===&lt;br /&gt;
&lt;br /&gt;
This table contains one entry for every configured external repository instance.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Field&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Type&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Default&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Info&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;id&#039;&#039;&#039;&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|autoincrementing &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|repositoryname&lt;br /&gt;
|varchar&lt;br /&gt;
|&lt;br /&gt;
|A custom name for this repository (non-unique)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;repositorytype&#039;&#039;&#039; &lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|The name of the plugin being used  (1 special case:  &amp;quot;local&amp;quot; which covers all files uploaded from desktop)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;userid&#039;&#039;&#039; &lt;br /&gt;
|int(10)&lt;br /&gt;
| &lt;br /&gt;
|The person who created this repository instance&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;contextid&#039;&#039;&#039; &lt;br /&gt;
|int(10)&lt;br /&gt;
| &lt;br /&gt;
|The context that this repository is available to ( = system context for site-wide ones)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|username&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|username to log in with, if required&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|password&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|password to log in with, if required&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option1&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option2&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option3&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option4&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|option5&lt;br /&gt;
|varchar&lt;br /&gt;
| &lt;br /&gt;
|Other information useful to the plugin&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|timecreated&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The time this repository was created&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|timemodified&lt;br /&gt;
|int(10)&lt;br /&gt;
|&lt;br /&gt;
|The last time the repository was modified&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===File types===&lt;br /&gt;
&lt;br /&gt;
The context at which someone is inserting a file may require certain file types (eg uploading a new user profile image is only looking for images).  &lt;br /&gt;
&lt;br /&gt;
To support this, the calling code needs to be able to specify the required mimetypes, and the listing code should be able to filter the results based on these mimetypes.  Ideally the repository itself can do the filtering for ultimate speed (though not all repositories will support this).&lt;br /&gt;
&lt;br /&gt;
We will have to develop special new mimetypes for Moodle files like backups (application/vnd.moodle.backup) and IMS learning design (application/vnd.moodle.imsld) etc&lt;br /&gt;
&lt;br /&gt;
==Invoking the API==&lt;br /&gt;
&lt;br /&gt;
Moodle module code doesn&#039;t generally need to call the repository API directly.  Instead it will add a &amp;quot;fileopen&amp;quot; moodleform item:&lt;br /&gt;
&lt;br /&gt;
 $mform-&amp;gt;addElement(&#039;fileopen&#039; ...)&lt;br /&gt;
&lt;br /&gt;
to a form which will invoke the file picker (with file types etc), which in turn will call various repository plugins to create the display.&lt;br /&gt;
&lt;br /&gt;
We should pass the context too, to help the picker decide what repositories are available at this moment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===file_open()===&lt;br /&gt;
&lt;br /&gt;
(in lib/filelib.php ... usually called by moodleforms)&lt;br /&gt;
&lt;br /&gt;
Creates a text field for containing a human-readable filename, together with a hidden field containing a file reference, as well as a button to launch the file picker (repository/picker.php).  If a file has already been chosen, it could also show a preview (depends on file type).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===repository/picker.php===&lt;br /&gt;
&lt;br /&gt;
The main script that displays the picker dialog.  It looks through all the repository settings to give the user what they need to see.&lt;br /&gt;
&lt;br /&gt;
==Repository plugins==&lt;br /&gt;
&lt;br /&gt;
Each repository plugin is required to contain the following elements:&lt;br /&gt;
&lt;br /&gt;
===class repository()===&lt;br /&gt;
&lt;br /&gt;
This class implements the interface to a particular repository, for browsing, selecting and updating files.  The base class (repository) is defined in /repository/repository.class.php, while each repository defines an inherited class (eg repository_alfresco) in /repository/repositoryname/repository.class.php&lt;br /&gt;
&lt;br /&gt;
Repositories can redefine any of these methods as required (and in some instances, MUST redefine them):&lt;br /&gt;
&lt;br /&gt;
====get_file($path)====&lt;br /&gt;
&lt;br /&gt;
Given a URL, get a file from there.&lt;br /&gt;
&lt;br /&gt;
====get_listing($parent=&#039;/&#039;, $search=&#039;&#039;&#039;&#039;&#039;&#039;&#039;&#039;)====&lt;br /&gt;
&lt;br /&gt;
Given a path, and perhaps a search, get a listing of files.&lt;br /&gt;
&lt;br /&gt;
====print_login()====&lt;br /&gt;
&lt;br /&gt;
Show the login screen, if required&lt;br /&gt;
&lt;br /&gt;
====print_listing====&lt;br /&gt;
&lt;br /&gt;
Given a listing from get_listing, print it.&lt;br /&gt;
&lt;br /&gt;
====print_search==== &lt;br /&gt;
&lt;br /&gt;
Print the search form.&lt;br /&gt;
&lt;br /&gt;
====store_login($username, $password, $userid=&#039;&#039;&#039;&#039;&#039;&#039;&#039;&#039;)====&lt;br /&gt;
&lt;br /&gt;
If you do want to cache login details for various repositories, then use this method.&lt;br /&gt;
&lt;br /&gt;
====more to come====&lt;br /&gt;
&lt;br /&gt;
====cron()====&lt;br /&gt;
&lt;br /&gt;
Defines operations that happen occasionally on cron.&lt;br /&gt;
&lt;br /&gt;
===icon.png===&lt;br /&gt;
&lt;br /&gt;
A logo that represents the repository.  Ideally square but we should handle all sizes.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Development:File API]]&lt;br /&gt;
* [[Development:Portfolio API]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=35405</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=35405"/>
		<updated>2008-04-29T14:51:48Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Editing a category */&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;
==Editing a category==&lt;br /&gt;
{{Moodle 1.9}}You can edit a category in Moodle 1.9, which gives you access to change the Parent category (if applicable), change the name of the cateory, add or edit the course category description, and force a theme for the category (if enabled in &#039;&#039;Administration block &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme Settings&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
If the category is visible, the course category description will be displayed to users when they enter the category, above the list of courses.&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;
{{Moodle 1.9}}Starting with Moodle 1.9, you can add sub-categories directly in the category you want it in.  Simply enter the course category, Turn Editing On, and click &#039;Add a sub-category&#039;.&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;
==Setting category depth==&lt;br /&gt;
&lt;br /&gt;
You can limit the number of categories that are displayed in the front page &#039;List of Categories&#039; or &#039;Combo List&#039; by adding the following line to your config.php:&lt;br /&gt;
&lt;br /&gt;
$CFG-&amp;gt;max_category_depth = n;&lt;br /&gt;
&lt;br /&gt;
Where n is the maximum number of categories you wish to display.&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;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=47954 Course Summary Sometimes Not Appearing] forum discussion&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>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=35404</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=35404"/>
		<updated>2008-04-29T14:51:30Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Editing a category */&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;
==Editing a category==&lt;br /&gt;
{{Moodle 1.9}}You can edit a category in Moodle 1.9, which gives you access to change the Parent category (if applicable), change the name of the cateory, add or edit the course category description, and force a theme for the category (if enabled in &#039;&#039;Administration block &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme Settings&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
If the category is visible, the course category description will be displayed to users when the enter the category, above the list of courses.&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;
{{Moodle 1.9}}Starting with Moodle 1.9, you can add sub-categories directly in the category you want it in.  Simply enter the course category, Turn Editing On, and click &#039;Add a sub-category&#039;.&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;
==Setting category depth==&lt;br /&gt;
&lt;br /&gt;
You can limit the number of categories that are displayed in the front page &#039;List of Categories&#039; or &#039;Combo List&#039; by adding the following line to your config.php:&lt;br /&gt;
&lt;br /&gt;
$CFG-&amp;gt;max_category_depth = n;&lt;br /&gt;
&lt;br /&gt;
Where n is the maximum number of categories you wish to display.&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;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=47954 Course Summary Sometimes Not Appearing] forum discussion&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>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=35403</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=35403"/>
		<updated>2008-04-29T14:49:44Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &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;
==Editing a category==&lt;br /&gt;
{{Moodle 1.9}}You can edit a category in Moodle 1.9, which gives you access to change the Parent category (if applicable), change the name of the cateory, add or edit the course category description, and force a theme for the category (if enabled in &#039;&#039;Administration block &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme Settings&#039;&#039;).&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;
{{Moodle 1.9}}Starting with Moodle 1.9, you can add sub-categories directly in the category you want it in.  Simply enter the course category, Turn Editing On, and click &#039;Add a sub-category&#039;.&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;
==Setting category depth==&lt;br /&gt;
&lt;br /&gt;
You can limit the number of categories that are displayed in the front page &#039;List of Categories&#039; or &#039;Combo List&#039; by adding the following line to your config.php:&lt;br /&gt;
&lt;br /&gt;
$CFG-&amp;gt;max_category_depth = n;&lt;br /&gt;
&lt;br /&gt;
Where n is the maximum number of categories you wish to display.&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;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=47954 Course Summary Sometimes Not Appearing] forum discussion&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>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=34784</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=34784"/>
		<updated>2008-04-12T23:35:35Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &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;
==Setting category depth==&lt;br /&gt;
&lt;br /&gt;
You can limit the number of categories that are displayed in the front page &#039;List of Categories&#039; or &#039;Combo List&#039; by adding the following line to your config.php:&lt;br /&gt;
&lt;br /&gt;
$CFG-&amp;gt;max_category_depth = n;&lt;br /&gt;
&lt;br /&gt;
Where n is the maximum number of categories you wish to display.&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;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=47954 Course Summary Sometimes Not Appearing] forum discussion&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>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Development:External_Database_Plugin&amp;diff=32958</id>
		<title>Development:External Database Plugin</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Development:External_Database_Plugin&amp;diff=32958"/>
		<updated>2008-02-27T16:29:11Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: Development page for Gradebook External Database Plugin&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is for discussion regarding development of a plugin that will interface between the Moodle 1.9 gradebook and an external database in order to synchronize grade items, categories, scales, and outcomes and transfer data between them.&lt;br /&gt;
&lt;br /&gt;
Site settings&lt;br /&gt;
&lt;br /&gt;
Once the plugin has been installed, it will be available for the site administrator to configure in Admin-&amp;gt;Grades.&lt;br /&gt;
&lt;br /&gt;
At the site level, the plugin will give the site administrator the ability to define external database server settings and remote database fields, including settings for grades, categories, outcomes, and scales.  &lt;br /&gt;
&lt;br /&gt;
These fields may map to multiple or the same tables and are optional (if not defined, that functionality will not be enabled in the plugin).  &lt;br /&gt;
&lt;br /&gt;
The site administrator will be able to define which system (Moodle, external database, most recent update) is the ‘master’ record.  The site administrator will be able to determine if course teachers have the ability to add new records of each type to the external database, and if course teachers are allowed to keep Moodle grade items unassigned.  Depending on how this is set up, a number of different scenarios are possible.&lt;br /&gt;
&lt;br /&gt;
Sample screenshot of configuration page follows.  It is understood that the layout and design for this page will change to accommodate help buttons, information regarding these settings, etc.  It has merely been presented in this format to show options needed in a compact manner.  The ‘Allow’ checkboxes may be removed from this screen if enabled as Gradebook roles and clearly documented.&lt;br /&gt;
&lt;br /&gt;
Please note that the site administrator will also need a way to associate course and user id between the two systems, ensuring proper synchronization for course and user data.  Either fields for this information must be included, or if external database enrollment has been configured, the administrator may choose to use those settings.  These settings are not included in the following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[Image:Gradebook_plugin_site_settings.JPG]]&lt;br /&gt;
&lt;br /&gt;
These settings are assuming that ‘remote_desc’ will map to ‘itemname’ (grades &amp;amp; categories), ‘fullname (outcomes), and ‘name’ (scale).  It may be necessary to add options to set this relationship.  Categories should use mdl_grade_items with an itemtype of category and the same localfield mapping as Grade Items.  &lt;br /&gt;
&lt;br /&gt;
Course settings&lt;br /&gt;
&lt;br /&gt;
Once external database integration has been enabled, a new set of options is available in the Moodle gradebook under the ‘View’ dropdown, similar to what is seen for report, import and export plugins.  This is controlled by the options that have been configured and capabilities defined in the user’s role.  Screenshot of all options enabled follows:&lt;br /&gt;
&lt;br /&gt;
[[Image:Gradebook_plugin_view_dropdown.JPG]]&lt;br /&gt;
&lt;br /&gt;
Selecting any of the external database plugin options will present the course teacher with a screen similar to the screen seen for that item under the Edit options, but will enable the teacher to assign Moodle items to the external database, create new mappings for the external database, or leave Moodle items unassigned.  Once this is done and saved, the remoteid and remotedesc will be mapped to the proper location in the Moodle database.&lt;br /&gt;
&lt;br /&gt;
A sample screenshot of the Categories and items selection page follows.&lt;br /&gt;
&lt;br /&gt;
[[Image:Gradebook_plugin_course_settings.JPG]]&lt;br /&gt;
&lt;br /&gt;
Please note that when a category is selected, only categories from the external database should be displayed, likewise with grade items.  These pages will need some sort of check when changes are saved to ensure that a one-to-one relationship exists – the user should not be allowed to map multiple items from Moodle or the external database to a single item in the other.  Attempts to create one to many relationships should return the page with the offending items clearly marked.  &lt;br /&gt;
&lt;br /&gt;
Additional functionality could include the use of AJAX to remove already chosen items from the dropdown list.&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=File:Gradebook_plugin_course_settings.JPG&amp;diff=32957</id>
		<title>File:Gradebook plugin course settings.JPG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=File:Gradebook_plugin_course_settings.JPG&amp;diff=32957"/>
		<updated>2008-02-27T16:27:27Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=File:Gradebook_plugin_view_dropdown.JPG&amp;diff=32956</id>
		<title>File:Gradebook plugin view dropdown.JPG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=File:Gradebook_plugin_view_dropdown.JPG&amp;diff=32956"/>
		<updated>2008-02-27T16:25:44Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=File:Gradebook_plugin_site_settings.JPG&amp;diff=32955</id>
		<title>File:Gradebook plugin site settings.JPG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=File:Gradebook_plugin_site_settings.JPG&amp;diff=32955"/>
		<updated>2008-02-27T16:24:05Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Development:Developer_notes&amp;diff=32954</id>
		<title>Development:Developer notes</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Development:Developer_notes&amp;diff=32954"/>
		<updated>2008-02-27T16:21:06Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Modules and other recognised plugin types */&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;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This area is for developers to work on various bits of code and documentation as necessary. Once material has matured it should be linked to from the main [[Development:Developer documentation|Developer documentation]] page.&lt;br /&gt;
&lt;br /&gt;
==Core code==&lt;br /&gt;
&lt;br /&gt;
*[[Other lang issues|Language issues]] &lt;br /&gt;
*[[Datalib Notes]]&lt;br /&gt;
*[[Application/session variables]]&lt;br /&gt;
*[[Filters schema]]&lt;br /&gt;
*[[Filterall support]]&lt;br /&gt;
*[[Groups documentation for module developers]]&lt;br /&gt;
*[[Development:Plan to improve ability to delegate administrator tasks to course category level|Plan to improve ability to delegate administrator tasks to course category level]]&lt;br /&gt;
*[[Development:Stealth mode and nested activities|Stealth mode and nested activities]]&lt;br /&gt;
&lt;br /&gt;
==Modules and other recognised plugin types==&lt;br /&gt;
&lt;br /&gt;
===Lesson===&lt;br /&gt;
&lt;br /&gt;
*[[Adding_question_types_to_lesson|Adding question types to lesson module]]&lt;br /&gt;
*[[Development:New lesson navigation | New lesson navigation]]&lt;br /&gt;
*[[Development:Adding blocks to lesson | Adding blocks to lesson]]&lt;br /&gt;
&lt;br /&gt;
===Quiz &amp;amp; question types===&lt;br /&gt;
&lt;br /&gt;
*[[Calculated question development]]&lt;br /&gt;
*[[Development:quiz_navigation | Quiz navigation]]&lt;br /&gt;
*[[Numerical question units and intervals]]&lt;br /&gt;
*[[Development:Plans for adaptive mode|Plans for adaptive mode]]&lt;br /&gt;
*[[Development:Quiz UI redesign prototype | Quiz UI redesign prototype]]&lt;br /&gt;
*[[Development:Open_protocol_for_accessing_question_engines|Open protocol for accessing question engines]]&lt;br /&gt;
*[[Development:Implementation of true negative marks in MC-type questions]]&lt;br /&gt;
*[[Development:Quiz report enhancements|Quiz report enhancements]]&lt;br /&gt;
&lt;br /&gt;
===Other activity modules===&lt;br /&gt;
&lt;br /&gt;
*[[Forum development|Forum functional upgrade]]&lt;br /&gt;
*[[Wiki development|Wiki module development]]&lt;br /&gt;
&lt;br /&gt;
===Gradebook Plugins===&lt;br /&gt;
&lt;br /&gt;
*[[Development:External Database Plugin]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
&lt;br /&gt;
*[[Blogs and forums|Blogs, forums and the nature of discussion]]&lt;br /&gt;
*[[Conditional activities]]&lt;br /&gt;
*[[Improved Payment Plugin]]&lt;br /&gt;
*[[Development:Moodle-specific customisations to the HTML editor]]&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
&lt;br /&gt;
*[[MoodleDocs development]]&lt;br /&gt;
*[[Usability]]&lt;br /&gt;
*[[Document Management API]]&lt;br /&gt;
*[[wikindx|Possible integration of WIKINDX with Moodle]]&lt;br /&gt;
*[[Quiz and quesions community testing day]]&lt;br /&gt;
*[[Development:Snapshot - flat HTML export of complete course]]&lt;br /&gt;
*[[Development:Offline Moodle | Development:Offline Moodle - A Moodle that runs on a mobile device with the internet]]&lt;br /&gt;
&lt;br /&gt;
==Archive: past proposals==&lt;br /&gt;
&lt;br /&gt;
===Things that got implemented===&lt;br /&gt;
&lt;br /&gt;
*[[Roles]] - in Moodle 1.7&lt;br /&gt;
*[[Moodle forms library]] - in Moodle 1.8&lt;br /&gt;
**[[Martin form notes]]&lt;br /&gt;
*[[Development:Plan_to_Improve_Flexibility_of_Question_Category_Sharing_and_Permissions|Plans for enhancing the question bank]] - in Moodle 1.9&lt;br /&gt;
*[[Development:Email notification when a quiz is submitted|Email notification when a quiz is submitted]] - in Moodle 1.9&lt;br /&gt;
*[[Development:Plans for enhancing import/export in questiontype plugins]] - in Moodle 1.9&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32245</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32245"/>
		<updated>2008-02-15T14:05:00Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* How do I enable/disable debugging? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
:Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
&lt;br /&gt;
:To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32244</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32244"/>
		<updated>2008-02-15T14:04:21Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* How do I enable/disable debugging? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;/nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
:Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
&lt;br /&gt;
:To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32243</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32243"/>
		<updated>2008-02-15T14:03:42Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;/nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
:Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
&lt;br /&gt;
:To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32242</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32242"/>
		<updated>2008-02-15T14:03:12Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* How do I enable/disable debugging? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;/nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
:Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
&lt;br /&gt;
:To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;;&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32241</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32241"/>
		<updated>2008-02-15T14:01:55Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;/nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
:Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
:To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32240</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32240"/>
		<updated>2008-02-15T13:59:13Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;nowiki&amp;gt; you can add these lines&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To turn it back off, use this command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32239</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32239"/>
		<updated>2008-02-15T13:57:13Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;nowiki&amp;gt; you can add these lines&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
To turn it back off, use this command&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32238</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32238"/>
		<updated>2008-02-15T13:55:22Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
:Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
:To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32237</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32237"/>
		<updated>2008-02-15T13:53:02Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32236</id>
		<title>Administration FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administration_FAQ&amp;diff=32236"/>
		<updated>2008-02-15T13:51:22Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
&lt;br /&gt;
==Changing text in Moodle==&lt;br /&gt;
&lt;br /&gt;
Text in Moodle may be changed by editing the language files via Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/lang | Language]].&lt;br /&gt;
&lt;br /&gt;
== How do the limits on uploaded files work? ==&lt;br /&gt;
&lt;br /&gt;
File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.&lt;br /&gt;
&lt;br /&gt;
1. Firstly, there is a setting in Apache 2 which you may need to change. On Redhat this setting is very low by default, you can change the limit by adding or editing a line in Apache&#039;s &#039;&#039;/etc/httpd/conf/httpd.conf&#039;&#039; and/or &#039;&#039;/etc/httpd/conf.d/php.conf&#039;&#039; with the upload size in bytes (different operating systems may have these files in different locations):&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 10485760&lt;br /&gt;
&lt;br /&gt;
2. PHP also has two more byte limits, which you can set in &#039;&#039;php.ini&#039;&#039; and sometimes in a &#039;&#039;.htaccess&#039;&#039; file:&lt;br /&gt;
&lt;br /&gt;
 php_value upload_max_filesize 50000000&lt;br /&gt;
 php_value post_max_size 50000000&lt;br /&gt;
&lt;br /&gt;
To convert from Bytes to Megabytes use [http://www.onlineconversion.com/computer.htm this convertor ]&lt;br /&gt;
&lt;br /&gt;
Please note that a server re-start may be required for the above changes to take effect.&lt;br /&gt;
&lt;br /&gt;
3. Moodle has a site-wide limit called maxbytes that may be set in Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]].&lt;br /&gt;
&lt;br /&gt;
4. A limit may be set by teachers in the [[course/edit|Course settings]].&lt;br /&gt;
&lt;br /&gt;
5. Activity modules such as [[Forums]] and [[Assignments]] have their own limits which may be set when adding or editing the activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=39625 Detailed instructions to increase the maximum allowed size for uploaded files] forum discussion&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change upload file size on a Windows localhost==&lt;br /&gt;
In a localhost (using a [[Complete install packages]] on a computer) for 1.6 it is easy to change the uploaded file size to something larger than the default 16M. &lt;br /&gt;
&lt;br /&gt;
Here is an example of how to change the upload file size to 100M.&lt;br /&gt;
*Find ..&#039;&#039;&#039;/Apache/bin/php.ini&#039;&#039;&#039; and open it with WordPad by right-clicking -&amp;gt; Open With -&amp;gt; then choose WordPad.  &lt;br /&gt;
*In this file scroll or do a search on the text &amp;quot;_max_&amp;quot; to find &amp;lt;code&amp;gt;upload_max_filesize = 16M&amp;lt;/code&amp;gt;    &lt;br /&gt;
*Change that line to&lt;br /&gt;
 upload_max_filesize = 100M&lt;br /&gt;
*In the same way, find &amp;lt;code&amp;gt;post_max_size = 16M&amp;lt;/code&amp;gt;      &lt;br /&gt;
*Change that line to&lt;br /&gt;
 post_max_size = 100M&lt;br /&gt;
*Save the file.  &lt;br /&gt;
&lt;br /&gt;
After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Instructions below on How to change the maximum execution time&lt;br /&gt;
&lt;br /&gt;
== How to change the maximum execution time ==&lt;br /&gt;
&lt;br /&gt;
A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:&lt;br /&gt;
&lt;br /&gt;
 max_execution_time = 600&lt;br /&gt;
&lt;br /&gt;
If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
 php_value max_execution_time 600&lt;br /&gt;
&lt;br /&gt;
Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -&amp;gt; environment page.&lt;br /&gt;
&lt;br /&gt;
== I have forgotten the admin password ==&lt;br /&gt;
Firstly, try using the button &amp;quot;Send my details via email&amp;quot;. Otherwise, you will need to access the database using MySQL admin. Passwords for all users, including admin, are stored encrypted in the table &#039;&#039;mdl_user&#039;&#039;. Copy the guest password (guest) into the admin password field then login using it.&lt;br /&gt;
&lt;br /&gt;
Additional solutions are detailed in the discussions [http://moodle.org/mod/forum/discuss.php?d=18103 change admin&#039;s password] and [http://moodle.org/mod/forum/discuss.php?d=4552&amp;amp;parent=38070 login/password].&lt;br /&gt;
&lt;br /&gt;
== My log table has disappeared - No logs found! ==&lt;br /&gt;
The most likely cause is that the mdl_log table has become corrupted. See the [[#How_do_I_repair_a_corrupted_Moodle_database.3F|database repair section]] below.&lt;br /&gt;
&lt;br /&gt;
==My style sheet changes aren&#039;t showing up==&lt;br /&gt;
&lt;br /&gt;
Browsers usually cache style sheets and so a forced refresh (CTRL + F5) is required before any changes show up.&lt;br /&gt;
&lt;br /&gt;
==How do I make my Moodle site homepage look like the moodle.org homepage?==&lt;br /&gt;
&lt;br /&gt;
Please see the theme how-to [[Homepage design|homepage design of moodle.org]] for full details.&lt;br /&gt;
&lt;br /&gt;
== Site-wide scales ==&lt;br /&gt;
To add a site-wide scale, available in all courses, follow the Scales link in any course Administration block. Add a new scale, then use the move down arrow to move the scale from custom scales to standard scales.&lt;br /&gt;
&lt;br /&gt;
==Why do I see &amp;lt;nowiki&amp;gt;[[missing strings]]&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
&lt;br /&gt;
Double square brackets around text indicate that language strings are missing. Try checking for untranslated words or phrases in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language editing]]&#039;&#039; and update local language packs in &#039;&#039;Administration &amp;gt; Language &amp;gt; [[Language packs]]&#039;&#039; (or &#039;&#039;Administration &amp;gt; Configuration &amp;gt; Language&#039;&#039; in Moodle 1.6).&lt;br /&gt;
&lt;br /&gt;
Language strings for non-standard modules and plugins are generally contained in a &#039;&#039;lang&#039;&#039; folder within the module or plugin folder. For sites which have migrated to UTF-8, it may be necessary to re-name the folder e.g. &#039;&#039;en&#039;&#039; should be re-named &#039;&#039;en_utf8&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How do I find the version of Moodle currently installed?==&lt;br /&gt;
See the [[Moodle version]] information.&lt;br /&gt;
&lt;br /&gt;
==How do I repair a corrupted Moodle database?==&lt;br /&gt;
Database corruption usually occurs as a result of a hardware (especially disk-based) failure, or when a disk becomes full. Typical symptoms are failure on login, with this message displayed:&lt;br /&gt;
&lt;br /&gt;
 Session Replace: Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
&lt;br /&gt;
The problem can be repaired using the mysqlcheck command (the command you type is in bold and we assume the database name is &#039;moodle&#039; and its type is MySQL):&lt;br /&gt;
&lt;br /&gt;
 #&#039;&#039;&#039;mysqlcheck –u moodleuser –p –-auto-repair moodle&#039;&#039;&#039;&lt;br /&gt;
 Enter password:&lt;br /&gt;
 moodle.adodb_logsql                      OK&lt;br /&gt;
 moodle.mdl_assignment                    OK&lt;br /&gt;
 moodle.mdl_assignment_submissions        OK&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_log&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_log&#039; is marked as crashed and should be repaired&lt;br /&gt;
 ...&lt;br /&gt;
 moodle.mdl_sessions2&lt;br /&gt;
 error    : Table &#039;./moodle/mdl_sessions2&#039; is marked as crashed and should be repaired&lt;br /&gt;
 &lt;br /&gt;
 Repairing tables&lt;br /&gt;
 moodle_18_latest.mdl_log                           OK&lt;br /&gt;
 moodle_18_latest.mdl_sessions2                     OK&lt;br /&gt;
&lt;br /&gt;
Your mysql database server must be running when executing the mysqlcheck command. If there are problems with the tables, the auto-repair option will fix them as shown above. Note that the repair process can take a long time to complete. Re-run the command again to double-check that all is OK. &lt;br /&gt;
&lt;br /&gt;
Individual Moodle tables may be repaired using MySQL Admin/PHPMyAdmin as follows:&lt;br /&gt;
*In the databases section, select the Moodle database.&lt;br /&gt;
*Click the SQL tab, then in the &amp;quot;Run SQL query/queries on database moodle&amp;quot; field type&lt;br /&gt;
 REPAIR TABLE mdl_tablename&lt;br /&gt;
*Click the Go button.&lt;br /&gt;
For example, to repair the Moodle log tables, type &amp;lt;code&amp;gt;REPAIR TABLE mdl_log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58208#279638 Forum discussion] on a moodle database optimization script&lt;br /&gt;
*[[Performance#MySQL_performance | Performance Documentation]] on database repair and optimization&lt;br /&gt;
*[http://www.databasejournal.com/features/mysql/article.php/10897_3300511_2 Database Journal article on repairing database corruption in MySQL]&lt;br /&gt;
&lt;br /&gt;
==Re. Site files, what does &amp;quot;files placed here can be accessed by anyone&amp;quot; mean?==&lt;br /&gt;
&lt;br /&gt;
Unlike course files, which require a user to have appropriate rights in order to access them, files within the site files folder are accessible by anyone provided with the URI. For example visitors to the site may view images stored in the site files folder without being logged in. Please refer to [[Site files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==My site is stuck in maintenance mode==&lt;br /&gt;
&lt;br /&gt;
Sometimes Moodle gets stuck in maintenance mode and you&#039;ll see the message &amp;quot;This site is undergoing maintenance and is currently unavailable&amp;quot; despite your attempts to turn-off maintenance mode. When you put Moodle into maintenance mode it creates a file called maintenance.html in moodledata/1/maintenance.html (the site files folder). To fix this try the following:&lt;br /&gt;
&lt;br /&gt;
* Check that the web server user has write permissions to the moodledata folder.&lt;br /&gt;
* Manually delete the maintenance.html file.&lt;br /&gt;
&lt;br /&gt;
==Incomplete page displayed when I click &amp;quot;Turn Editing On&amp;quot;==&lt;br /&gt;
This is usually as a result of an incompatible non-standard module or block that you have installed. Follow these steps:&lt;br /&gt;
#Find any non-standard modules or blocks you have installed in the moodle/mod or moodle/blocks folders.&lt;br /&gt;
#Move these to another folder outside the moodle folder. &lt;br /&gt;
#Re-visit your course page and try clicking on the &amp;quot;Turn Editing On&amp;quot; button again. &lt;br /&gt;
#Repeat the process until you find the one that is causing the problems. &lt;br /&gt;
&lt;br /&gt;
Once you have found an incompatible module/block, please report the problem to the author in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins] page. &lt;br /&gt;
&lt;br /&gt;
==&amp;quot;a request parameter (id) was missing&amp;quot; when uploading a file==&lt;br /&gt;
&lt;br /&gt;
This message sometimes is generated when attempting to upload a file larger than the upload limit.&lt;br /&gt;
&lt;br /&gt;
==I cannot delete the News Forum on a course==&lt;br /&gt;
The News Forum is deleted by setting the number of items to display to zero. To do this, change the setting in Course Admin menu -&amp;gt; Settings -&amp;gt; News Items to Show.&lt;br /&gt;
&lt;br /&gt;
==How can I change the URL of the moodle service==&lt;br /&gt;
&lt;br /&gt;
You should configure your Apache server, at httpd.conf, using Listen, Port and DocumentRoot directives and Directory section. After restarting Apache, you also must open config.php in a text editor, and change the line:&lt;br /&gt;
    $CFG-&amp;gt;wwwroot   = &#039;http://mydomain/testmoodle&#039;;&lt;br /&gt;
&lt;br /&gt;
Your Moodle site will also contain absolute links to resources which point to the previous URL. To change this see the [[Moodle_migration#Migrating_a_complete_Moodle_site | migrating a complete Moodle site]] instructions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also&#039;&#039;&#039;: [http://moodle.org/mod/forum/discuss.php?d=51667 Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Why is the Moodle Registration button still displayed after I register my site?==&lt;br /&gt;
The registration button is provided so that you can place your moodle site to the http://www.moodle.org/sites list. Before registering, the button is displayed at the top of the Site Administration -&amp;gt; Notifications page. Once you have successfully registered, this is moved to the bottom of the same page. The button remains there so that you can update the details of your registration.&lt;br /&gt;
&lt;br /&gt;
If the registration process fails for some reason to complete fully, there are two methods of letting your local Moodle install know that you have registered:&lt;br /&gt;
&lt;br /&gt;
* The preferred method is to use your mysql client program to execute these commands (assuming your Moodle database is called &amp;quot;moodle&amp;quot;):&lt;br /&gt;
 mysql&amp;gt; USE moodle;&lt;br /&gt;
 mysql&amp;gt; INSERT INTO mdl_config (name,value) VALUES (&#039;registered&#039;,unix_timestamp());&lt;br /&gt;
&lt;br /&gt;
* Alternatively, edit your &amp;lt;nowiki&amp;gt;moodle/config.php&amp;lt;/nowiki&amp;gt; file and add this line:&lt;br /&gt;
 $CFG-&amp;gt;registered = &#039;9999999999&#039;;&lt;br /&gt;
:Note that this line in your config.php will stop the reminders about re-registering.&lt;br /&gt;
&lt;br /&gt;
For an explanation of the idea behind the button see [http://tracker.moodle.org/browse/MDL-7359 MDL-7359] in the moodle tracker.&lt;br /&gt;
&lt;br /&gt;
For an explanation of how sites are checked see [[Verification_of_sites_on_moodle.org | the site verification page]]&lt;br /&gt;
&lt;br /&gt;
==How do I enable/disable debugging?==&lt;br /&gt;
There are a few ways you can enable or disable debugging on your site.  If you are able to login as an administrator and access the Site Administration block, then the easiest way is to go to Admin-&amp;gt;Server-&amp;gt;Debugging and set it there.  There are several options - the most often recommended setting for debugging is &#039;ALL: Show all reasonable PHP debugging messages&#039;.  To disable debugging, simply set this to &#039;NONE: Do not show any errors or warnings.&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are unable to set your debugging level in this manner, you still have a couple ways to set it - in your config.php or in the database.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;nowiki&amp;gt;moodleroot/config.php&amp;lt;nowiki&amp;gt; you can add these lines:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;debug=2047; &lt;br /&gt;
 $CFG-&amp;gt;debugdisplay=1;&lt;br /&gt;
&lt;br /&gt;
Then simply remove them (or comment them out) when you&#039;re done.&lt;br /&gt;
&lt;br /&gt;
* To enable debugging in the database, simply use a database utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc., and enter the following:&lt;br /&gt;
&lt;br /&gt;
 UPDATE `mdl_config` SET `value` = &#039;2047&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
To turn it back off, use this command:&lt;br /&gt;
&lt;br /&gt;
UPDATE `mdl_config` SET `value` = &#039;0&#039; WHERE `name` =&#039;debug&#039;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Administration hacks]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Administración]]&lt;br /&gt;
[[fr:FAQ d&#039;administration]]&lt;br /&gt;
[[pl:Administracja FAQ]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29540</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29540"/>
		<updated>2007-11-29T19:17:00Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Hiding categories */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Course categories organize courses for all Moodle site participants.   Adding, editing, moving and deleting these categories is best done through the [[Site administration block]] &amp;gt; courses &amp;gt; add/edit courses link. &lt;br /&gt;
&lt;br /&gt;
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;
==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;
&lt;br /&gt;
Categories may be easily hidden or shown.  From the Site Administration block, click Courses then &#039;Add/edit courses&#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 Site Administration-&amp;gt;Front Page-&amp;gt;Front Page Settings and click the checkbox to &#039;Allow visible courses in hidden categories&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Hidden_categories.JPG]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=File:Hidden_categories.JPG&amp;diff=29539</id>
		<title>File:Hidden categories.JPG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=File:Hidden_categories.JPG&amp;diff=29539"/>
		<updated>2007-11-29T19:16:29Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: Screenshot showing hidden categories with courses.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot showing hidden categories with courses.&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29538</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29538"/>
		<updated>2007-11-29T19:15:09Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Hiding categories */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Course categories organize courses for all Moodle site participants.   Adding, editing, moving and deleting these categories is best done through the [[Site administration block]] &amp;gt; courses &amp;gt; add/edit courses link. &lt;br /&gt;
&lt;br /&gt;
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;
==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;
&lt;br /&gt;
Categories may be easily hidden or shown.  From the Site Administration block, click Courses then &#039;Add/edit courses&#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 Site Administration-&amp;gt;Front Page-&amp;gt;Front Page Settings and click the checkbox to &#039;Allow visible courses in hidden categories&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:http://instructor.metrotech.org/~mcampbell/hidden_categories.JPG]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29537</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29537"/>
		<updated>2007-11-29T19:11:46Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Hiding categories */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Course categories organize courses for all Moodle site participants.   Adding, editing, moving and deleting these categories is best done through the [[Site administration block]] &amp;gt; courses &amp;gt; add/edit courses link. &lt;br /&gt;
&lt;br /&gt;
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;
==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;
&lt;br /&gt;
Categories may be easily hidden or shown.  From the Site Administration block, click Courses then &#039;Add/edit courses&#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 Site Administration-&amp;gt;Front Page-&amp;gt;Front Page Settings and click the checkbox to &#039;Allow visible courses in hidden categories&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29536</id>
		<title>Course categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Course_categories&amp;diff=29536"/>
		<updated>2007-11-29T19:10:42Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Course categories organize courses for all Moodle site participants.   Adding, editing, moving and deleting these categories is best done through the [[Site administration block]] &amp;gt; courses &amp;gt; add/edit courses link. &lt;br /&gt;
&lt;br /&gt;
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;
==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;
&lt;br /&gt;
Categories may be hidden/shown from the Site Administration block, click Courses then &amp;quot;Add/edit courses&amp;quot;.  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 Site Administration-&amp;gt;Front Page-&amp;gt;Front Page Settings and click the checkbox to &#039;Allow visible courses in hidden categories&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Installation_FAQ&amp;diff=22244</id>
		<title>Installation FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Installation_FAQ&amp;diff=22244"/>
		<updated>2007-04-11T15:29:58Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Installation hangs when setting-up database tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&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;
&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 OS name (version also if possible): &lt;br /&gt;
* Browser name (version also if possible):&lt;br /&gt;
* Moodle version:&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;
* Apache version:&lt;br /&gt;
* MySQL 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;
&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;
==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;
==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;
==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;
==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 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/&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;
&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;
==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;
==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;
==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 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;
==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;
==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 in the Operating System section of Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]]. You should now be able to access your uploaded files.&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: 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;
==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;
==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;
== Why is a particular page blank or incomplete? ==&lt;br /&gt;
&lt;br /&gt;
Check your web server log files!!&lt;br /&gt;
&lt;br /&gt;
If a particular page is blank or incomplete (it doesn&#039;t display the footer), before you do anything else check your error logs.&lt;br /&gt;
&lt;br /&gt;
PHP can be set up to log errors in a variety of different ways. These settings are contained in the php.ini file on the server. If you don&#039;t know were 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; 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;
Having established that 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 upgrading to a new version of Moodle, check that you do not have an old version of a non-standard block or module installed. Remove any such blocks or modules installed remove them using the admin settings page and start the install process again.&lt;br /&gt;
&lt;br /&gt;
==Installation hangs when setting-up database tables==&lt;br /&gt;
*Sometimes the installation will hang when setting up tables. 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 &lt;br /&gt;
 AddType x-mapp-php5 .php&lt;br /&gt;
to the .htaccess file in the moodle directory has been known to solve the problem.&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;
==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 GD has been included in your PHP installation. 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 install it. On Windows this is usually a matter of &amp;quot;turning on&amp;quot; the module in PHP (see the [[Installing AMP|installation instructions]] for help). 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;
3. Remember to 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;
Please see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.&lt;br /&gt;
&lt;br /&gt;
==Why 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 (output started at /webs/moodle/config.php:87) &lt;br /&gt;
 in /webs/moodle/lib/moodlelib.php on line 1322 &lt;br /&gt;
 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87)&lt;br /&gt;
 in /webs/moodle/lib/moodlelib.php on line 1323 &lt;br /&gt;
 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87)&lt;br /&gt;
 in /webs/moodle/login/index.php 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;
== 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 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;
[http://moodle.org/mod/forum/discuss.php?d=55925#254596 See this Using Moodle Forum Summary]&lt;br /&gt;
&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;
[[Category:Core]]&lt;br /&gt;
[[Category:Administrator]]&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;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Installation_FAQ&amp;diff=22243</id>
		<title>Installation FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Installation_FAQ&amp;diff=22243"/>
		<updated>2007-04-11T15:29:24Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Installation hangs when setting-up database tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&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;
&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 OS name (version also if possible): &lt;br /&gt;
* Browser name (version also if possible):&lt;br /&gt;
* Moodle version:&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;
* Apache version:&lt;br /&gt;
* MySQL 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;
&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;
==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;
==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;
==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;
==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 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/&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;
&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;
==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;
==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;
==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 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;
==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;
==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 in the Operating System section of Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]]. You should now be able to access your uploaded files.&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: 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;
==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;
==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;
== Why is a particular page blank or incomplete? ==&lt;br /&gt;
&lt;br /&gt;
Check your web server log files!!&lt;br /&gt;
&lt;br /&gt;
If a particular page is blank or incomplete (it doesn&#039;t display the footer), before you do anything else check your error logs.&lt;br /&gt;
&lt;br /&gt;
PHP can be set up to log errors in a variety of different ways. These settings are contained in the php.ini file on the server. If you don&#039;t know were 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; 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;
Having established that 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 upgrading to a new version of Moodle, check that you do not have an old version of a non-standard block or module installed. Remove any such blocks or modules installed remove them using the admin settings page and start the install process again.&lt;br /&gt;
&lt;br /&gt;
==Installation hangs when setting-up database tables==&lt;br /&gt;
*Sometimes the installation will hang when setting up tables. 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 &lt;br /&gt;
 AddType x-mapp-php5 .php&lt;br /&gt;
to the .htaccess file in the moodle directory has been known to solve the problem.&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, 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;
==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 GD has been included in your PHP installation. 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 install it. On Windows this is usually a matter of &amp;quot;turning on&amp;quot; the module in PHP (see the [[Installing AMP|installation instructions]] for help). 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;
3. Remember to 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;
Please see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.&lt;br /&gt;
&lt;br /&gt;
==Why 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 (output started at /webs/moodle/config.php:87) &lt;br /&gt;
 in /webs/moodle/lib/moodlelib.php on line 1322 &lt;br /&gt;
 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87)&lt;br /&gt;
 in /webs/moodle/lib/moodlelib.php on line 1323 &lt;br /&gt;
 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87)&lt;br /&gt;
 in /webs/moodle/login/index.php 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;
== 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 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;
[http://moodle.org/mod/forum/discuss.php?d=55925#254596 See this Using Moodle Forum Summary]&lt;br /&gt;
&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;
[[Category:Core]]&lt;br /&gt;
[[Category:Administrator]]&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;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Installation_FAQ&amp;diff=22242</id>
		<title>Installation FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Installation_FAQ&amp;diff=22242"/>
		<updated>2007-04-11T15:28:55Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* Installation hangs when setting-up database tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&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;
&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 OS name (version also if possible): &lt;br /&gt;
* Browser name (version also if possible):&lt;br /&gt;
* Moodle version:&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;
* Apache version:&lt;br /&gt;
* MySQL 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;
&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;
==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;
==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;
==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;
==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 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/&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;
&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;
==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;
==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;
==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 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;
==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;
==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 in the Operating System section of Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; [[admin/config|Variables]]. You should now be able to access your uploaded files.&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: 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;
==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;
==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;
== Why is a particular page blank or incomplete? ==&lt;br /&gt;
&lt;br /&gt;
Check your web server log files!!&lt;br /&gt;
&lt;br /&gt;
If a particular page is blank or incomplete (it doesn&#039;t display the footer), before you do anything else check your error logs.&lt;br /&gt;
&lt;br /&gt;
PHP can be set up to log errors in a variety of different ways. These settings are contained in the php.ini file on the server. If you don&#039;t know were 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; 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;
Having established that 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 upgrading to a new version of Moodle, check that you do not have an old version of a non-standard block or module installed. Remove any such blocks or modules installed remove them using the admin settings page and start the install process again.&lt;br /&gt;
&lt;br /&gt;
==Installation hangs when setting-up database tables==&lt;br /&gt;
*Sometimes the installation will hang when setting up tables. 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 &lt;br /&gt;
 AddType x-mapp-php5 .php&lt;br /&gt;
to the .htaccess file in the moodle directory has been known to solve the problem.&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, 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;
==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 GD has been included in your PHP installation. 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 install it. On Windows this is usually a matter of &amp;quot;turning on&amp;quot; the module in PHP (see the [[Installing AMP|installation instructions]] for help). 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;
3. Remember to 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;
Please see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.&lt;br /&gt;
&lt;br /&gt;
==Why 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 (output started at /webs/moodle/config.php:87) &lt;br /&gt;
 in /webs/moodle/lib/moodlelib.php on line 1322 &lt;br /&gt;
 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87)&lt;br /&gt;
 in /webs/moodle/lib/moodlelib.php on line 1323 &lt;br /&gt;
 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87)&lt;br /&gt;
 in /webs/moodle/login/index.php 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;
== 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 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;
[http://moodle.org/mod/forum/discuss.php?d=55925#254596 See this Using Moodle Forum Summary]&lt;br /&gt;
&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;
[[Category:Core]]&lt;br /&gt;
[[Category:Administrator]]&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;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Front_page&amp;diff=17741</id>
		<title>Front page</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Front_page&amp;diff=17741"/>
		<updated>2006-11-03T18:41:14Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Make News on Front Page viewable to Teachers only]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administrator_documentation&amp;diff=17736</id>
		<title>Administrator documentation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administrator_documentation&amp;diff=17736"/>
		<updated>2006-11-03T18:16:37Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The purpose of this page is to list useful links by general topics for administrators.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
*[[Installing Moodle]]&lt;br /&gt;
*[[Installing AMP|Installing Apache, MySQL and PHP]]&lt;br /&gt;
* [[Installation Quickstart]]&lt;br /&gt;
*[[Installation FAQ]]&lt;br /&gt;
*[[Upgrading|Upgrading Moodle]]&lt;br /&gt;
*[[Complete install packages]]&lt;br /&gt;
&lt;br /&gt;
==Security and performance==&lt;br /&gt;
&lt;br /&gt;
*[[Security]]&lt;br /&gt;
*[[Performance]]&lt;br /&gt;
*[[Manage roles]] 1.7&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
*[[Variables]]&lt;br /&gt;
*[[Site settings]]&lt;br /&gt;
*[[Themes]]&lt;br /&gt;
*[[Language]]&lt;br /&gt;
*[[Modules (administrator)|Modules]]&lt;br /&gt;
*[[Blocks (administrator)|Blocks]]&lt;br /&gt;
*[[Filters (administrator)|Filters]]&lt;br /&gt;
*[[Backup (administrator)|Backup]]&lt;br /&gt;
*[[Editor settings]]&lt;br /&gt;
*[[Calendar (administrator)|Calendar]]&lt;br /&gt;
*[[Maintenance mode]]&lt;br /&gt;
&lt;br /&gt;
==Users==&lt;br /&gt;
&lt;br /&gt;
*[[Authentication]]&lt;br /&gt;
*[[Edit user accounts]]&lt;br /&gt;
*[[Edit profile|Add a new user]]&lt;br /&gt;
*[[Flat file|Upload users]]&lt;br /&gt;
*[[Enrolment plugins]]&lt;br /&gt;
*[[Courses (administrator)|Enrol students]]&lt;br /&gt;
*[[Courses (administrator)|Assign teachers]]&lt;br /&gt;
*[[Assign creators]]&lt;br /&gt;
*[[Assign admins]]&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
&lt;br /&gt;
*[[Courses (administrator)|Courses]] and [[Course formats|course formats]]&lt;br /&gt;
*[[Logs]]&lt;br /&gt;
*[[Site files]]&lt;br /&gt;
*[[Moodle database|Database]]&lt;br /&gt;
*[[Environment]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Integrations]]&lt;br /&gt;
*[[CVS (administrator)|CVS documentation]]&lt;br /&gt;
*[[Email processing]]&lt;br /&gt;
*[[Search engine optimization]]&lt;br /&gt;
*[[Messaging]]&lt;br /&gt;
*[[Migration]]&lt;br /&gt;
*[[Metacourses]]&lt;br /&gt;
*[[Block layout]]&lt;br /&gt;
*[[Customizing Moodle]]&lt;br /&gt;
*[[Backup FAQ]]&lt;br /&gt;
*[[Administration FAQ]]&lt;br /&gt;
*[[Administrator do&#039;s and don&#039;ts]]&lt;br /&gt;
*[http://download.moodle.org/docs/using_moodle/ch16_server_admin.pdf Using Moodle Chapter 16: Moodle Administration]&lt;br /&gt;
&lt;br /&gt;
[[Category: Administrator]]&lt;br /&gt;
[[cs:Rukověť správce]]&lt;br /&gt;
[[es:Documentación para Administradores]]&lt;br /&gt;
[[fr:Documentation administrateur]]&lt;br /&gt;
[[nl:Documentatie voor beheerders]]&lt;br /&gt;
[[zh:管理员文档]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administrator_documentation&amp;diff=17735</id>
		<title>Administrator documentation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administrator_documentation&amp;diff=17735"/>
		<updated>2006-11-03T18:16:13Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The purpose of this page is to list useful links by general topics for administrators.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
*[[Installing Moodle]]&lt;br /&gt;
*[[Installing AMP|Installing Apache, MySQL and PHP]]&lt;br /&gt;
* [[Installation Quickstart]]&lt;br /&gt;
*[[Installation FAQ]]&lt;br /&gt;
*[[Upgrading|Upgrading Moodle]]&lt;br /&gt;
*[[Complete install packages]]&lt;br /&gt;
&lt;br /&gt;
==Security and performance==&lt;br /&gt;
&lt;br /&gt;
*[[Security]]&lt;br /&gt;
*[[Performance]]&lt;br /&gt;
*[[Manage roles]] 1.7&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
*[[Variables]]&lt;br /&gt;
*[[Site settings]]&lt;br /&gt;
*[[Themes]]&lt;br /&gt;
*[[Language]]&lt;br /&gt;
*[[Modules (administrator)|Modules]]&lt;br /&gt;
*[[Blocks (administrator)|Blocks]]&lt;br /&gt;
*[[Filters (administrator)|Filters]]&lt;br /&gt;
*[[Backup (administrator)|Backup]]&lt;br /&gt;
*[[Editor settings]]&lt;br /&gt;
*[[Calendar (administrator)|Calendar]]&lt;br /&gt;
*[[Maintenance mode]]&lt;br /&gt;
&lt;br /&gt;
==Users==&lt;br /&gt;
&lt;br /&gt;
*[[Authentication]]&lt;br /&gt;
*[[Edit user accounts]]&lt;br /&gt;
*[[Edit profile|Add a new user]]&lt;br /&gt;
*[[Flat file|Upload users]]&lt;br /&gt;
*[[Enrolment plugins]]&lt;br /&gt;
*[[Courses (administrator)|Enrol students]]&lt;br /&gt;
*[[Courses (administrator)|Assign teachers]]&lt;br /&gt;
*[[Assign creators]]&lt;br /&gt;
*[[Assign admins]]&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
&lt;br /&gt;
*[[Courses (administrator)|Courses]] and [[Course formats|course formats]]&lt;br /&gt;
*[[Logs]]&lt;br /&gt;
*[[Site files]]&lt;br /&gt;
*[[Moodle database|Database]]&lt;br /&gt;
*[[Environment]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Integrations]]&lt;br /&gt;
*[[CVS (administrator)|CVS documentation]]&lt;br /&gt;
*[[Email processing]]&lt;br /&gt;
*[[Search engine optimization]]&lt;br /&gt;
*[[Messaging]]&lt;br /&gt;
*[[Migration]]&lt;br /&gt;
*[[Metacourses]]&lt;br /&gt;
*[[Block layout]]&lt;br /&gt;
[Customizing_Moodle]&lt;br /&gt;
*[[Backup FAQ]]&lt;br /&gt;
*[[Administration FAQ]]&lt;br /&gt;
*[[Administrator do&#039;s and don&#039;ts]]&lt;br /&gt;
*[http://download.moodle.org/docs/using_moodle/ch16_server_admin.pdf Using Moodle Chapter 16: Moodle Administration]&lt;br /&gt;
&lt;br /&gt;
[[Category: Administrator]]&lt;br /&gt;
[[cs:Rukověť správce]]&lt;br /&gt;
[[es:Documentación para Administradores]]&lt;br /&gt;
[[fr:Documentation administrateur]]&lt;br /&gt;
[[nl:Documentatie voor beheerders]]&lt;br /&gt;
[[zh:管理员文档]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Administrator_documentation&amp;diff=17734</id>
		<title>Administrator documentation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Administrator_documentation&amp;diff=17734"/>
		<updated>2006-11-03T18:15:33Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The purpose of this page is to list useful links by general topics for administrators.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
*[[Installing Moodle]]&lt;br /&gt;
*[[Installing AMP|Installing Apache, MySQL and PHP]]&lt;br /&gt;
* [[Installation Quickstart]]&lt;br /&gt;
*[[Installation FAQ]]&lt;br /&gt;
*[[Upgrading|Upgrading Moodle]]&lt;br /&gt;
*[[Complete install packages]]&lt;br /&gt;
&lt;br /&gt;
==Security and performance==&lt;br /&gt;
&lt;br /&gt;
*[[Security]]&lt;br /&gt;
*[[Performance]]&lt;br /&gt;
*[[Manage roles]] 1.7&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
*[[Variables]]&lt;br /&gt;
*[[Site settings]]&lt;br /&gt;
*[[Themes]]&lt;br /&gt;
*[[Language]]&lt;br /&gt;
*[[Modules (administrator)|Modules]]&lt;br /&gt;
*[[Blocks (administrator)|Blocks]]&lt;br /&gt;
*[[Filters (administrator)|Filters]]&lt;br /&gt;
*[[Backup (administrator)|Backup]]&lt;br /&gt;
*[[Editor settings]]&lt;br /&gt;
*[[Calendar (administrator)|Calendar]]&lt;br /&gt;
*[[Maintenance mode]]&lt;br /&gt;
&lt;br /&gt;
==Users==&lt;br /&gt;
&lt;br /&gt;
*[[Authentication]]&lt;br /&gt;
*[[Edit user accounts]]&lt;br /&gt;
*[[Edit profile|Add a new user]]&lt;br /&gt;
*[[Flat file|Upload users]]&lt;br /&gt;
*[[Enrolment plugins]]&lt;br /&gt;
*[[Courses (administrator)|Enrol students]]&lt;br /&gt;
*[[Courses (administrator)|Assign teachers]]&lt;br /&gt;
*[[Assign creators]]&lt;br /&gt;
*[[Assign admins]]&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
&lt;br /&gt;
*[[Courses (administrator)|Courses]] and [[Course formats|course formats]]&lt;br /&gt;
*[[Logs]]&lt;br /&gt;
*[[Site files]]&lt;br /&gt;
*[[Moodle database|Database]]&lt;br /&gt;
*[[Environment]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Integrations]]&lt;br /&gt;
*[[CVS (administrator)|CVS documentation]]&lt;br /&gt;
*[[Email processing]]&lt;br /&gt;
*[[Search engine optimization]]&lt;br /&gt;
*[[Messaging]]&lt;br /&gt;
*[[Migration]]&lt;br /&gt;
*[[Metacourses]]&lt;br /&gt;
*[[Block layout]]&lt;br /&gt;
*[[https://docs.moodle.org/en/Customizing_Moodle]]&lt;br /&gt;
*[[Backup FAQ]]&lt;br /&gt;
*[[Administration FAQ]]&lt;br /&gt;
*[[Administrator do&#039;s and don&#039;ts]]&lt;br /&gt;
*[http://download.moodle.org/docs/using_moodle/ch16_server_admin.pdf Using Moodle Chapter 16: Moodle Administration]&lt;br /&gt;
&lt;br /&gt;
[[Category: Administrator]]&lt;br /&gt;
[[cs:Rukověť správce]]&lt;br /&gt;
[[es:Documentación para Administradores]]&lt;br /&gt;
[[fr:Documentation administrateur]]&lt;br /&gt;
[[nl:Documentatie voor beheerders]]&lt;br /&gt;
[[zh:管理员文档]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Blackboard_migration&amp;diff=13298</id>
		<title>Blackboard migration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Blackboard_migration&amp;diff=13298"/>
		<updated>2006-07-21T20:35:33Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A [http://moodle.org/mod/forum/discuss.php?d=32049 Blackboard content conversion tool] is available. It was designed to migrate Blackboard 6.1 to Moodle 1.4+ - it may be possible to make it work with other versions.&lt;br /&gt;
&lt;br /&gt;
According to Michael Penney in the forum discussion [http://moodle.org/mod/forum/discuss.php?d=1565 Migrating 10000 students from Blackboard to Moodle?] &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&amp;quot;It works pretty well with a couple of caveats:&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;1) It doesn&#039;t import all Blackboard question types: at CSU H, we wrote an essay question type and a &#039;rendered match&#039; question type and a BB pool importer, we&#039;d like to work with SF and others to get our qtype importer into theirs.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;2) SF&#039;s tool is designed to make you think about your course when you import it and redesign it. That is a nice idea, however it can be pretty time consuming when you have hundreds of documents in a course (&amp;lt;rant&amp;gt;Blackboard&#039;s poor content development tools encourage what I call the &#039;datadump&#039; course format, instead of delivering information in an effective elearning tool like Moodle&#039;s lesson, with BB folks tend to post hundreds of office documents and then massive quizzes about them&amp;lt;/rant&amp;gt;).&#039;&#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
We recently migrated about 200 courses from Blackboard 6 to Moodle 1.5+, and I made a [http://instructor.metrotech.org/~mcampbell/Converting%20Blackboard%20to%20Moodle.ppt PowerPoint] for this routine.  I&#039;ve been asked to make a Captivate just on the import routine and will work on that.&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Blackboard_migration&amp;diff=13297</id>
		<title>Blackboard migration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Blackboard_migration&amp;diff=13297"/>
		<updated>2006-07-21T20:34:02Z</updated>

		<summary type="html">&lt;p&gt;Mcampbell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A [http://moodle.org/mod/forum/discuss.php?d=32049 Blackboard content conversion tool] is available. It was designed to migrate Blackboard 6.1 to Moodle 1.4+ - it may be possible to make it work with other versions.&lt;br /&gt;
&lt;br /&gt;
According to Michael Penney in the forum discussion [http://moodle.org/mod/forum/discuss.php?d=1565 Migrating 10000 students from Blackboard to Moodle?] &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&amp;quot;It works pretty well with a couple of caveats:&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;1) It doesn&#039;t import all Blackboard question types: at CSU H, we wrote an essay question type and a &#039;rendered match&#039; question type and a BB pool importer, we&#039;d like to work with SF and others to get our qtype importer into theirs.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;2) SF&#039;s tool is designed to make you think about your course when you import it and redesign it. That is a nice idea, however it can be pretty time consuming when you have hundreds of documents in a course (&amp;lt;rant&amp;gt;Blackboard&#039;s poor content development tools encourage what I call the &#039;datadump&#039; course format, instead of delivering information in an effective elearning tool like Moodle&#039;s lesson, with BB folks tend to post hundreds of office documents and then massive quizzes about them&amp;lt;/rant&amp;gt;).&#039;&#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
We recently migrated about 200 courses from Blackboard 6 to Moodle 1.5+, and I made a [PowerPoint] for this routine.  I&#039;ve been asked to make a Captivate just on the import routine and will work on that.&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Mcampbell</name></author>
	</entry>
</feed>