Installing Moodle on 4.0-Mona: Difference between revisions

m
Reverted edits by Upazixorys (Talk); changed back to last version by Ric
No edit summary
m (Reverted edits by Upazixorys (Talk); changed back to last version by Ric)
 
Line 1: Line 1:
----
<span id="top"></span>
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
{| cellpadding="2"
----
=[http://ecoquvejoz.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
----
=[http://ecoquvejoz.co.cc CLICK HERE]=
----
</div>
&lt;span id=&quot;top&quot;&gt;&lt;/span&gt;
{| cellpadding=&quot;2&quot;
|__TOC__||'''Installing Moodle on 4.0-Mona'''
|__TOC__||'''Installing Moodle on 4.0-Mona'''
|}
|}
Line 20: Line 12:
{|
{|
|-
|-
|valign=&quot;top&quot;|
|valign="top"|
'''''Install Uniform server'''''
'''''Install Uniform server'''''


# '''A)''' Create a new folder named '''moodle_b''' (Can be any name)
# '''A)''' Create a new folder named '''moodle_b''' (Can be any name)
# Extract a new copy of Uniform Server V4.0-Mona to this folder&lt;br&gt;(Double click on file to extract).  
# Extract a new copy of Uniform Server V4.0-Mona to this folder<br>(Double click on file to extract).  


'''''Download Moodle'''''  
'''''Download Moodle'''''  
&lt;ol start=&quot;4&quot;&gt;
<ol start="4">
&lt;li&gt; '''B)''' Create a new folder '''moodle_a''' (Can be any name its only a temporary folder)&lt;/li&gt;
<li> '''B)''' Create a new folder '''moodle_a''' (Can be any name its only a temporary folder)</li>
&lt;li&gt; Download the latest version (moodle-weekly-19.zip) of Moodle from  [http://download.moodle.org/ Moodle download page]&lt;/li&gt;
<li> Download the latest version (moodle-weekly-19.zip) of Moodle from  [http://download.moodle.org/ Moodle download page]</li>
&lt;li&gt; Copy the file dowloaded ('''moodle-weekly-19.zip''') to '''moodle_a'''&lt;/li&gt;
<li> Copy the file dowloaded ('''moodle-weekly-19.zip''') to '''moodle_a'''</li>
&lt;li&gt; Unzip '''moodle-weekly-19.zip''' into this folder.&lt;br&gt;(Right click on file, select extract all, extract to current path.)&lt;/li&gt;
<li> Unzip '''moodle-weekly-19.zip''' into this folder.<br>(Right click on file, select extract all, extract to current path.)</li>
&lt;/ol&gt;
</ol>
'''''Copy files to Uniform Server'''''
'''''Copy files to Uniform Server'''''
&lt;ol start=&quot;8&quot;&gt;
<ol start="8">
&lt;li&gt; '''C)''' Expand the folder '''moodle-weekly-19'''&lt;/li&gt;
<li> '''C)''' Expand the folder '''moodle-weekly-19'''</li>
&lt;li&gt; '''D)''' Copy folder '''moodle''' to Uniform Servers's root folder '''www'''&lt;/li&gt;
<li> '''D)''' Copy folder '''moodle''' to Uniform Servers's root folder '''www'''</li>
&lt;/ol&gt;
</ol>
|
|
[[Image:Moodle_1.gif]]
[[Image:Moodle_1.gif]]
Line 47: Line 39:
{|
{|
|-
|-
|valign=&quot;top&quot;|
|valign="top"|
{|
{|
|-
|-
|valign=&quot;top&quot;|
|valign="top"|
# Start Uniform Server (Double click on '''Server_Start.bat''' in folder UniServer).
# Start Uniform Server (Double click on '''Server_Start.bat''' in folder UniServer).
# From apanel (displayed in your browser when the server starts) click on the '''phpMyAdmin''' link. (left menu under tools) Note you can always return to apanel by typing &lt;nowiki&gt;http://localhost/apanel/&lt;/nowiki&gt; into your browser address bar.
# From apanel (displayed in your browser when the server starts) click on the '''phpMyAdmin''' link. (left menu under tools) Note you can always return to apanel by typing <nowiki>http://localhost/apanel/</nowiki> into your browser address bar.
# '''A)''' We want to create a new database. Enter '''moodle'''
# '''A)''' We want to create a new database. Enter '''moodle'''
# '''B)''' Click on '''Create''' to create the database
# '''B)''' Click on '''Create''' to create the database
|}
|}
|valign=&quot;top&quot;|
|valign="top"|
[[Image:Moodle_2.gif]]
[[Image:Moodle_2.gif]]
|}
|}
Line 64: Line 56:
All that remains is to run the Moodle installer script '''install.php'''. Type the following into your browser address bar.
All that remains is to run the Moodle installer script '''install.php'''. Type the following into your browser address bar.


'''&lt;nowiki&gt;http://localhost/moodle/install.php&lt;/nowiki&gt;'''
'''<nowiki>http://localhost/moodle/install.php</nowiki>'''


Most of the pages display information just click either the next or continue button to proceed to the next page.
Most of the pages display information just click either the next or continue button to proceed to the next page.
Line 80: Line 72:
{|
{|
|-
|-
|&amp;nbsp;&amp;nbsp;&amp;nbsp;||PHP version||&amp;nbsp;||Pass
|&nbsp;&nbsp;&nbsp;||PHP version||&nbsp;||Pass
|-
|-
|&amp;nbsp;||Session Auto Start||&amp;nbsp;||Pass
|&nbsp;||Session Auto Start||&nbsp;||Pass
|-
|-
|&amp;nbsp;||Magic Quotes Run Time||&amp;nbsp;||Pass
|&nbsp;||Magic Quotes Run Time||&nbsp;||Pass
|-
|-
|&amp;nbsp;||Insecure Handling of Globals||&amp;nbsp;||Pass
|&nbsp;||Insecure Handling of Globals||&nbsp;||Pass
|-
|-
|&amp;nbsp;||Safe Mode||&amp;nbsp;||Pass
|&nbsp;||Safe Mode||&nbsp;||Pass
|-
|-
|&amp;nbsp;||File Uploads||&amp;nbsp;||Pass
|&nbsp;||File Uploads||&nbsp;||Pass
|-
|-
|&amp;nbsp;||GD version||&amp;nbsp;||Pass
|&nbsp;||GD version||&nbsp;||Pass
|-
|-
|&amp;nbsp;||Memory Limit||&amp;nbsp;||Pass
|&nbsp;||Memory Limit||&nbsp;||Pass
|}
|}
|-
|-
|
|
3) '''''Please confirm the locations of this Moodle installation'':'''
3) '''''Please confirm the locations of this Moodle installation'':'''
* Web address &lt;nowiki&gt;http://localhost/moodle&lt;/nowiki&gt;
* Web address <nowiki>http://localhost/moodle</nowiki>
* Moodle Directory &lt;nowiki&gt;Z:\www\moodle&lt;/nowiki&gt; Grayed out
* Moodle Directory <nowiki>Z:\www\moodle</nowiki> Grayed out
* Data Directory Z:\/moodledata
* Data Directory Z:\/moodledata
For a default installation of Uniform Server these are correct  click '''Next'''
For a default installation of Uniform Server these are correct  click '''Next'''
Line 108: Line 100:
{|
{|
|-
|-
|&amp;nbsp;&amp;nbsp;&amp;nbsp;||Type:||&amp;nbsp;||'''MySQL'''(mysql)||&amp;nbsp;
|&nbsp;&nbsp;&nbsp;||Type:||&nbsp;||'''MySQL'''(mysql)||&nbsp;
|-
|-
|&amp;nbsp;||Host Server:||&amp;nbsp;||'''localhost'''||&amp;nbsp;
|&nbsp;||Host Server:||&nbsp;||'''localhost'''||&nbsp;
|-
|-
|&amp;nbsp;||User:||&amp;nbsp;|| '''root'''|| -- (Uniform Servers default)
|&nbsp;||User:||&nbsp;|| '''root'''|| -- (Uniform Servers default)
|-
|-
|&amp;nbsp;||Password:||&amp;nbsp;|| '''root'''|| -- (Uniform Server default)
|&nbsp;||Password:||&nbsp;|| '''root'''|| -- (Uniform Server default)
|-
|-
|&amp;nbsp;||Tables prefix:||&amp;nbsp;||''' mdl_'''||&amp;nbsp;
|&nbsp;||Tables prefix:||&nbsp;||''' mdl_'''||&nbsp;
|
|
|}
|}
Line 125: Line 117:
{|
{|
|-
|-
|'''Name'''||&amp;nbsp;||'''Information'''||&amp;nbsp;||'''Report'''||&amp;nbsp;||'''Status'''
|'''Name'''||&nbsp;||'''Information'''||&nbsp;||'''Report'''||&nbsp;||'''Status'''
|-
|-
|unicode||&amp;nbsp;||&amp;nbsp;||&amp;nbsp;||must be installed and enabled||&amp;nbsp;||OK
|unicode||&nbsp;||&nbsp;||&nbsp;||must be installed and enabled||&nbsp;||OK
|-
|-
|database||&amp;nbsp;||mysql||&amp;nbsp;||version 4.1.16 is required and you are running 5.1.30||&amp;nbsp;||OK
|database||&nbsp;||mysql||&nbsp;||version 4.1.16 is required and you are running 5.1.30||&nbsp;||OK
|-
|-
|php||&amp;nbsp;||&amp;nbsp;||&amp;nbsp;||version 4.3.0 is required and you are running 5.2.8||&amp;nbsp;||OK
|php||&nbsp;||&nbsp;||&nbsp;||version 4.3.0 is required and you are running 5.2.8||&nbsp;||OK
|-
|-
|php_extension||&amp;nbsp;||iconv||&amp;nbsp;||should be installed and enabled for best results||&amp;nbsp;||OK
|php_extension||&nbsp;||iconv||&nbsp;||should be installed and enabled for best results||&nbsp;||OK
|-
|-
|php_extension||&amp;nbsp;||mbstring||&amp;nbsp;||should be installed and enabled for best results||&amp;nbsp;||OK
|php_extension||&nbsp;||mbstring||&nbsp;||should be installed and enabled for best results||&nbsp;||OK
|-
|-
|php_extension||&amp;nbsp;||curl||&amp;nbsp;||should be installed and enabled for best results||&amp;nbsp;||OK
|php_extension||&nbsp;||curl||&nbsp;||should be installed and enabled for best results||&nbsp;||OK
|-
|-
|php_extension||&amp;nbsp;||openssl||&amp;nbsp;||should be installed and enabled for best results||&amp;nbsp;||OK
|php_extension||&nbsp;||openssl||&nbsp;||should be installed and enabled for best results||&nbsp;||OK
|-
|-
|php_extension||&amp;nbsp;||tokenizer||&amp;nbsp;||should be installed and enabled for best results||&amp;nbsp;||OK
|php_extension||&nbsp;||tokenizer||&nbsp;||should be installed and enabled for best results||&nbsp;||OK
|-
|-
|php_extension||&amp;nbsp;||xmlrpc||&amp;nbsp;||should be installed and enabled for best results||&amp;nbsp;||OK
|php_extension||&nbsp;||xmlrpc||&nbsp;||should be installed and enabled for best results||&nbsp;||OK
|-
|-
|php_extension||&amp;nbsp;||ctype||&amp;nbsp;||should be installed and enabled for best results||&amp;nbsp;||OK
|php_extension||&nbsp;||ctype||&nbsp;||should be installed and enabled for best results||&nbsp;||OK
|}
|}
|-
|-
Line 224: Line 216:
|Prefered language:||English
|Prefered language:||English
|-
|-
|Leave rest blank||&amp;nbsp;
|Leave rest blank||&nbsp;
|}
|}
Click '''Update profile'''
Click '''Update profile'''
Line 255: Line 247:
== Starting Moodle ==
== Starting Moodle ==
# Double click on '''Server_Start.bat''' located in folder '''G:\Uniform Server'''
# Double click on '''Server_Start.bat''' located in folder '''G:\Uniform Server'''
# In your browser address bar type '''&lt;nowiki&gt;http://localhost/moodle/&lt;/nowiki&gt;'''
# In your browser address bar type '''<nowiki>http://localhost/moodle/</nowiki>'''


