It sounds like Mahara may not be detecting your wwwroot properly or you may have an incorrect setting in config.php. Check that you have the correct URL specified here (remove the // if necessary):
//$cfg->wwwroot = 'http://myhost.com/mahara/';
Mahara only needs port 80 to be open (unless you are using https which requires 443).