web address for my moodle and registration problem

web address for my moodle and registration problem

by Rajan Sharma -
Number of replies: 8

Hi

I downloaded moodle and started working on my course. I go via localhost to my moodle site. Now my problem is that I don't know web address of my moodle site, where can I get  search for the web address

I also have a problem in registering my moodle site. I am setting same message every time, 'The hub cannot access your website'


Please help

Average of ratings: -
In reply to Rajan Sharma

Re: web address for my moodle

by Steven Swanson -

If you can go to the server where your files are stored. In the moodle folder there is a config.php file that will list the site name. If you changed where you access moodle, then you will need to modify that file.

Average of ratings: Useful (1)
In reply to Steven Swanson

Re: web address for my moodle

by Rajan Sharma -

Hi Sir

I don't know how to read this file. Please see it below

<?php  // Moodle configuration file

unset($CFG);
global $CFG;
$CFG = new stdClass();

$CFG->dbtype    = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = 'root';
$CFG->dbpass    = 'root';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (  'dbpersist' => 0,      'dbport' => '',      'dbsocket' => ''  ,);

$CFG->wwwroot   = 'http://localhost';
$CFG->dataroot  = 'C:\\Moodle\\server\\moodledata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

require_once(dirname(__FILE__) . '/lib/setup.php');

// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!

In reply to Rajan Sharma

Re: web address for my moodle

by Steven Swanson -

$CFG->wwwroot   = 'http://localhost';


I'm not familiar with installations on localhost. You can try to type that in browser and see if that works. (it should according to moodle docs).


I referenced this page:

https://docs.moodle.org/26/en/Localhost



In reply to Steven Swanson

Re: web address for my moodle

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
If your Moodle is installed locally you will not be able to register it because Moodle.net will not be able to access it.
Average of ratings: Useful (1)
In reply to Mary Cooch

Re: web address for my moodle

by ben reynolds -

To get to your localhost version, you type "localhost" in the address bar or 127.0.0.1

In reply to Mary Cooch

Re: web address for my moodle

by Rajan Sharma -

Hi Mary

So what do I do next. Can you kindly brief me. I am stuck and I need to make presentation to team day after.

Thanks

In reply to Rajan Sharma

Re: web address for my moodle

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
If Moodle is on your laptop then presumably you could connect your laptop to a projector as you do your presentation? If this is not possible then you could take some screenshots of what you see on your local host Moodle and present those in a slideshow. Alternatively you can use in real time one of our demonstration sites - see https://moodle.org/demo/ but be aware that they are reset on the hour every hour so you would have to look at the time of your presentation.
In reply to Rajan Sharma

Re: web address for my moodle

by Usman Asar -
Picture of Plugin developers Picture of Testers

Rajan,

In one line if I have to tell you about your requirements, then they are two.

1: You have to have a DOMAIN NAME (e.g: www.moodle.org) registered to show to public that your moodle site is hosted at this address.

2: You have to have a WEB HOSTING PROVIDER, that will host your domain (mentioned above) to make your site live for public.

I could have guided you in using your own laptop as a working website, but then you have to have a domain of your own to do that, besides what I have been seeing from your posts, it does seems like you dont have idea of web hosting so routing your own domain to your laptop is  step further to using a web hosting to host websites.

Like Mary has suggested, use demo moodle site, but you may wont be able to register on moodle.net, and give demo of student self registration and creating courses, as site will reset in an hours time and you can imagine the frown on audience  after all the work done on creating a course for demo to be shown after tea break wink.

You can, however, show logging in process and those things that can be presented within an hour before slate gets clean, rest show them on your laptop.

If, even after all this, you still want to go with your web address for moodle and ability to present before audience that this is my moodle site, then I'd suggest spending some cash getting a domain and a web host, rest assured I'll stay up all night setting up moodle site on your server to present before your targeted audience with pride tomorrow.