Forums | Mahara Community
Support
/
URL modification
27 March 2010, 16:50
I hope this hasn't been asked before. I couldn't see a way to search the forum to find out.
I installed mahara (ver 1.2.3) on a debian lenny distro. The install went fine as far as I could tell. First I installed the version from the debian packages to insure I had all of the dependencies then upgraded to mahara 1.2.3 using the download from mahara.org. However, when I access my site (using the apache alias setup, or virtual host) the initial url is correct on the login page (I have to use a alternate port on the url, because my isp blocks port 80) but links on the page loose the port number (except for the 'about' and 'contact us' links).
I'm thinking that there is some sort of url modifcation going on in mahara. I think this because I have several other php/mysql web apps installed and none of these exhibit this behavior.
So, my question is: does anyone know if mahara could be taking the port number out of the url somehow?
One piece of info that may be of help is that the debian installer installs a config file which is sourced by the mahara config.php file. That debian file has the following php line in it:
if (!defined('CRON')) {
$cfg->wwwroot = (isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . '/mahara/';
Commenting out this line does affect the url. But not in a way that fixes my problem.
28 March 2010, 6:33
Hello Gary
What if you edit the config.php file and add the port number to the wwwroot variable ?
// wwwroot - the web-visible path to your Mahara installation
// Normally, this is automatically detected - if it doesn't work for you
// then try specifying it here
$cfg->wwwroot = 'http://myhost.com:8080/';
HTH
-dajan
28 March 2010, 21:55
I was thinking that I had already tried that, and I had. However, I had neglected to put a slash at the end of that url. As it turns out that was what was causing all the problems.
Once I saw your suggestion it all clicked.
Thanks