Updating Drupal 10 Core and Modules
Updating Drupal 10 Core and ModulesCategory
Drupal Version
Most Drupal 10 installations on campus will be hosted on OIT Web Hosting and managed through composer (not Installatron as was used for Drupal 7 and earlier). Updating Drupal 10 under composer is relatively straightforward, but does involve several steps:
- For good measure, open the site in a web browser window, log in, and put the site in maintenance mode. Leave this window open so that you can return to it as needed.
- In a separate browser tab/window, log into the site's Plesk Control Panel through OIT Web Hosting.
- While all OIT Hosting Accounts now have automatic updates enabled, it doesn't hurt to run a full manual backup to capture the most recent changes, just in case something goes wrong while updating.
- Go to the Backup & Restore button in the right-hand sidebar on your site's Plesk control panel
- Select the Backup button and follow the prompts
- With your backup complete, go to the PHP Composer tool in your site's Plesk Control Panel
- Under Package Dependencies you should see an Update button. Select this button.
- You should get a pop-up modal showing the update progress. This may take a little while, so please be patient.
- When the updates are finished, return to your first browser window (the one that is logged into your Drupal site) and select the Drupal icon in the administrative toolbar for your site, then select Run updates to run database schema updates.
- If you have any trouble here, you can try going to the URL path of your site's home page with "/updates.php" added to the end of the URL.
- When the database schema updates are complete, test your site and make sure it still functions as expected.
- Disable maintenance mode to make the site open to the public again.