ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Port Numbers


  • 2004-10-04 11:21:43

    Port Numbers

    Hi All,

    I have another VLE software installed on my server which uses port 80. I have noticed that ATutor also wants to use port 80 when installing so cannot go forward with the install. Any ideas on how i can change the port number?

    Thanks
    Marc Hints

  • 2004-10-07 11:11:28

    Port Numbers

    To make ATutor use a different port add the following three lines to the include/lib/constants.inc.php file around lines 111


    $_base_href = array_slice($url_parts, 0, count($url_parts) - $dir_deep-1);
    // add these 3 lines:
    if ($_SERVER['SERVER_PORT'] != 80) {
    $_base_href[0] = $_base_href[0] . ':'.$_SERVER['SERVER_PORT'];
    }

    $_base_href = $server_protocol . implode('/', $_base_href).'/';


    this fix will appear in the next 1.4.3 release