2.13.1.2.8. Updating WordPress engine files
Warning!
Before updating, be sure to create backup copies of the site and its database.Through the site admin panel
The easiest way to update WordPress is through Adminpanel the site itself. When a new version is available, a notification is displayed at the top of the admin panel:
- Openup Adminpanel site.
- Wait for the operation to complete. During the update, the site will automatically be put into maintenance mode. During the update process, a new version of WordPress will be downloaded and installed, and installed plugins will be disabled and enabled.
- Update installed plugins, themes and translations.
- Check the site is working.
Using WP-CLI
Updating with the official WP-CLI console utility can come in handy if WordPress files are damaged or infected.
- Install WP-CLI utility.
- Connect to hosting via SSH.
- Run kernel updates by running the command:
wp core download --skip-content --force --path=/home/title_account/example.com/www/
- Instead
wp
specify the alias created during the installation in step 5, or the path to the installed filewp-cli.phar
. - Instead
title_account
substitute title hosting account in which the actions are performed. - Instead
example.com/www
specify the path to the files of the required site. - Key
skip-content
indicates that the download of standard themes and plugins is skipped. If you also need to install them, remove it from the command.
- Wait for the message about successful loading to appear:
Success: WordPress downloaded.
- Check the site is working.