Changing the Main Server IP Address on Cyberpanel

When the main IP of Cyberpanel servers is changed, the new main IP needs to be entered in the section below.

/etc/cyberpanel/machineIP

editing is done in the file and the file below;

/etc/pure-ftpd/conf/ForcePassiveIP
nano /etc/cyberpanel/machineIP

and

nano /etc/pure-ftpd/conf/ForcePassiveIP

the 2 files are viewed using the commands. Afterwards, by entering the new main server IP;

It is saved by pressing CTRL + X and then Y, and the server is restarted by running the reboot command in SSH.

Finally, if you wish to perform a hostname change as well to complete the process, the current hostname is viewed with the command below in SSH;

hostname

and to change the current hostname on CentOS and derivative operating systems;

hostname yenihostnameburadaya

afterwards, a reboot is performed. If you wish, you can perform all 3 operations at the same time and finish the process with a single reboot.

Note: The hostname change command for Ubuntu 22.04 LTS is;

sudo hostnamectl set-hostname yenihostnameburaya