'''''Note'':''' You can run apanel at any time by typing &lt;nowiki&gt;http://localhost/apanel&lt;/nowiki&gt; into your browser address bar.
'''''Note'':''' You can run apanel at any time by typing <nowiki>http://localhost/apanel</nowiki> into your browser address bar.


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 273: Line 265:


Its a small file locate the following two lines:
Its a small file locate the following two lines:
&lt;pre&gt;
<pre>
$CFG-&gt;dirroot  = 'Z:\www\moodle';
$CFG->dirroot  = 'Z:\www\moodle';
$CFG-&gt;dataroot  = 'Z:\/moodledata';
$CFG->dataroot  = 'Z:\/moodledata';
?&gt;
?>
&lt;/pre&gt;  
</pre>  
The hard coded paths start with '''Z:''' the solution is to let PHP calculate this drive letter (path) by replacing the above two lines with:
The hard coded paths start with '''Z:''' the solution is to let PHP calculate this drive letter (path) by replacing the above two lines with:
&lt;pre&gt;
<pre>
$root= substr($_SERVER[&quot;DOCUMENT_ROOT&quot;],0,-4);
$root= substr($_SERVER["DOCUMENT_ROOT"],0,-4);
$CFG-&gt;dirroot  = $root.'\www\moodle';
$CFG->dirroot  = $root.'\www\moodle';
$CFG-&gt;dataroot  = $root.'\/moodledata';
$CFG->dataroot  = $root.'\/moodledata';
?&gt;
?>
&lt;/pre&gt;
</pre>
The above change makes Moodle completely portable.
The above change makes Moodle completely portable.


