PDA

View Full Version : Problem with Dyndns and E-Learning platform on lighttp


easylearn
7th June 2009, 22:11
Hello to all,
as on title I have a problem with DynDNS and the e-learning platform Moodle.
In particular, it happens that when I go to http://easylearn.homelinux.com/easylearn from a pc that is not in the same network the server can reach the portal page of the LMS with display problems also when I start the login procedure by clicking the link url in the browser refers to localhost (http://localhost/easylearn/ ....).
What is due?

Regards

falko
8th June 2009, 15:51
Please make sure you're using the correct hostname in the Moodle configuration.

easylearn
8th June 2009, 22:44
Hi,
is it on the config.php in the moodle main folder?

Many thanks

Bye

easylearn
9th June 2009, 00:58
Hi,
I edited the config.php located in the main folder, following the file:

<?php /// Moodle Configuration File



unset($CFG);



$CFG->dbtype = 'mysql';

$CFG->dbhost = 'localhost';

$CFG->dbname = 'easylearn';

$CFG->dbuser = 'xxxxxx';

$CFG->dbpass = 'xxxxx';

$CFG->dbpersist = false;

$CFG->prefix = 'mdl_';



$CFG->wwwroot = 'http://easylearn.homelinux.com/easylearn';

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

$CFG->dataroot = '/var/moodledata';

$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.

?>

I edited wwwroot and
now outside the network it says 403 forbiden and inside the lan I have display problems.

Do I need to install a dns server in my server?

Bye

easylearn
9th June 2009, 01:04
I sow $CFG->dirroot = '/var/www/moodle'; in the config above,
I changed It to $CFG->dirroot = '/var/www/easylearn'; and It is the same.

Bye

easylearn
11th June 2009, 18:01
Hi everybody,
it could be a problem of my modem settings in particular the NAT?

Bye

falko
12th June 2009, 17:56
I've never worked with Moodle so I can't tell exactly what needs to be changed.

Your router should forward port 80 to your web server.

easylearn
12th June 2009, 18:23
I've never worked with Moodle so I can't tell exactly what needs to be changed.

Your router should forward port 80 to your web server.

I did infact I see the page but with display problems, it seems to me it can't find just the css.

Thanks, I let yuo know if I find something.

easylearn
14th June 2009, 21:09
Hi falko,
I solved the problem:

I edited the file /etc/hostname and changed the name of the system, then I run:

/etc/init.d/hostname.sh start


Bye