link problem

Re: link problem

by Md. Roslan Zainol -
Number of replies: 0
first of all thanx for your reply.

For a start let me explain the scenario. I am a teacher in one of the secondary school in malaysia. I am the ICT coordinator of my school computer lab and network. I am planning to use some sort of e-learning system for my school local network, and luckily I found moodle. Before I really get into business of setting up the system in school I tried it on my home pcs. I have 2 pcs and one laptop. 1 is running RedHat 8 workstation while others are running windows XP. They are not using public IP address neither DNS name.Before I have moodle installed, I can access the apache web server test page and a few .php (RH 8) on my other pcs by typing the address (http://xx.x.x.xx or http://localhost or http://localhost/something.php).
The first time I set up moodle I use localhost as the wwwroot but now I change to xx.x.x.xx. The result is still the same.
Below is my config.php and I will attach http.conf for your referrence.

<?php /// Moodle Configuration File



unset($CFG);



$CFG->dbtype = 'mysql';

$CFG->dbhost = 'localhost';

$CFG->dbname = 'moodle';

$CFG->dbuser = 'moodleuser';

$CFG->dbpass = 'moodlepass';

$CFG->dbpersist = false;

$CFG->prefix = 'mdl_';



$CFG->wwwroot = 'http://10.1.1.10/moodle';

$CFG->dirroot = '/var/www/html/moodle';

$CFG->dataroot = '/usr/moodle_data';

$CFG->admin = 'admin';



$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode



require_once("$CFG->dirroot/lib/setup.php");

// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,

// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.

?>