![]() Using composer we can check for outdated modules using show and the -o flag, plus we can stipulate just Drupal packages by passing drupal as the vendor and * to show all Drupal packages like so composer show -o "drupal/*" drush state:set system.maintenance_mode 1 It is assumed your site is off-line, if not go back and check the top of the page put the site offline or if are using Drush you can use the below command. drush updatedb:statusįor more information, you can check … Composer Updates Run update.php by visiting the page logged in or by running the Drush commands, then put your site online and flush the cache. and replace if needed, this will be noted on the release page. cp -R core vendor /var/* /var/htacess, settings.php, robots etc. Now we need to copy the files from the new release into the root of your Drupal site. If you check the release notes you can see what files have been updated and what issues they fixed.Ĭd into the root directory of the Drupal instance you are updating and run the below commands. Gunzip drupal-9.0.7.tar.gz #gunzip may not be needed, try without firstĭelete all the files and directories that come with Drupal core, what we are doing is replacing every file from the new release archive, in most cases most of the files will be the same. Replace the drupal-9.0.7.tar.gz with the correct release. Or copy the link location which looks like this and use wget to download the file and then extract the content first using gunzip and tar -xvf Below is the Drupal releases page and the release page for 9.0.7ĭownload the file and upload it to the directory that your instance is in. ![]() If you need an update check the release page, these are given to you on the Update pages mentioned above. You will need access to the server either using cPanel, an FTP Client file browser, or shell access. Check the post to see up Drush then run the above command. To learn more about Drush I wrote a Drush quick start guide. Drush needs to be set up and the path needs to be set up. It is Drupal Shell, Dru palSh ell, Drush. Or you can use Drush if you are using shell and have installed Drush. You can easily put the site into maintenance mode using the UI of Drupal, visit the Maintenance mode page.Īdministration > Configuration > Development > Maintenance mode Whatever your choice is don't forget this step. You can also use MySQL dump or a UI such phpMyAdmin. See Backup and Migrate Module for more details. Backup databaseīy far the easiest way to Back up your site's database is to use Backup and Migrate, if you have it installed visit the modules page and back up your database. Or use archive in cPanel if you use cPanel. Make a backup tar -cvf my-drupal-site_todays-date-BU.tar my-drupal-site You will need to login into your sites hosting account and be in the directory that your Drupal site that needs updating is in. Once you know your site needs updating you need to prepare it. Update: Displays needed updates and enables one-click UI updates for modules. Status Report: Full site overview gives you a high-level overview of your site, it can be found at the below path.Īvailable updates: Nicely presented page colour-coded for updates needed. If you have your site set up correctly you can have automated emails sent to you when new updates are available aswell.īelow are some pages you should get familiar with to overview your site's status and updates. Visit the Status Report and Updates pages. We can check for updates using the UI fairly easily. ![]() Okay with the housekeeping out of the way we first need to check for updates for your Drupal instance. I will write more about this but Drupal uses other PHP frameworks and libraries and is built on PHP so it has to keep up with the whole PHP landscape. Since all technologies are moving forward it is important to keep moving forward with it otherwise you will need to do a full rebuild in a few years which will in fact cost more. That said don't let that stop you from using Drupal as a CMS as it just gets better with each version and it isn't that difficult to update once you have a system in place.Ī note on ongoing development and why it is needed. Check the bottom of the page for more information on automated updates. Drupal 9 doesn't have automatic update yet for core but it is coming.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |