12/31/2023 0 Comments Sudo apt upgrade ubuntu(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.2 sp-php7.3 sp-php7.4 sp-php8.0 sp-php8.1 sp-php8.2 sp-php8.3Ī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 20.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 focal 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 focal 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 18.04 to Ubuntu 20.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.2, do not upgrade Ubuntu until the app's code Make sure no apps on the server are using a PHP version below PHP 7.2.įor each app, go to the app's "Settings" page in ServerPilot and verifyįor any app using a PHP version below PHP 7.2, change the app to use PHP 7.2Īnd then verify the app still works correctly. PHP 7.2 or any higher PHP version before proceeding with the upgrade. If any apps are using PHP versions below PHP 7.2, you must switch them to using PHP versions below PHP 7.2 are not available on Ubuntu 20.04. Make sure all apps are using PHP 7.2 or greater If there is output from the command, remove NO_AUTO_CREATE_USERįrom your sql_mode setting before you upgrade Ubuntu. To check your MySQL configuration, run the following command as root: sudo grep -R NO_AUTO_CREATE_USER /etc/mysql/ Most notably, the sql_mode value NO_AUTO_CREATE_USER is no longer supported. Some configuration options that were valid in MySQL 5.7 are no longer valid in MySQL 8.0. Once all packages have been updated, reboot your server by running this command: sudo reboot Check MySQL 8.0 configuration compatibility 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 |