Forums | Mahara Community

Support /
Moodle www root resolution


anonymous profile picture
Account deleted
Posts: 2

15 June 2011, 1:35

Hi all,

 

I have Mahara running on IIS 6 (mostly) perfectly except for one small part!

 

When I view my profile, then click "Save Profile" I get "Webpage cannot be found".  I refresh, all good, not good for our potential 20,000 users!

 

Now, I have seen posts about this issue, but there is more!

 

Mahara is in a subdirectory of my webserver (hosting moodle)

http://servername.mycollege.vic.edu.au/mahara where I can move around no worries... When I push the save profile button my Domain changes to: http://servername/mahara

 

I have tried to set the wwwroot in config.php, but this stops my browser rendering any of the graphics!

 

I am trying to find WHERE my config is finding the abbreviated domain name!

 

Any help would be welcome.

 

MD

anonymous profile picture
Account deleted
Posts: 214

15 June 2011, 3:05

Hi Michael,

When you try setting the wwwroot in your config.php, what are you setting it to?  It should be something like:

$cfg->wwwroot = 'http://servername.mycollege.vic.edu.au/mahara/';

It must end in a trailing slash.

Mahara tries to be clever -- if you haven't specified your wwwroot, it tries to work it out based upon various variables that your server makes available. You can find the code that does this in init.php (search for wwwroot). Once it's done so, it stores it in the database in the config table.

The best option, and the most reliable, is to set your wwwroot in your config.php.

Hope that this is of some help,

Andrew

François Marier's profile picture
Posts: 411

15 June 2011, 3:54

Andrew's advice is what I was about to say.

The broken domain name might be coming from what Mahara has guessed and stored in the database:

  SELECT value FROM config WHERE field = 'wwwroot';

Cheers,

Francois

anonymous profile picture
Account deleted
Posts: 2

19 June 2011, 23:47

Sensational guys,  That solves the Root domain issue, however I am still getting the 'page not found' with the URL "http://moodle.mytafe.vic.edu.au/mahara/artefact/internal/" when I go to save the profile changes...  I then refresh and the changes save... I am not sure what file(s) the save changes is calling.

 

I am thinking that there is some code that I need to edit as I am running on IIS (It's taken some working around!)

 

But, you guys are legends!  Hopefully I can contibute back.

4 results