Change port 8080

Discussion in 'Installation/Configuration' started by justinsane, Jun 3, 2009.

  1. justinsane

    justinsane New Member

    How do I change the port that the control panel listens on?
    Currently it is 8080 but I want to change it to a different port.
    Google failed to find out how to do this.

  2. kkng

    kkng New Member

    see whether this help

    this two files:
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Or you could have just entered the port as you installed ispconfig.
  4. justinsane

    justinsane New Member

    Thanks kkng and till but I'm still unable to change the port.

    I now have two instances of ispconfig3 on different debian lenny boxes.

    The first one was set up with the default port 8080 selected during installation.
    The second one was set up with port 50 selected during installation.

    Both were set up using the procedure at
    and both are working properly as far as I can tell.

    The control panel works fine at on the second box.

    Now I want to change the first box from 8080 to something else, say 51.
    I don't want to reinstall it because it's in use for web services.
    I'm the only person who uses the control panel.

    I searched the contents of these files on both boxes

    It wouldn't surprise me if I misunderstood something but I cannot find 8080 or 50 in either file on either box.

  5. falko

    falko Super Moderator ISPConfig Developer

    The configuration files are in the /etc/apache2/sites-available directory.
  6. justinsane

    justinsane New Member

    Thanks for your help falko

    In case it's of use to others, here's what I did to change the port to 51.

    1. Add the new port to System Firewall in the control panel. Don't forget to Save.
    2. Check with nmap that the new port is available (closed).
    3. Edit three lines in /etc/apache2/sites-available/ispconfig.vhost

    Listen 51
    NameVirtualHost *:51

    <VirtualHost _default_:51>

    4. restart apache2

    /etc/init.d/apache2 restart

    5. Find the control panel at the new port.

    After completing the procedure up to here I got a bit worried that in Monitor it showed up in red that the web server was offline. However this problem disappeared after a few minutes and everything is now working fine. Maybe the control panel takes time to update after the apache2 restart.

    6. Remove the old port from System Firewall in the control panel. Don't forget to Save.

    At this stage I was a bit concerned to see a popup message "Sorry there was an Error"
    Closing and restarting the browser access to the new port cured that.

    7. Check with nmap that only needed ports are open.

    8. Check that the services are working correctly at the new ports.

    Comments on this procedure are welcome, particularly if I'm likely to find anything else that was broken as a result of doing it.


Share This Page