Forums | Mahara Community

Support /
Keeps linking to localhost


anonymous profile picture
Account deleted
Posts: 2

29 April 2010, 10:16

I installed Mahara on WAMP just to play with, and set everything to localhost where you would normally put a domain name. I can access Mahara fine when on the machine its installed, with http://localhost/mihara 

Now i want to use it remotely, so i enter http://10.134.35.129/mahara it loads, but all the graphics are trying to come from http://localhost/mihara instead of http://10.134.35.129/mahara .

 

So i open up config.php in the mahara folder,  and change $cfg->wwwroot = 'http://localhost/mahara/ to $cfg->wwwroot = 'http://10.134.35.129/mahara/

I open up apache's httpd.conf and change

ServerName localhost:80 to ServerName 10.134.35.129:80

Restart apache, and i still have the same issue, it keeps trying to reference localhost as the domain on all graphics and links when loading a page. Its driving me potty now, what have i done wrong/missed?

anonymous profile picture
Account deleted
Posts: 808

29 April 2010, 16:46

Hi David,

You may need to change the wwwroot in the config table of your database too (or just delete the wwwroot row).

anonymous profile picture
Account deleted
Posts: 2

30 April 2010, 2:14

Thanks, that worked perfectly!

3 results