# Update & Upgrade
Updates and upgrades are one of the maintenance tasks for sytem. Programs that are not upgraded for a long time, like buildings that are not maintained for a long time, will accelerate aging and gradually lose functionality until they are unavailable.
You should know the differences between the terms Update and Upgrade(Extended reading (opens new window))
- Operating system patching is Update, Ubuntu16.04 to Ubuntu18.04 is Upgrade
- MySQL5.6.25 to MySQL5.6.30 is Update, MySQL5.6 to MySQL5.7 is Upgrade
For WordPress maintenance, focus on the following two Update & Upgrade jobs
- Sytem update(Operating System and Running Environment)
- WordPress upgrade
# System Update
Run an update command to complete the system update:
#For Centos&Redhat
yum update -y
#For Ubuntu&Debian
apt update && apt upgrade -y
This deployment package is preconfigured with a scheduled task for automatic updates. If you want to remove the automatic update, please delete the corresponding Cron
# WordPress Upgrade
# Overview
WordPress Upgrade includes: WordPress core upgrade, Plugin upgrade, Theme upgrade. You can upgrade them by the dashboard of WordPress. Following is the reminder links for WordPress Upgrade
WordPress core, Plugin, Theme are developed by different organization, so their may have the incompatible problem after any upgrade like below
- The website cannot be opened, showing 500 program errors
- Website structure has become confusing
- The topic part feature is not available
The above incompatibility is normal, and the best solution is to adapt the theme and plugin version to the WordPress kernel version.
# Worpress Core upgrade
# One-click upgrade
When new version for Wordpress Core,you can see the upgrade reminder link, click it to start updates
# Manual upgrade
Sometimes, you can't upgrade WordPress by On-Click for the reason of networ, manual upgrade for you
- Download (opens new window) a new WordPress version and unzip it
- Log in to Cloud Server and go to the WordPress root directory,
- Delete the
wp-admin
andwp-includes
- Upload local WordPress to Cloud Server, cover all files if have the same file name
# Plugins upgrade
Please update plugin online if you need,e.x
# Theme upgrade
Most of the time,you may using the business theme which don't provider online update,below is the suggest steps
- Using SFTP to delete the theme from wp-contents folder
- Log in WordPress, go to Appearance->Theme->Add New, upload the theme online
- Enable the theme when complete the installation
← Backup & Restore More →