How can we upgrade PHP in an Ezeelogin installed server ?
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.
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 which was used to generate the Ezeelogin backup archive.
2. Upgrade the PHP version in the system and install ioncube loader to the corresponding PHP version after PHP upgrade.
For upgrading PHP into 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
Follow the onscreen prompts to complete the upgrade.
Restoring Ezeelogin from backup
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
Now that we have uninstalled, we can go ahead restore the binary backup archive that was created.
You need to downgrade/switch back to previous version of php before restoring the backup.
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.