{"id":10829435,"date":"2018-10-30T09:32:36","date_gmt":"2018-10-30T09:32:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=10829435"},"modified":"2024-09-15T12:49:42","modified_gmt":"2024-09-15T12:49:42","slug":"updating-wordpress","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/updating-wordpress\/","title":{"rendered":"Updating WordPress"},"content":{"rendered":"\n
WARNING:<\/strong> The upgrade process will affect all files and folders included in the main WordPress installation. This includes all the core files used to run WordPress. If you have made any modifications to those files, your changes will be lost.<\/p>\n\n\n\n You should always update WordPress to the latest version<\/a>. When a new version of WordPress is available you will receive an update message in your WordPress Admin Screens. To update WordPress, click the link in this message.<\/p>\n\n\n\n There are two methods for updating – the easiest is the one-click update, which will work for most people. If it doesn’t work, or you just prefer to be more hands-on, you can follow the manual update process.<\/p>\n\n\n\n If you are updating across multiple versions, follow the procedure at\u00a0Upgrading WordPress – Extended Instructions<\/a><\/p>\n\n\n\n Before you get started, it’s a good idea to back up your website. This means if there are any issues you can restore your website. Complete instructions to make a backup can be found in the\u00a0WordPress Backup<\/a>.<\/p>\n\n\n\n For WordPress 3.7<\/a>+, you don\u2019t have to lift a finger to apply minor and security updates. Most sites are now able to automatically apply these updates in the background. If your site is capable of one-click updates without entering FTP credentials, then your site should be able to update from 3.7 to 3.7.1, 3.7.2, etc. (You\u2019ll still need to click \u201cUpdate Now\u201d for major feature releases.)<\/p>\n\n\n\n WordPress lets you update with the click of a button. You can launch the update by clicking the link in the new version banner (if it’s there) or by going to the Dashboard > Updates screen. Once you are on the “Update WordPress” page, click the button “Update Now” to start the process off. You shouldn’t need to do anything else and, once it’s finished, you will be up-to-date.<\/p>\n\n\n\n One-click updates work on most servers. If you have any problems, it is probably related to permissions issues on the filesystem.<\/p>\n\n\n\n WordPress determines what method it will use to connect to the filesystem of your server based on the file ownership of your WordPress files. If the files are owned by the owner of the current process (i.e., the user under which the web server is running), and<\/em> new files created by WordPress will also be owned by that user, WordPress will directly modify the files all by itself, without asking you for credentials.<\/p>\n\n\n\n WordPress won’t attempt to create the new files directly if they won’t have the correct ownership. Instead, you will be shown a dialog box asking for connection credentials. It is typical for the files to be owned by the FTP account that originally uploaded them. To perform the update, you just need to fill in the connection credentials for that FTP account.<\/p>\n\n\n\n Whether your files are owned by the web server user, or not, will depend on how you installed WordPress and how your server is configured. On some shared hosting platforms, it is a security risk for the files to be owned by the web server user and not a FTP user. See the tutorial on\u00a0Changing File Permissions<\/a>\u00a0<\/a>for more information, including how to configure file permissions so that multiple FTP users are able to edit the files.<\/p>\n\n\n\n If you see a “failed update” nag message, delete the file .maintenance<\/strong> from your WordPress directory using FTP. This will remove the “failed update” nag message.<\/p>\n\n\n\n If the one-click upgrade doesn’t work for you, don’t panic! Just try a manual update.<\/p>\n\n\n\n These are the short instructions, if you want more check out the\u00a0extended upgrade<\/a> instructions. If you experience problems with the Three Step Update, you may want to review the\u00a0more detailed upgrade instructions<\/a>.<\/p>\n\n\n\n For these instructions, it is assumed that your blog’s URL is NOTE – you should replace all the old WordPress files with the new ones in the Be careful when you come to copying the Lastly you should take a look at the If you’re upgrading manually after a failed auto-upgrade, delete the file .maintenance from your WordPress directory using FTP. This will remove the “failed update” nag message.<\/p>\n\n\n\n Visit your main WordPress admin page at \/wp-admin. You may be asked to login again. If a database upgrade is necessary at this point, WordPress will detect it and give you a link to a URL like Don’t forget to reactivate plugins!<\/p>\n\n\n\n If you have caching enabled, clear the cache at this point so the changes will go live immediately. Otherwise, visitors to your site (including you) will continue to see the old version (until the cache updates).<\/p>\n\n\n\n Your WordPress installation is successfully updated. That’s as simple as we can make it without Updating WordPress Using Subversion<\/a>.<\/p>\n\n\n\n Consider rewarding yourself with a blog post about the update, reading that book or article you’ve been putting off, or simply sitting back for a few moments and letting the world pass you by.<\/p>\n\n\n\n Your update is now complete, so you can go in and enable your Plugins again. If anything has gone wrong, then the first thing to do is go through all the steps in our\u00a0extended upgrade instructions<\/a>. That page also has information about some of the most common problems we see.<\/p>\n\n\n\n If you run into a request for FTP credentials with trying to update WP on a IIS server automatically, it may well be a matter of rights. Go into the IIS Management Console, and there to the application pool of your blog. In its advanced settings, change the Process Model Id into LocalSystem. Then on Sites, choose your blog, right click, click on Edit permissions and on security tab add authenticated users. That should do it.<\/p>\n\n\n\n If you experience problems after the upgrade, you can always\u00a0restore your backup<\/a>\u00a0<\/a>and replace the files with ones from your previous version from the\u00a0release archive<\/a>.<\/p>\n\n\n\nBack up WordPress<\/h2>\n\n\n\n
Automatic Background Updates<\/h2>\n\n\n\n
One-click Update<\/h2>\n\n\n\n
File Ownership<\/h3>\n\n\n\n
Failed Updates<\/h3>\n\n\n\n
Manual Update<\/h2>\n\n\n\n
http:\/\/example.com\/wordpress\/<\/code>.<\/p>\n\n\n\n
Step 1: Replace WordPress files<\/h3>\n\n\n\n
\n
wp-includes<\/code> and\u00a0
wp-admin<\/code> directories on your web host (through your\u00a0FTP<\/a>\u00a0<\/a>or shell access).<\/li>\n\n\n\n
wp-includes<\/code> and\u00a0
wp-admin<\/code> directories to your web host, in place of the previously deleted directories.<\/li>\n\n\n\n
wp-content<\/code> folder to your existing\u00a0
wp-content<\/code> folder, overwriting existing files. Do NOT delete your existing\u00a0
wp-content<\/code> folder. Do NOT delete any files or folders in your existing\u00a0
wp-content<\/code> directory (except for the one being overwritten by new files).<\/li>\n\n\n\n
wp-includes<\/code> and
wp-admin<\/code> directories and sub-directories, and in the root directory (such as
index.php<\/code>,
wp-login.php<\/code> and so on). Don’t worry – your
wp-config.php<\/code> will be safe.<\/p>\n\n\n\n
wp-content<\/code> directory. You should make sure that you only copy the files from inside this directory, rather than replacing your entire
wp-content<\/code> directory. This is where your themes and plugins live, so you will want to keep them. If you have customized the default or classic themes without renaming them, make sure not to overwrite those files, otherwise you will lose your changes. (Though you might want to compare them for new features or fixes..)<\/p>\n\n\n\n
wp-config-sample.php<\/code> file, to see if any new settings have been introduced that you might want to add to your own
wp-config.php<\/code>.<\/p>\n\n\n\n
Step 1.5: Remove .maintenance file<\/h3>\n\n\n\n
Step 2: Update your installation<\/h3>\n\n\n\n
http:\/\/example.com\/wordpress\/wp-admin\/upgrade.php<\/code>. Follow that link and follow the instructions. This will update your database to be compatible with the latest code. You should do this as soon as possible after step 1.<\/p>\n\n\n\n
Step 3: Do something nice for yourself<\/h3>\n\n\n\n
Final Steps<\/h2>\n\n\n\n
If you have issues with logging in, try clearing cookies in your browser.<\/p>\n\n\n\nTroubleshooting<\/h2>\n\n\n\n
Other options<\/h3>\n\n\n\n