[Year 12 IT Apps] Moodle Problems

Laurie Savage sav at pvgc.vic.edu.au
Fri Nov 21 12:31:56 EST 2008


Thanks Andrew, I tried your trick and my error log is looking healthy now.

Here is the active part FYI

$PVGCip = $_SERVER ['REMOTE_ADDRESS'];
$PVGCparts = explode('.',$PVGCip);

If ($PVGCparts[0] = 10){
	$CFG->wwwroot = 'http://<local alias>';
}
else{
	$CFG->wwwroot = 'http://moodle.pvgc.vic.edu.au/
}

-----Original Message-----
From: itapps-bounces at edulists.com.au [mailto:itapps-bounces at edulists.com.au]
On Behalf Of WEIR Andrew
Sent: Thursday, 20 November 2008 2:18 PM
To: Year 12 IT Applications Teachers' Mailing List
Subject: RE: [Year 12 IT Apps] Moodle Problems

I can either guess it DNS at the school or the moodle config file.

Had the same issue when I ran a moodle box at home with no DNS server.
Wrote a little if statement in PHP to help it work.

Something along the lines of

If IP = 10.0.**
Then moodle root directory is http://10.0.0.5/ Else
	www.mymoodlebox.com

If need be I may still have the file but I just searched the moodle docs.

 Andrew



Andrew Weir

Information Technology Co-ordinator

 

Thomas Carr College

35 Thomas Carr Drive,

Tarneit, VIC 3029

(P) (03) 8734 2526

(F) (03) 9748 4388

(E) andrew.weir at thomascarr.vic.edu.au

 

IMPORTANT! This email and any attachments may be confidential. If received
in error, please contact us and delete all copies. Thomas Carr College does
not represent or warrant that the attached files are free from computer
viruses or other defects. The attached files are provided, and may only be
used, on the basis that the user assumes all responsibility for any loss,
damage or consequence resulting directly or indirectly from the use of the
attached files, whether caused by the negligence of the sender or not. Any
representations or opinions expressed in this email are those of the
individual sender, and not necessarily those of Thomas Carr College.

Please consider the environment before printing this email 

 



-----Original Message-----
From: itapps-bounces at edulists.com.au
[mailto:itapps-bounces at edulists.com.au] On Behalf Of Laurie Savage
Sent: Thursday, 20 November 2008 11:48 AM
To: 'Year 12 IT Applications Teachers' Mailing List'
Subject: [Year 12 IT Apps] Moodle Problems

Any networking gurus out there?

My Moodle server is returning a lot of "Page not found" errors when accessed
from within our LAN but not when accessed from student homes.
Should I be suspecting faulty switches?

This is a typical message
[client 210.11.184.9] request failed: error reading the headers,
referer:
http://moodle.pvgc.vic.edu.au/<rest of path deleted by me>

Where I think 210.11.184.9 is the border IP.

Laurie Savage
=====================================================================
Markbook::Moodle PVGC 03 9306 2544
=====================================================================



_______________________________________________
http://www.edulists.com.au - FAQ, resources, subscribe, unsubscribe IT
Applications Mailing List kindly supported by
http://www.vcaa.vic.edu.au/vce/studies/infotech/itapplications3-4.html -
Victorian Curriculum and Assessment Authority and http://www.vitta.org.au  -
VITTA Victorian Information Technology Teachers Association Inc

_______________________________________________
http://www.edulists.com.au - FAQ, resources, subscribe, unsubscribe IT
Applications Mailing List kindly supported by
http://www.vcaa.vic.edu.au/vce/studies/infotech/itapplications3-4.html -
Victorian Curriculum and Assessment Authority and http://www.vitta.org.au  -
VITTA Victorian Information Technology Teachers Association Inc




More information about the itapps mailing list