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.
Step 1: Backup existing jump server installation
Execute the following script on the gateway server to generate a backup of your installation so that you can restore the backup in case the upgrade breaks.
:~# /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.
Note: To restore the Ezeelogin backup archive file, ensure that you are using the same PHP version that was used to create the backup.
Step 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, refer to the following articles:
Step 2(A): How to upgrade PHP to 7.2?
Step 2(B): How to upgrade PHP to 7.4?
Step 2(C): How to upgrade PHP to 8.1?
Step 2(D): Upgrade to php version 8.2 in OpenSUSE 15
Step 3: Install ioncube loader to the corresponding PHP version after the PHP upgrade
Step 4: Download the Ezeelogin package corresponding to the PHP version you have installed from the customer portal
Step 5: Upgrade Ezeelogin with the following command:
:~# sh ezlogin_7.x.x_php71.bin -- -update -skipbackup
Follow the onscreen prompts to complete the upgrade.
2. Restoring Ezeelogin from backup
Step 2(A): 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.
:~# /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.
Note: You need to downgrade/switch back to the previous version of PHP before restoring the backup.
:~# sh /var/ezlogin_backup_v7.0.0_b167_Fri_Mar_02_2012_04_23_22_CST.bin
Step 6(B): If you want to do the restore in one step with your existing settings and without being prompted. Replace the backup filename with your backup file.
:~# sh ezlogin_backup_v7.9.0_b381_Wed_Feb_13_2019_23_26_03_IST.bin-- -skipgeolite -auto -force -ACCEPT_SETTINGS -I_ACCEPT_EULA
Related Articles: