How to change IP address for domains/clients/resellers in Plesk for Linux




  • Avatar
    Farid Bestenli

    I already have the new ip address registered in plesk but i can't delete it. So what's the solution?

    Error: Cannot remove the IP address 192.168.x.x because it is used by an active session. Cannot remove the IP address 192.168.x.x because it is the primary IP address of a network interface.

  • Avatar
    Farid Bestenli

    Update: I managed to delete the ip address using the commands:

    # plesk db

    # delete from IP_Addresses where ip_address='192.168.x.x';
  • Avatar
    Ivan Postnikov

    Hello @Farid, thank you for sharing your user experience.

    The recommended way is to, at first, change the interface primary IP.

    Please, check this article for the reference.

  • Avatar
    John Bertin

    I get the following error; 

    sh: 2: Syntax error: newline unexpected

  • Avatar
    Alexandr Bashurov

    @John Bertin

    Please, try running this command instead:

    for i in $(plesk bin subscription -l); do plesk bin subscription -u "$i" -ip <ip_address>; done

Please sign in to leave a comment.

Have more questions? Submit a request