kb: how-to
Plesk for Linux
Applicable to:
- Plesk for Linux
Question
How to change the main IP of Plesk for Linux?
Answer
The main IP addresses can be changed only manually in network configuration (not via Plesk). For Plesk to detect changes, it is required to:
2. Go to Tools & Settings > IP Addresses
3. Click on the Reread IP button
Note: The IP shown at Plesk > Home does not impact server operations, it is for informational purposes only.
The following steps will change the main IP in the database, however, without changes in network settings it will not persist.
- Connect to the server via SSH.
- 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
0 comments
Please sign in to leave a comment.