Open-AudIT
https://www.open-audit.org/phpBB3/

[general] [solved] Using alternative port
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6056
Page 1 of 1

Author:  atlsky [ Sat Apr 06, 2013 5:05 am ]
Post subject:  [general] [solved] Using alternative port

I just started to use OA, and find it is a cool tool to keep track of what is on your network. It runs right out of box (in Windows) in C:\ under port 80. However, the server that I want to use OA already has something running on port 80. Changing Apache to run on 8080 doesn’t work. After digging around, finally I can make it work under port 8080. Unfortunately, I am not a programmer. The change I make was to hard code it to port 8080, which means it could break somewhere that I haven’t noticed yet. Mark could probably already have this fixed in the next version already. Anyway, here you go for those who wants to use OA 9.2 in Windows port 8080.

1) In XAMPP control panel, open Apache’s httpd.conf, and change the following:
    Change “Listen 80” to “Listen 8080”
    Change “ServerName localhost:80” to “ServerName localhost:8080”

2) Open config.php under C:\XAMPP\OAv2\code_igniter\application\config
    Comment out line 26
    # $config['base_url'] .= isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80' ? ( ':'.$_SERVER['SERVER_PORT'] ) : '';

3) Open config.php under C:\xampp\OAv2\code_igniter\system\core
    I am not sure about the logic here so I am going to add a line inside of function __construct() to hard code it to port 8080
    $base_url = 'http://localhost:8080/';

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/