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:
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.
- Connect to the server via SSH or RDP
- Create a backup of the PSA database as instructed here.
-
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'"
-
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'"
Comments
Please sign in to leave a comment.