Moodle default setup

Moodle default setup

by Ripa Desai -
Number of replies: 3
Hello,

I am creating test environment for testing purposes through the clonezilla software.

My default setup was in config file was sitename:port address

Now because of my testing environment , I am putting static ip address of my system.

/var/moodledata:moodledata
/var/www:moodle code

In config.php

<?php  /// Moodle Configuration File

unset($CFG);

$CFG->dbtype    = 'mysql';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = 'myname';
$CFG->dbpass    = 'abcdef';
$CFG->dbpersist =  false;
$CFG->prefix    = 'mdl_';

$CFG->wwwroot   = 'http://192.168.1.3';
$CFG->dirroot   = '/var/www';
$CFG->dataroot  = '/var/moodledata';
$CFG->admin     = 'ripas';

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

When I try to connect to the 192.168.1.3 through the Internet I am getting a message unable to connect on my browser. What should I check. I upgraded my ubuntu from14.04 to 16.04.

I checked my config.php file and it seems good. What else I need to check?


Please advise.


Thanks

Average of ratings: -
In reply to Ripa Desai

Re: Moodle default setup

by Matt T -

can you ping the server? open command prompt on windows or terminal on mac/linux client and run

ping 192.168.1.3


tell us if you get replies or timeouts. that will narrow if it is network related or apache related
In reply to Matt T

Re: Moodle default setup

by Ripa Desai -
Nope,it doesn't work





On May 6, 2017 9:05 AM, "Matt T (via Moodle.org)" <noreply@moodle.org>
In reply to Ripa Desai

Re: Moodle default setup

by Matt T -

In that case, it's a problem with your operating systems network configuration and slightly beyond the scope of this forum.

Make sure you have correctly configured the interface in /etc/network/interfaces in terms of static IP and default gateway. run

sudo ifdown eth0

sudo ifup eth0

then run ifconfig to verify

if its still not working screenshot the ifconfig output

presumably as its a default ubuntu install you don't have ufw installed so probably not a firewall issue