Installing Moodle on 4.0-Mona: Difference between revisions

m
(New page: <span id="top"></span> {| cellpadding="2" |__TOC__||'''Installing Moodle on 4.0-Mona''' |} '''Introduction''' This step-by-step guide shows how to install Moodle on Uniform Server V4.0-Mo...)
 
Line 347: Line 347:


'''''[[#top | Top]]'''''  
'''''[[#top | Top]]'''''  
== Tip - UniServer on a laptop ==
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 "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'''
<pre>
$CFG->wwwroot  = 'http://localhost/moodle';
</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.
<pre>
$domain = GetHostByName($REMOTE_ADDR);
$CFG->wwwroot  = 'http://'.$domain.'/moodle';
</pre>
'''''[[#top | Top]]'''''
== Summary ==
== Summary ==
Although there are a large number of steps Moodle is easy to install on Uniform Server.
Although there are a large number of steps Moodle is easy to install on Uniform Server.