Forums | Mahara Community
Support
/
Email sent to wrong hostname
11 June 2009, 6:16
Dear all
I have installed mahara on a Centos 5.2 server. On the config.php file I manually set the WWW Root to the FQDN of the Linux server
Under site admin Networking Mahara displays the WWW Root with only the hostname of the machine.
It does not use the FQDN, Internally this is no problem but I would want users from outside to access and enrol to Mahara. This means that the link sent to a self enrolled user only has the hostname ie http://hostname/mahara.
The same server is running moodle which works quite well from outside including sending mail.
How to make mahara use the FQDN name of the machine? ie send out http://FQDN/mahara
Please assist on this.
NB
When accessing mahara thehttp://hostname/mahara goes to DocumentRoot directory instead of to mahara/htdocs. I have been forced to use the following code below so that it does not display the folders directoy. This is a file index.html that I dropped in the /mahara/ directory.
<HTML>
<HEAD>
<META HTTP-EQUIV="refresh" CONTENT="0;URL=/mahara/htdocs">
</HEAD>
T
11 June 2009, 7:46
Dear All
I finally figured out why the WWW Root was not being set as the FQDN.
I ran a search on phpmyadmin which correctly pointed out the hostname entry in the config table.
Changed this and now my WWW Root is FQDN name of the server.
A post by Account deleted was deleted
11 June 2009, 21:10
Hi - when Mahara is installed, it grabs the wwwroot it was accessed with while being installed and stores that. So you have to access it from the hostname that you want the site to be run at.
Changing it later in the database is fine. It's just if you change the value in the config file after installing, it doesn't really have any effect, which is a bit confusing and is something we should look at fixing.