{"id":4956,"date":"2021-04-12T13:27:50","date_gmt":"2021-04-12T13:27:50","guid":{"rendered":"https:\/\/www.wpservices.com\/updating-wordpress-manually-or-automatically\/"},"modified":"2022-05-31T20:52:30","modified_gmt":"2022-05-31T20:52:30","slug":"updating-wordpress-manually-or-automatically","status":"publish","type":"post","link":"https:\/\/www.wpservices.com\/updating-wordpress-manually-or-automatically\/","title":{"rendered":"Updating WordPress Manually or Automatically","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"
If you’re looking for tips on how to upgrade WordPress, then you are on the right track. The process of updating WordPress<\/a> core, themes or plugins should not seem complicated.<\/p>\n And in this article, we will show you how to safely upgrade your WordPress site.<\/p>\n You may wonder why update WordPress if you already have the features you need? We will answer this and some other questions.<\/p>\n Do I need to update WordPress? Definitely – yes, and there can be no question.<\/p>\n Are you surprised why you should update your WordPress site if you already have all the functionality you need?<\/p>\n Well, a WordPress update offers unique benefits like:<\/p>\n Before you click the refresh button or make any changes to your WordPress site, it\u2019s important to prepare in advance for any development.<\/p>\n Errors sometimes occur and if you do not have a retreat plan, you may encounter a corrupted site and the problem of reconstructing it.<\/p>\n For starters, we recommend making it a habit to create a full WordPress backup<\/a>.<\/p>\n The second important point, WordPress recommends disabling all plugins before performing manual WordPress updates.<\/p>\n Usually, a conflict of site updates and plugins does not create a lot of problems if it arises, but in some cases, it can lead to the inability to use the site.<\/p>\n Problems can arise if changes in WordPress conflict with existing plugins.<\/p>\n After the update, do not forget to turn on your plugins again.<\/p>\n With ready-made backups and no problems with plugins, let’s move on to the WordPress update process.<\/p>\n Let’s start with the core of WordPress and then move on to themes and plugins.<\/p>\n In this section, we will look at how to upgrade WordPress:<\/p>\n The easiest way to update WordPress is the admin console, you just need to find a place where to click on the button.<\/p>\n If WordPress core updates are available, a message will be displayed in the admin console at the very top of the page.<\/p>\n <\/p>\n Click on the link Please update now<\/strong> to start the update process.<\/p>\n WordPress will put your site into maintenance mode until the update is complete.<\/p>\n The process involves disabling and then enabling your plugins, downloading and installing WordPress among other things.<\/p>\n After a successful minor update, WordPress redirects you to the Updates<\/strong> page, where you can update your themes and plugins.<\/p>\n <\/p>\n If this was a major (major) WordPress update, you will be notified that you have upgraded from version 4.9.13 to 5.3.2 and upon successful update, WordPress will redirect you to the welcome page:<\/p>\n <\/p>\n In the image above you can see how many security updates have passed and how many bugs have been fixed in the new version.<\/p>\n Your WordPress platform is now updated.\u00a0You can continue and proceed to update the themes and plugins.<\/p>\n Moving on, let’s now learn how to manually update WordPress via FTP.<\/p>\n Using FTP programs such as\u00a0\u00a0FileZilla\u00a0will help a lot if you cannot update your WordPress through the admin console for any reason.<\/p>\n Updating WordPress manually is not as difficult as many people think. Yes, you have to go a few steps, but they are quite simple.<\/p>\n Note:<\/strong> For this section you can use FTP connection programs, for example, FileZilla or use File Manager . All you need to do is go to your WordPress directory.<\/p><\/blockquote>\n (In this guide, we use FileZilla.)<\/p>\n To use the FTP program, you need to fill in the details for connecting: FTP username (username), password (password), host\/hostname (hostname) and port (port). If you use hosting from Hostinger, you can find all this data in the Control Panel -> FTP Accounts<\/strong> section.<\/p>\n <\/p>\n Once we\u2019ve obtained the access data, let’s move on to manually updating WordPress.<\/p>\n Perform preliminary preparation, that is, make a backup of the site and disable plugins<\/strong>.<\/p>\n <\/p>\n First, go to WordPress.org<\/a> and download the latest version of WordPress by clicking the blue Download button.<\/p>\n Next, unzip the WordPress archive on your computer using WinRar<\/a> or WinZip<\/a>.<\/p>\n Inside the WordPress<\/strong> directory, you will see subdirectories such as wp-admin<\/strong>, wp-includes,<\/strong> and wp-content<\/strong> and individual index.php<\/strong>, wp-login.php<\/strong>, wp-config-sample.php<\/strong> files and so on.<\/p>\n Connect via FTP to your account where the WordPress site is located and go to the root directory.<\/p>\n <\/p>\n Once you get there, it’s time to move the files of the latest version of WordPress, which are located on your computer in the WordPress directory on your hosting.<\/p>\n In other words, we will replace some files and directories on your web host with the corresponding files and directories from the WordPress package that you just unpacked.<\/p>\n Important: No need to replace everything inside the WordPress directory. This way you can easily ruin your site. Instead, follow the instructions below.<\/p><\/blockquote>\n Delete the existing wp-admin<\/strong> and wp-includes<\/strong> directories on your hosting. If you are using FileZilla, simply select the directory and select Delete<\/strong> from the right-click context menu:<\/p>\n <\/p>\n Do not touch the wp-content<\/strong> directory for now, as your themes, plugins and media content live in it.<\/p>\n Once you delete the wp-includes<\/strong> and wp-admin<\/strong> directories , it’s time to download the latest versions from your computer.<\/p>\n Go to the WordPress directory on your computer in the left pane, as shown below. Then select the wp-includes<\/strong> and wp-admin<\/strong> directories , and by right-clicking select Upload<\/strong>:<\/p>\n <\/p>\n With the new version of wp-includes<\/strong> and wp-admin<\/strong> directories on your server, it’s time to upload individual files to your WordPress directory.<\/p>\n This time you do not need to delete old versions of files, we will rewrite them with new ones.<\/p>\n Select the files in the left panel, as shown above and click Upload<\/strong> from the context menu on the right mouse button.<\/p>\n <\/p>\n In the confirmation dialog box, select Overwrite<\/strong> and click OK<\/strong>.<\/p>\n Check the wp-config-sample.php<\/strong> file for lines of code that are not in the wp-config.php<\/strong> file on your server – you need to copy them.<\/p>\n In conclusion, just go to your administrative part of the site ( yoursite.com\/wp-admin\/upgrade.php\/) to check if everything works, and update your database.<\/p>\n In this section, we assume that you already have SSH<\/strong> access to your WordPress root directory, public_html<\/strong> in our case.<\/p>\n If you installed your WordPress site in a separate directory, for example,\u00a0\u00a0public_html \/ your-site<\/strong>\u00a0, then the root directory of your WordPress is\u00a0\u00a0your-site<\/strong>\u00a0.<\/p>\n First of all, use the\u00a0cd command to<\/strong>\u00a0\u00a0go to your WordPress root directory:<\/p>\n Next, check to see if a new version of WordPress is available:<\/p>\n The approximate output of the command result:<\/p>\n If there are no updates, you will see the message \u201cSuccess: WordPress is at the latest version\u201d instead.<\/p>\n Now run the following command to update WordPress:<\/p>\n Output Example:<\/p>\n Now that you know how to update the WordPress core through the WP-CLI, let’s update your database, theme, and plugins.\u00a0To update:<\/p>\n You know that regular WordPress updates happen automatically. But did you know that you can also configure automatic updates for major versions?<\/p>\n If you do not like the code, you can install an auto-update using the Easy Updates Manager<\/strong> plugin.<\/p>\n Don’t you like plugins too? You can enable automatic updating of the WP kernel by adding this line to your wp-config.php file<\/strong> :<\/p>\n define ( ‘WP_AUTO_UPDATE_CORE’ , true ) ;<\/span><\/p><\/blockquote>\n If you have updated the WordPress core, then you should update the plugins and themes.<\/p>\n To do this, go to your WordPress admin console and click on the Updates<\/strong> menu item.<\/p>\n This will lead you to the update page, where you can update not only the core WordPress but also themes and plugins.<\/p>\n <\/p>\n Updating your themes and plugins from this page is incredibly simple.\u00a0Just check\u00a0\u00a0Select All <\/strong>and click either\u00a0\u00a0Update Plugins<\/strong>\u00a0or\u00a0\u00a0\u00a0Update Themes,<\/strong>\u00a0\u00a0respectively.<\/p>\n Another way to update plugins is to go to the\u00a0Plugins -> Installed Plugins <\/strong>page and update them one at a time.<\/p>\n <\/p>\n In the same way, you can update the\u00a0\u00a0Appearance -> Themes themes<\/strong>\u00a0as shown below.<\/p>\n <\/p>\n Note:<\/strong>\u00a0Updating your WordPress theme will reset all the settings you made earlier in order to avoid this and not lose your settings, we recommend using a\u00a0\u00a0child theme<\/strong>\u00a0\u00a0instead of editing your parent theme directly.<\/p>\n Learning how to upgrade WordPress allows you to easily upgrade your site without any loss.\u00a0We hope this article has helped you in this endeavor.<\/p>\n Once again, we remind you of the importance of creating a backup for a WordPress site, regardless of whether you update it or make other changes.<\/p>\n Also, use the child theme so that you can customize and update your theme without losing your work on setting it up.<\/p>\n Use WordPress themes and plugins from reputable developers who update their products.<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":" If you’re looking for tips on how to upgrade WordPress, then you are on the right track. The process of updating WordPress core, themes or plugins should not seem complicated. And in this article, we will show you how to safely upgrade your WordPress site. You may wonder why update WordPress if you already have …<\/p>\n\n
Why update WordPress?<\/h2>\n
\n
Before upgrade<\/h2>\n
How to update WordPress core<\/h2>\n
\n
WordPress update through the administration console<\/h2>\n
How to manually update WordPress via FTP<\/h2>\n
Step 1 – Download the Latest WordPress Version<\/h2>\n
Step 2 – Go to the WordPress Horse Directory<\/h2>\n
Step 3 – Download the new version<\/h2>\n
How to update WordPress via WP-CLI<\/h2>\n
cd public_html<\/span><\/pre>\n
wp core check-update<\/span><\/pre>\n
+ --------- + ------------- + ------------------------- -------------------------------------- + \n| version | update_type | package_url | \n+ --------- + ------------- + ------------------------- -------------------------------------- + \n| #. #. # | minor | https:\/\/downloads.wordpress.org\/release\/wordpress-#.#.#.zip | \n| #. #. # | major | https:\/\/downloads.wordpress.org\/release\/wordpress-#.#.#.zip | \n+ --------- + ------------- + -----------------------\n\n<\/pre>\n
wp core update<\/span><\/pre>\n
Updating to version #. #. # (En_US) ... \nDownloading update from https: \/\/downloads.wordpress.org\/release\/wordpress - #. #. # - no-content.zip ... \nUnpacking the update .. . \nCleaning up files ... \nNo files found that need cleaned up. \nSuccess: WordPress updated successfully.<\/pre>\n
\n
wp core update-db<\/span><\/pre>\n<\/li>\n
wp theme update --all<\/span><\/pre>\n<\/li>\n
wp plugin update --all\n<\/span><\/pre>\n<\/li>\n<\/ul>\n
How to update WordPress automatically<\/h2>\n
How to update WordPress themes and plugins<\/h2>\n
Final word<\/span><\/span><\/h2>\n