http://mywebsite.com/my/ - Is not working

http://mywebsite.com/my/ - Is not working

by Ibrahim Halidu -
Number of replies: 8
please am done installing my moodle website and everything, and when i open the website to login as admin then it says http://mywebsite.com/my/
And after that it gives me a message like this on my browser  The page isn’t redirecting properly  Please help me, i need help please.
Average of ratings: -
In reply to Ibrahim Halidu

Re: http://mywebsite.com/my/ - Is not working

by Ibrahim Halidu -

anyone helping out please

In reply to Ibrahim Halidu

Re: http://mywebsite.com/my/ - Is not working

by Usman Asar -
Picture of Plugin developers Picture of Testers

It's more likely your server issue, what address do you have in config.php file?

In reply to Usman Asar

Re: http://mywebsite.com/my/ - Is not working

by Ibrahim Halidu -

What i have in the config.php .. please help me


<?php  // Moodle configuration file

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

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

$CFG->wwwroot   = 'http://propheticschoolofmentorship.com';
$CFG->dataroot  = '/home3/cloudda1/public_html/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!

(Edited by Helen Foster to remove db username and password; please change ASAP - original submission Wednesday, 19 October 2016, 1:18 AM)

In reply to Ibrahim Halidu

Re: http://mywebsite.com/my/ - Is not working

by Usman Asar -
Picture of Plugin developers Picture of Testers

Ibrahim,

from my end, your website is working perfectly, what issues are that you are having?

if you have kept another folder within your sites, then make changes in

$CFG-->wwwroot = 'http://propheticschoolofmentorship.com/mysite';

In reply to Usman Asar

Re: http://mywebsite.com/my/ - Is not working

by Ibrahim Halidu -
when i log in.. it loads and the url comes as www.mywebsite.com/my/ and it says Page not redirecting properly
In reply to Ibrahim Halidu

Re: http://mywebsite.com/my/ - Is not working

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Did you change the url at some point?  In which case, did you run replace.php on your database?

In reply to Emma Richardson

Re: http://mywebsite.com/my/ - Is not working

by Ibrahim Halidu -
No i didn't run it.. How can i run it please?
In reply to Ibrahim Halidu

Re: http://mywebsite.com/my/ - Is not working

by Ibrahim Halidu -
I SOLVED THE PROBLEM, PLEASE ANYONE FACING THE SAME PROBLEM TO SHOULD MAKE THE CHANGES FOR HIS WWWROOT AND DATAROOM AND ADD THE LAST TWO LINES I HAVE ADDED AS THEMEWWW.. TO DIRECT THEME TO THE URL TO MAKE IT WORK WELL.. THANK YOU MOODLE

$CFG->wwwroot   = 'http://my.moodle.site.edu';
$CFG->dirroot   = '/var/www/my.moodle.site.edu/public_html';
$CFG->themewww  = $CFG->wwwroot . '/my_moodle_themes';
$CFG->themedir  = $CFG->dirroot . '/my_moodle_themes';