If you needed to restore your server and used one of those older snapshots, Take a server snapshotĪs the final step, take a snapshot of your server now that the upgrade is complete.Īll of your existing snapshots are for an older version of Ubuntu. If you've previously installed any PECL extensions on your server, Regardless of which PHP version you chose as the CLI default, you can access any PHP-CLI version Select the version of PHP you'd like to be the default for the " php" command. Update the version of PHP used for the PHP-CLI (the " php" command) by running theįollowing command as root: sudo dpkg-reconfigure sp-php-cli Update the PHP version used for the " php" command (that is, when editing an app's PHP version on the app's "Settings" page),Įnable the missing PHP versions for you. The following command sudo apt-get -y install sp-php7.4 sp-php8.0 sp-php8.1 sp-php8.2Īfter you install these PHP packages, if you do not see any of these PHP versionsĪvailable in ServerPilot when choosing the PHP version for apps on this server Install the versions of PHP that are supported on Ubuntu 22.04 by running Then run the following command to install any package updates that are now available: sudo apt-get -y dist-upgrade Reinstall PHP packages Next, update the package manager's list of available packages by running this command: sudo apt-get update You should see the following output from the above command: deb jammy main You can verify the file is correct by running the following command: sudo cat /etc/apt//serverpilot.list Run the following command to update the package manager's configurationįor ServerPilot's repositories: sudo bash -c "echo 'deb jammy main' > /etc/apt//serverpilot.list" Once the upgrade is complete, reboot your server by running the following command: sudo reboot Update the package manager configuration Once your server has been restored from a working snapshot, pleaseĬontact support and provide us the details Restore your server to the snapshot you made before you began the upgrade. If you encounter problems or the upgrade fails, take screenshots of any errors and then SSH in to your server as root and run the following command: sudo do-release-upgrade -f DistUpgradeViewNonInteractive To upgrade your server from Ubuntu 20.04 to Ubuntu 22.04, Take anywhere from ten minutes to two hours. Uninstall all PHP packages by running the following command as root: sudo apt-get -y remove 'sp-php*' Performing the Upgradeĭepending on your server's network connection and hardware, the upgrade may If the app is not working on PHP 7.4, do not upgrade Ubuntu until the app's code Make sure no apps on the server are using a PHP version below PHP 7.4.įor each app, go to the app's "Settings" page in ServerPilot and verifyįor any app using a PHP version below PHP 7.4, change the app to use PHP 7.4Īnd then verify the app still works correctly. PHP 7.4 or any higher PHP version before proceeding with the upgrade. If any apps are using PHP versions below PHP 7.4, you must switch them to using PHP versions below PHP 7.4 are not available on Ubuntu 22.04. Once all packages have been updated, reboot your server by running this command: sudo reboot Make sure all apps are using PHP 7.4 or greater If the above command fails or prints an error message, do not proceed with upgrading. sudo apt-get update & sudo apt-get -y dist-upgrade & sudo dpkg -configure -a Run the following command to make sure your server is ready to be Once you've taken a snapshot of your server, Do not proceed with the upgrade until you've taken a snapshot of your server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |