Changing IPs

Discussion in 'General' started by SilkBC, Sep 25, 2023.

  1. SilkBC

    SilkBC Member


    We are migrating our ISPConfig3 setup (control panel server + website server) to another datacenter and need to change their IPs.

    I have been able to change the IP for the control panel server by doing the following:

    • Update /etc/hosts
    • Update /etc/network/interfaces
    • Update /etc/resolv.conf
    • Update the IP for the server in ISPConfig3 under "Server IP Addresses"
    When I did the same thing for the website server, however, the change for the "Server IP Addresses" in ISPConfig3 is not going through. I ran "" on the website server, and this is what it shows:

    Database connection failed PHP Warning: mysqli_real_connect(): (HY000/1045): Access denied for user 'ispcsrv2'@'phrase.domain.local' (using password: YES) in /usr/local/ispconfig/server/lib/classes/ on line 91

    'phrase.domain.local' is the hostname of the website server. Pinging the hostname resolves to its new IP.

    I am not sure where to go from here. Your input is greatly appreciated :-(
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    ahrasis likes this.
  3. SilkBC

    SilkBC Member

    That seems to have done the trick. Thanks!

Share This Page