- Backup the Database & Files ~ compulsary ! because if something goes wrong, we can revert to the backup copy
- Log into your site, put it into maintenance mode ~/admin/config/development/maintenance and back up all files.
- Log into cPanel and start the cPanel file manager.
- Go to the root directory, usually /public_html.
- If you made manual modifications to files like .htaccess, composer.json, or robots.txt, copy them somewhere. After you've installed the new Drupal core, you will need to re-apply the changes
- Read the drupal release & see if new release make change to the default.settings.php. If new release have make change to the default.setting.php file then we have to follow this step:
- Copy and rename the original settings.php file ~ etc: setting.php_ORI.(The file contain database information, and any other customizations you may have added)
- Make a copy of the new default.settings.php file, and name the copy settings.php (overwriting your previous settings.php file).
- Delete all Folder & files except Modules, Profile, Sites, Themes, Libraries (never touch this 5 folder !)
- Upload latest drupal version - example: Drupal-8.4.8.tar.gz to drupal folder and extract it.
- Copy or move all files and folders form Core & Vendor and the files in the top-level directory to the root directory (if not sure how to do this ~ watch the video below)
- Delete the extract drupal copy
- Re-apply any manually modifications to files such as .htaccess, composer.json, or robots.txt (refer item no 5)
- Log into your site and run database updates ~/update.php
- Check the Status report ~/admin/reports/status.
- If all OK take the site out of maintenance mode ~ DONE