Line 297: Line 289:
For a personal implementation of Moodle you can run cron.php occasionally by typing the following into your browser address bar:
For a personal implementation of Moodle you can run cron.php occasionally by typing the following into your browser address bar:


'''&lt;nowiki&gt;http://localhost/moodle/admin/cron.php&lt;/nowiki&gt;'''
'''<nowiki>http://localhost/moodle/admin/cron.php</nowiki>'''


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 308: Line 300:


UniServer\udrive\www\moodle\admin\'''run_cron.php'''
UniServer\udrive\www\moodle\admin\'''run_cron.php'''
&lt;pre&gt;
<pre>
&lt;? $dummy = file(&quot;http://localhost/moodle/admin/cron.php&quot;); ?&gt;
<? $dummy = file("http://localhost/moodle/admin/cron.php"); ?>
&lt;/pre&gt;
</pre>


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 318: Line 310:


UniServer\'''run_cron.bat'''
UniServer\'''run_cron.bat'''
&lt;pre&gt;
<pre>
:next
:next
udrive\home\admin\program\unidelay.exe 60
udrive\home\admin\program\unidelay.exe 60
Line 324: Line 316:
goto :next
goto :next
exit
exit
&lt;/pre&gt;
</pre>


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 332: Line 324:


UniServer\'''run_cron_hidden.bat'''
UniServer\'''run_cron_hidden.bat'''
&lt;pre&gt;
<pre>
start udrive\home\admin\program\uniserv.exe run_cron.bat
start udrive\home\admin\program\uniserv.exe run_cron.bat
&lt;/pre&gt;
</pre>


With the files in place start the servers and run '''run_cron_hidden.bat'''.   
With the files in place start the servers and run '''run_cron_hidden.bat'''.   
Line 341: Line 333:


'''''Note 2'':''' You can run Cron from '''Server_Start.bat''' add the following line just below line ''':END''' (forth line from bottom of file):
'''''Note 2'':''' You can run Cron from '''Server_Start.bat''' add the following line just below line ''':END''' (forth line from bottom of file):
&lt;pre&gt;
<pre>
start udrive\home\admin\program\uniserv.exe run_cron.bat
start udrive\home\admin\program\uniserv.exe run_cron.bat
&lt;/pre&gt;
</pre>
Hence every time you start the servers using '''Server_Start.bat''' or '''disk_start.vbs''' Cron will run.   
Hence every time you start the servers using '''Server_Start.bat''' or '''disk_start.vbs''' Cron will run.   


Line 358: Line 350:
I lifted the following tip straight from [http://www.teachageek.com/2009/03/uniform-server-revisited.html '''gdunc'''] blog, it looks very useful, reproduced unedited:
I lifted the following tip straight from [http://www.teachageek.com/2009/03/uniform-server-revisited.html '''gdunc'''] blog, it looks very useful, reproduced unedited:


One other thing that might be useful to add here is a small addition to the config.php file for those users who use UniServer on a laptop. Since the '''config.php''' file lists the wwwroot as &quot;localhost&quot; external users are unable to view your moodle site correctly. For that reason, I would recommend the following changes to config.php:
One other thing that might be useful to add here is a small addition to the config.php file for those users who use UniServer on a laptop. Since the '''config.php''' file lists the wwwroot as "localhost" external users are unable to view your moodle site correctly. For that reason, I would recommend the following changes to config.php:


Locate the 'wwwroot' line in '''config.php'''
Locate the 'wwwroot' line in '''config.php'''
&lt;pre&gt;
<pre>
$CFG-&gt;wwwroot  = 'http://localhost/moodle';
$CFG->wwwroot  = 'http://localhost/moodle';
&lt;/pre&gt;
</pre>
Replace the above line with the following two lines, to let php figure out what your current IP address is and change it whenever your IP address changes. This can be very useful when moving from event to event.
Replace the above line with the following two lines, to let php figure out what your current IP address is and change it whenever your IP address changes. This can be very useful when moving from event to event.
&lt;pre&gt;
<pre>
$domain = GetHostByName($REMOTE_ADDR);
$domain = GetHostByName($REMOTE_ADDR);
$CFG-&gt;wwwroot  = 'http://'.$domain.'/moodle';
$CFG->wwwroot  = 'http://'.$domain.'/moodle';
&lt;/pre&gt;
</pre>


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''