Install wizard redirects to iana.org/domains/example from license agreement section

Install wizard redirects to iana.org/domains/example from license agreement section

by Michael O'Brien -
Number of replies: 6

I downloaded the tar file for moodle 2.0.2+ today build 20110412 but after supplying the database account details I get to the copyright notice and no matter if I click Continue I get redirected to http://www.iana.org/domains/example/

if I click cancel I get redirected to

http://docs.moodle.org/en/License

I've checked the database and no tables, views or data seems to have been added to it.  

How do I accept the lience and continue the install?

Average of ratings: -
In reply to Michael O'Brien

Re: Install wizard redirects to iana.org/domains/example from license agreement section

by Michael O'Brien -

If I view the page in IE and mouse over the Continue button it gives the url example.com/moodle/admin/index.php not my actual website url and the source code has the action=http://example.com/moodle/admin/index.php which looks to me like its trying to submit my acceptance to the above URL instead of my moodle site

In reply to Michael O'Brien

Re: Install wizard redirects to iana.org/domains/example from license agreement section

by Michael O'Brien -

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

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

$CFG->wwwroot   = 'httpmyURL';
$CFG->dataroot  = '/folderPath/MoodleData';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

$CFG->passwordsaltmain = 'changed';

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

In reply to Michael O'Brien

Re: Install wizard redirects to iana.org/domains/example from license agreement section

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

you would need www='http://myURL'

 

However myURl does not look like a real domain, so you would probably need http://localhost/moodle

if you are testing locally or whatever your actual domain is, i.e.

 

http://www.mydomain.org

Where mydomain is your domain (not my domain because I am using that if you get my drift)

 

 

In reply to Marcus Green

Re: Install wizard redirects to iana.org/domains/example from license agreement section

by Michael O'Brien -

Sorry should have explained. I replaced some of the values before posting. Where I use the value 'http://MyURL' the config file in moodle has the correct value for my actual domain.

The config file doesn't seem to be stopping moodle hardcoding exampl.com/moodle into the source code of the page as this is the HTML source on admin/index.php and nowhere in the code does it send the input "agreelicense" with a value of 1 to my website it actual seems to send it to examp.com/moodle/admin/index.php

 

<div class="region-content">
                            <span id="maincontent"></span><h2 class="main"><a href="http://moodle.org">Moodle</a> - Modular Object-Oriented Dynamic Learning Environment</h2><h2 class="main">Copyright notice</h2><div class="box copyrightnotice"><div class="text_to_html">Copyright (C) 1999 onwards Martin Dougiamas (http://moodle.com)<br />
<br />
This program is free software: you can redistribute it and/or modify<br />
it under the terms of the GNU General Public License as published by<br />
the Free Software Foundation, either version 3 of the License, or<br />
(at your option) any later version.<br />
<br />
This program is distributed in the hope that it will be useful,<br />
but WITHOUT ANY WARRANTY; without even the implied warranty of<br />
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br />
<br />
See the Moodle License information page for full details:<br />
http://docs.moodle.org/en/License</div></div><br /><div id="notice" class="box generalbox"><p>Have you read these conditions and understood them?</p><div class="buttons"><div class="singlebutton"><form method="get" action="http://example.com/moodle/admin/index.php"><div><input type="submit" value="Continue" /><input type="hidden" name="lang" value="en" /><input type="hidden" name="agreelicense" value="1" /></div></form></div><div class="singlebutton"><form method="get" action="http://docs.moodle.org/en/License"><div><input type="submit" value="Cancel" /></div></form></div></div></div>                        </div>
                    </div>
In reply to Michael O'Brien

Re: Install wizard redirects to iana.org/domains/example from license agreement section

by Michael O'Brien -

Not sure if it solves the problem but downloaded the later build and configured it correctly. I suspect it could have been a problem of me copying and pasting the values for config.php into the top of the default 1 that came with moodle but not removing the 2nd time the variables were assigned further down the config.php file thus re-assigning  $CFG->wwwroot   = 'http://example.com';

and undoing my earlier assignement

In reply to Michael O'Brien

Re: Install wizard redirects to iana.org/domains/example from license agreement section

by Vivek SM -

Is this problem is resolved, I have the same issue with the PHP 5.3.19 with IIS6 and Sql Server 2005 and  the moodle version is 2.3.3