Plesk

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

Question

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

Answer

Switch all existing domains to a single IP address that exists in the system:

  1. Connect to the server via SSH .

  2. Create Plesk database backup .

  3. Run the following command:

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

    Note: <ip_address> here is the IP address that will be used instead of the current one. This IP must exist in the system.