🌐 Plesk Panel Main IP Address Change Guide
In situations such as server migration or IP replacement, you may need to update the main IP address of your Plesk Panel.Although it may seem complicated at first glance, this process is actually quite simple and safe thanks to Plesk’s built-in reconfiguration tool.
In this guide, we’ll go step-by-step through how to change your server’s main IP address smoothly. Let’s begin! 🚀
Step 1: Terminal Access and Configuration File Creation
First, make sure your new IP address is active and configured properly on your server.Then, access your server using an SSH terminal program.
If you’re using Windows, you can connect with PuTTY.
For Linux users, you can connect directly via the terminal.
To change the main IP address in Plesk, we’ll use the
plesk bin reconfigurator command. This command allows us to generate a configuration file that defines how IPs should be updated.
Run the following command to create a configuration file:
Bash:
plesk bin reconfigurator /root/ips
Here,
/root/ips represents the path and filename of your configuration file — you can choose a different directory or name if you wish. Once executed, this command automatically creates the IP configuration file in the specified location.
Step 2: Editing the Configuration File
Next, we need to edit the file you just created.Use a text editor such as
nano to open it from the terminal:
Bash:
nano /root/ips
Inside the file, you’ll see a list of your current IP addresses.
You must carefully replace your old and new IP addresses in the correct locations.
Example configuration:
Bash:
ens192 OLD-IP-ADDRESS 255.255.255.0 -> ens192 NEW-IP-ADDRESS 255.255.255.0
After editing, save and exit the file using the key combination
Ctrl + X, then Y, and finally Enter.Step 3: Applying the IP Change
Now your configuration file is ready.The final step is to apply the changes using the same
reconfigurator command:
Bash:
plesk bin reconfigurator /root/ips
Once executed, Plesk will recognize your new IP address and automatically update all configurations accordingly.
After the process completes, you’ll be able to access your Plesk Panel using the new IP address.