Articles in this section

How to change the main IP of Plesk?

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Question

  • How to change what Plesk considers the main IP of the server?

Answer

The IP addresses can be changed only manually in the network interface configuration of your Linux or Windows operating system (not via Plesk). Plesk simply uses what you have configured there and cannot manage it. For Plesk to detect any changes to IPs that you make there, it is required to execute the steps below:

via the Plesk GUI

1. Log into Plesk

2. Go to Tools & Settings > IP Addresses

3. Click on the Reread IP button

via CLI commands

For Plesk on Linux
1. Log into the server via SSH
2. Execute the following command:

# plesk bin ipmanage --reread

For Plesk on Windows
1. Log into the server via RDP 
2. Run Command Prompt as the Administrator
3. Execute the following command:

C:\> plesk bin ipmanage.exe --reread

Note: The IP depicted as the main one at Plesk > Home is for informational purposes only. It does not matter which IP is depicted as the main IP when it comes to server operations in Plesk

If someone insists on changing the IP that Plesk has chosen to be the main one at Plesk > Home, the following steps will change the IP that Plesk itself views as the main one within its psa database, however, without changes in network settings, this change will not persist.

  1. Connect to the server via SSH or RDP
  2. Create a backup of the PSA database as instructed here.
  3. Set and existing IP address on the server as the new main one:

    MYSQL_LIN: # plesk db "UPDATE IP_Addresses SET main='true' WHERE ip_address='203.0.113.2'"

  4. Change the attribute of the previous main IP address to false:

    MYSQL_LIN: # plesk db "UPDATE IP_Addresses SET main='false' WHERE ip_address='203.0.113.1'"

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.