PDA

View Full Version : Changing port 81 to port 82


Jcorrea920
3rd November 2006, 13:45
I have migrated two ISPConfig websites to another server behind an IPCOP firewall. As you already know IPCOP does not play nice with ISPCONFIG port 81. So naturally I wanted to change my ISPCONFIG admin port to 82 as some of the users have suggested. Although my ISPCONFIG only works on port 81.
I have changed the following from 81 to 82, and now I have no access to admin pages unless I change back to 81. Currently running Fedora Core 6, ISPConfig 2.2.7, MySql 5.0.1, Php 5.1.0, Apache 2.2.5.


/root/ispconfig/httpd/conf/httpd.conf:

Port 82

<IfDefine SSL>
Listen 82
</IfDefine>

<VirtualHost _default_:82>

/home/admispconfig/ispconfig/lib/config.inc.php :

$go_info["server"]["server_url"] = "https://ccs06.correaconsulting.com:82";


What am I missing?
I greatly appreciate any help, and I thank you in advance.

till
3rd November 2006, 18:57
Have you restarted the ISPConfig server script:

/etc/init.d/ispconfig_server restart

What is the result of:

grep 81 /root/ispconfig/httpd/conf/httpd.conf

and the output of:

netstat -tap

Jcorrea920
3rd November 2006, 22:31
Okay my ISPCONFIG Control Panel added port TCP 82 to the firewall but not to the bastille-firewall.cfg file. I had to do that mannually.


vim /etc/Bastille/bastille-firewall.cfg:

add 82 to list

TCP_PUBLIC_SERVICES="21 22 25 53 80 81 82 110 443 10000"

/etc/init.d/bastille-firewall restart

what's wrong with my Control Panel, and how can I fix it?

Suggestions are greatly appreciated. Thanks in advance for all the help.

falko
4th November 2006, 17:29
You must modify the function make_firewall() in /root/ispconfig/scripts/lib/config.lib.php.