Skip to Content

How can we upgrade PHP in an Ezeelogin installed server ?

Guide to backup and upgrade PHP on a jump server.


Overview: This article describes the process of backup and upgrade Ezeelogin on a jump server, including creating executable backups, upgrading PHP versions, and seamlessly executing the upgrade process.


1. Backup existing jump server installation  

Execute the following script on your server to generate a backup of your installation so that you can restore the backup in case the upgrade breaks.

root@gateway:~$/usr/local/sbin/backup_ezlogin.php

This would create an executable archive of your Ezeelogin installation in /var/ezlogin_backup_v6.2.0_b167_Fri_Mar_02_2012_04_23_22_CST.bin.

Execute the backup binary file to restore the installation if something goes wrong.

To restore the Ezeelogin backup archive file, you need to be on the same version of PHP that was used to generate the Ezeelogin backup archive.

2.  Upgrade the PHP version in the system and install the Ioncube loader to the corresponding PHP version after the PHP upgrade.

For upgrading PHP to 7.2 and 7.4, can refer to the following:

3. Download the Ezeelogin package corresponding to the PHP version you have installed from the customer portal 

    Upgrade Ezeelogin with the following command: 

root@gateway:~$ sh ezlogin_7.x.x_php71.bin -- -update -skipbackup

   Follow the onscreen prompts to complete the upgrade.


Restoring Ezeelogin from backup

4. If something is broken after the upgrade, no worries. We will restore the backup from the archive that was created. You would first need to uninstall the current installation on the gateway. Run the following script to uninstall.

root@gateway:~$ /usr/local/sbin/uninstall_ezlogin.php

Now that we have uninstalled it, we can go ahead and restore the binary backup archive that was created. 

 You need to downgrade/switch back to the previous version of PHP before restoring the backup.

root@jumperver :~# sh /var/ezlogin_backup_v7.0.0_b167_Fri_Mar_02_2012_04_23_22_CST.bin

  • If you want to do the restore in one step with your existing settings and without being prompted.

sh ezlogin_backup_v7.9.0_b381_Wed_Feb_13_2019_23_26_03_IST.bin-- -skipgeolite -auto -force -ACCEPT_SETTINGS -I_ACCEPT_EULA

 Replace the backup filename with your backup file.


Related Articles:

The backup crashed without error.

Create a complete backup.

Extract the Ezeelogin backup file.