Installation on network (XP)

Installation on network (XP)

by Ray Lawrence -
Number of replies: 2

Groan sad. Having set up Moodle on a webserver and locally using EasyPHP, but now I've got stuck trying to get it to work across a home network. I'm sure I'm missing something simple but can't see it.

Details as follows:
Server machine XP pro, others XP Home.
Can ping each way over network.
Moodle works fine on host machine.
Can get index page from remote machine but does not display flash file on this page when view on remote machine.
Cannot assess any other page on moodle site from remote machine.

I'm sure it must be something to do with the settings in config.php but I've tried every darn permutation I can think of without success. Current (relevant)settings are:

$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com
$CFG->dbname = 'local'; // database name, eg moodle
$CFG->dbuser = 'root'; // your database username
$CFG->dbpass = ''; // your database password

$CFG->wwwroot = 'http://localhost/moodle';
CFG->dirroot = 'c:\program files\easyphp1-7\www\moodle';
$CFG->dataroot = 'c:\program files\easyphp1-7\www\moodledata';

Currently there are no security issues on the network, but for future reference am I correct in saying that I need to create a .htaccess file in the moodle and moodle data directories containing the phrase "deny all"?

Ray

p.s. couldn't find the answer in the forums, will cheerfully accept boot up the nether regions if the answer's already out there.

Thanks in anticipation.
Average of ratings: -
In reply to Ray Lawrence

Re: Installation on network (XP)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
$CFG->wwwroot is wrong. localhost only makes sense on the server. It will force the client machines to look for a server on themselves.

As you probably don't have DNS you should change this to the IP address of your server. You may also get away with using the Netbios name (the server's name you see if looking at the whole network through My Network Places)

So it will be something like:

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

or maybe

$CFG->wwwroot = 'http://MY-SERVER/moodle';
In reply to Howard Miller

Re: Installation on network (XP)

by Ray Lawrence -

Excellent! It works, I tried the server name before but not the IP address. mixed Many thanks.

With regard to the second part of my original post, having remembered that I had the moodledata outside of the EasyPHP www directory before and it worked fine (and does again now, having just put it back) the answer is "No". Also not needed for the Moodle directory under EasyPHP. Now I just need to hide the EasyPHP index.php in the www directory. Getting there slowly.....but what a journey. smile