Back to Browse

How to Update Drupal

315 views
Apr 12, 2025
5:39

Learn how to update Drupal core and modules while managing maintenance mode to keep your site secure and functional! This step-by-step tutorial covers Drupal 9, 10, and 7, using Composer for modern versions and manual methods for older ones. Follow along to enable maintenance mode, back up your site, update core and modules, run database updates, clear caches, and bring your site back online. Perfect for Drupal admins aiming to master site maintenance! Start by enabling maintenance mode through the admin interface at /admin/config/development/maintenance by checking "Put site into maintenance mode" and saving, or using Drush with the command: drush sset system.maintenance_mode TRUE && drush cr Next, update Drupal core. For Drupal 9 or 10 with Composer, back up your database. Check for updates with: composer outdated "drupal/*" Update core using: composer update drupal/core-recommended --with-dependencies Run database updates with: drush updatedb && drush cr Verify the version at /admin/reports/status. For Drupal 7, back up database and files, download the latest release from drupal.org, replace core files while keeping the /sites directory, run http://yoursite.com/update.php, and clear caches with: drush cc all To update modules in Drupal 9 or 10, check for outdated modules with: composer outdated "drupal/" Update all modules with: composer update drupal/ --with-dependencies or a specific module like: composer update drupal/pathauto --with-dependencies Run: drush updatedb && drush cr Verify at /admin/reports/updates. For Drupal 7, check updates at /admin/reports/updates or with: drush ups Manually replace module folders in /sites/all/modules and run http://yoursite.com/update.php, or use Drush: drush up pathauto && drush cc all Finally, disable maintenance mode via the admin interface by unchecking "Put site into maintenance mode" at /admin/config/development/maintenance and saving, or with Drush: drush sset system.maintenance_mode FALSE && drush cr Tools used include Composer, Drush, and the Drupal Admin Interface. This applies to Drupal 7, 9, and 10.

Download

0 formats

No download links available.

How to Update Drupal | NatokHD