{"id":1203,"date":"2020-09-22T07:53:10","date_gmt":"2020-09-22T07:53:10","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/09\/22\/4469097-how-to-restore-the-wordpress-system-files-at-hostinger\/"},"modified":"2026-11-11T06:17:51","modified_gmt":"2026-11-11T06:17:51","slug":"4469097-how-to-restore-the-wordpress-system-files-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4469097-how-to-restore-the-wordpress-system-files-at-hostinger\/","title":{"rendered":"How to restore the WordPress system files at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Restore the WordPress system files at Hostinger to fix damaged core files while keeping your website\u2019s latest content and changes. There are two methods:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-using-ssh\" class=\"intercom-content-link\" href=\"#h_28cd47d290\" target=\"_blank\" rel=\"noopener\">Using SSH<\/a> <\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-using-file-manager-or-ftp\" class=\"intercom-content-link\" href=\"#h_95b5081f86\" target=\"_blank\" rel=\"noopener\">Using File Manager or FTP<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n<p class=\"no-margin\">Whichever option you choose, you do not need to make any changes to the database. The SSH option is the easiest, as you would only need to run one command, and it is available on all hosting plans except for Single web hosting plan.<\/p>\n<h2 id=\"h_28cd47d290\">Option 1 \u2013 Restoring WordPress system files via SSH<\/h2>\n<h3 id=\"h_bfefb768e2\">Step 1 \u2013 Connect via SSH<\/h3>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-connect-to-your-account-via-ssh\" class=\"intercom-content-link\" href=\"\/support\/1583245-how-to-connect-to-a-hosting-plan-via-ssh-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">Connect to your account via SSH<\/a><\/b> and open the directory where you installed WordPress. For most domains, it will be the <b>public_html<\/b> folder, so to reach the path use the following command:<\/p>\n<pre><code>cd domains\/domain.tld\/public_html<\/code><\/pre>\n<p class=\"no-margin\">Replacing <b>domain.tld<\/b> with your domain.<\/p>\n<h3 id=\"h_e859a4f193\">Step 2 \u2013 Restore files<\/h3>\n<p class=\"no-margin\">Once there, run the following command:<\/p>\n<pre><code>wp core download --skip-content --force<\/code><\/pre>\n<p class=\"no-margin\">When the process is completed, check your website in incognito mode, and it should be working now.<\/p>\n<h2 id=\"h_95b5081f86\">Option 2 \u2013 Restoring WordPress system files via FTP or file manager<\/h2>\n<h3 id=\"h_4c9c535672\">Step 1 \u2013 Preparation<\/h3>\n<p class=\"no-margin\">First, create a fresh backup of your website. You can do that by using the <b><a data-click-id=\"hgr-post-content-link-backup-tool-on-hostinger-dashboard\" class=\"intercom-content-link\" href=\"\/support\/2298928-how-to-create-backups-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">backup tool on Hostinger dashboard<\/a> <\/b>or by <b><a data-click-id=\"hgr-post-content-link-connecting-via-ftp\" class=\"intercom-content-link\" href=\"\/tutorials\/filezilla-ftp-configuration\/\" target=\"_blank\" rel=\"noopener\">connecting via FTP<\/a><\/b> and downloading all your website\u2019s files.<\/p>\n<h3 id=\"h_4f1374bef2\">Step 2 \u2013 Download the official WordPress system files<\/h3>\n<p class=\"no-margin\">Go to <b><a data-click-id=\"hgr-post-content-link-wordpress-org\" class=\"intercom-content-link\" href=\"https:\/\/wordpress.org\/download\/\" target=\"_blank\" rel=\"noopener\">WordPress.org<\/a><\/b> and download the archive with the core files of WordPress, that is, a clean installation that does not include any plugins or themes. Make sure to download the same version from your current installation, be it the <b><a data-click-id=\"hgr-post-content-link-latest-version\" class=\"intercom-content-link\" href=\"https:\/\/wordpress.org\/download\/\" target=\"_blank\" rel=\"noopener\">latest version<\/a> <\/b>or an <b><a data-click-id=\"hgr-post-content-link-older-one\" class=\"intercom-content-link\" href=\"https:\/\/wordpress.org\/download\/releases\/\" target=\"_blank\" rel=\"noopener\">older one<\/a><\/b>.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Using previous WordPress versions may present <b>security risks<\/b> \u2013 try to keep the latest version possible, eg. by <b><a data-click-id=\"hgr-post-content-link-updating-the-core-files\" class=\"intercom-content-link\" href=\"\/support\/6348502-how-to-manage-themes-and-plugins-via-wordpress-overview-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">updating the core files<\/a><\/b> after the restoration.<\/p>\n<\/div>\n<p class=\"no-margin\">Once done, extract the files on your device. The result will look like this:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img alt=\"\" decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/07\/6349e358-66e9-4553-9b25-fcf50e07c714.jpg\" \/><\/div>\n<h3 id=\"h_d1c8112872\">Step 3 \u2013 Upload the WordPress files to your hosting<\/h3>\n<p class=\"no-margin\">Next, upload these<b> <\/b>files and folders to your hosting, with the following <b>exceptions:<\/b><\/p>\n<ul>\n<li>\n<p class=\"no-margin\">The <b>wp-content <\/b>folder<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">The <b>wp-config.php<\/b> file<\/p>\n<\/li>\n<\/ul>\n<p class=\"no-margin\">To do it via <b><a data-click-id=\"hgr-post-content-link-file-manager\" class=\"intercom-content-link\" href=\"\/support\/4548688-basic-actions-in-the-file-manager-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">File Manager<\/a><\/b>, open <b><a data-click-id=\"hgr-post-content-link-websites\" class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a> \u2192 Manage site<\/b>, search for <b>File Manager <\/b>on the sidebar and click on it:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-24637\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-17.png\" alt=\"\" width=\"263\" height=\"290\" \/><\/div>\n<p class=\"no-margin\">Make sure you are in the directory where WordPress is installed and click<strong> Upload \u2192 Upload files<\/strong>:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-24619\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388.png\" alt=\"\" width=\"1554\" height=\"368\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388.png 1554w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-300x71.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-1024x242.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-768x182.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-1536x364.png 1536w\" sizes=\"(max-width: 1554px) 100vw, 1554px\" \/><\/div>\n<p class=\"no-margin\">Select the WordPress files and folders on your device, excluding the wp-config folder. When File Manager says a file already exists, select <strong>Replace<\/strong> and click <strong>Continue<\/strong>:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-24727\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_10-54.png\" alt=\"\" width=\"546\" height=\"307\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_10-54.png 546w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_10-54-300x169.png 300w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><\/div>\n<p class=\"no-margin\">Alternatively, if you\u2019re using FileZilla (or another FTP client of your choice), <b><a data-click-id=\"hgr-post-content-link-upload-the-wordpress-files\" class=\"intercom-content-link\" href=\"\/support\/1869164-how-to-upload-backups-with-ftp-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">upload the WordPress files<\/a><\/b>, <b>except the wp-content <\/b>folder and <b>wp-config.php file <\/b>and when asked, choose <b>Overwrite<\/b>:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2020\/09\/b68f5b95-815b-4844-b81e-3d41503db0d3.jpg\/public\" alt=\"Dialog with Resume option selected and OK button at bottom\" data-media-id=\"4715\" \/><\/div>\n<p class=\"no-margin\">Once the uploading process is done, you can check your website using the incognito mode of your browser. It should be working, and your content will be saved!<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">If you still find your website not working after doing all the steps, you can <b><a data-click-id=\"hgr-post-content-link-restore-your-website-from-a-backup\" class=\"intercom-content-link\" href=\"\/support\/3989447-how-to-restore-a-wordpress-website-from-backups-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">restore your website from a backup<\/a><\/b>. It will revert the files and database to their previous state. If WordPress shows \u201cThere has been a critical error on this website\u201d, follow <a data-click-id=\"hgr-post-content-link-how-to-fix-the-there-has-been-a-critical-error-on-this-websi\" href=\"https:\/\/www.hostinger.com\/support\/how-to-fix-the-there-has-been-a-critical-error-on-this-website-error-in-wordpress\/\">How to fix the \u201cThere has been a critical error on this website\u201d error in WordPress<\/a> first.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Restore damaged WordPress system files at Hostinger via SSH, File Manager, or FTP without changing your database, content, plugins, or themes.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[179],"tags":[],"class_list":["post-1203","post","type-post","status-publish","format-standard","hentry","category-wordpress-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4469097-how-to-restore-the-wordpress-system-files-at-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4469097-como-restaurar-archivos-del-sistema-de-wordpress-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4469097-comment-restaurer-les-fichiers-systeme-de-wordpress-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4469097-restore-file-sistem-wordpress-at-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/4469097-como-restaurar-arquivos-do-sistema-do-wordpress-no-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/4469097-\u044f\u043a-\u0432\u0456\u0434\u043d\u043e\u0432\u0438\u0442\u0438-\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0456-\u0444\u0430\u0439\u043b\u0438-wordpress-\u043d\u0430-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1203"}],"version-history":[{"count":9,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1203\/revisions"}],"predecessor-version":[{"id":25170,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1203\/revisions\/25170"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}