How to manage software versions on Cloud hosting using CPANEL
This guide will explain how to upgrade installed software versions for PHP/Mysql using cPanel, including how to update the cPanel version.
We would recommend taking backups of any important data before applying any updates/upgrades.
Updating PHP Version
You can update the PHP version installed for Apache on your server using cPanel by following the steps outlined below:
- Log in to your WHM control panel
- Locate the menu header ‘Software’ on the left hand menu and expand the section.
- Select ‘EasyApache 3’ (it will then check the system to ensure it is ready for any changes)
- Select the gear symbol located under the Actions heading for the ‘Default’ profile.
- The next page will show you your current Apache Version – Select Next Step
- Select the version of PHP you wish to update to, then select: Next Step
- If you are updating the PHP version for a specific service such as ‘IonCube Loader’ or ‘Suhosin 0.9.36 for PHP’ then you can enable these in the ‘Short Options List’. If not the default settings will be already ticked and you can select the ‘Save and Build’ option at the bottom of the page.
- At this point you will be made aware of the following:Termination of the build process will result in data loss! The build process is designed to run in the background until complete. Prematurely killing this process will leave your Apache configuration in an unusable state requiring restoration from backups
- The build will then auto start after 5 seconds and begin the upgrade and can take up to 30 minutes to complete depending on your chosen configuration. – You may be prompted to save the config towards the end of the upgrade.
Updating MSQL Version
It is recommended to backup any active databases before updating Mysql versions
- Log in to your WHM control panel.
- Locate the menu header ‘Software’ on the left hand menu and expand the section.
- Select the ‘MYSQL/MariaDB Upgrade’ option
- The options for regrading are then presented and you can select the one you want and hit ‘Next’.
- The system will then do a check to ensure the server is ready to complete the changeover and if it is it will ask you to agree to any potential consequences:
- Select your upgrade type:
Unattended Upgrade: This option automatically rebuilds Apache and PHP with the last saved defaults. It will also automatically update Ruby Gems, and rebuild Apache and PHP.
Partially-Interactive Upgrade: This option automatically updates Ruby Gems, but it will not rebuild Apache and PHP until you choose to do so.
Interactive Upgrade: This option steps you through the upgrade process. This process includes the update of Ruby Gems, the update of MySQL/MariaDB, and the rebuild of Apache and PHP.
- Click to continue – The upgrade will then start and may take up to 30 minutes to complete.
Upgrading your control panel version
Updates are automatic but they can be released in stages or may require forcing through.
If your cPanel update is being affected by the staging process you will see a yellow alert at the top of your control panel:
The last attempt to update cPanel & WHM was blocked.Details:Upgrade to the next LTS is blocked until *Date* in order to distribute upgrades over a five day period. If you wish to upgrade now, you can do so now with the force option.
- Log in to your WHM control panel.
- Locate the menu header ‘cPanel’ on the left hand menu and expand the section.
- Select Upgrade to Latest Version.
- Select the option ‘Click to Upgrade’
- The upgrade will then start and can take up to 30 minutes to complete.