{"id":7134,"date":"2016-07-25T16:08:50","date_gmt":"2016-07-25T16:08:50","guid":{"rendered":"http:\/\/hostileblog.com\/?p=2986"},"modified":"2020-05-30T21:39:19","modified_gmt":"2020-05-31T01:39:19","slug":"fix-404-not-found-wp-admin-wp-login-php","status":"publish","type":"post","link":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/","title":{"rendered":"Fix 404 not found wp-admin or wp-login PHP error in WordPress"},"content":{"rendered":"

On a bad day, you may face difficulties in logging into the WP dashboard or opening the login page. These two problems can be easily fixed if you know the HTTP status code or error message shown by the browser when you access the twp pages.<\/p>\n

Today, we will help you out in fixing the 404 not found error message displayed by the web browser when you try to open wp-login or wp-admin PHP files. Earlier, we had shared a tutorial on fixing error establishing a database connection<\/a>.<\/p>\n

The wp-admin and wp-login PHP files are important. You may have accidentally deleted one of these files. Hence, you are seeing the 404 not found error<\/a> each time you try to access the WordPress dashboard or the login page.<\/p>\n

WordPress CMS does not change any of the PHP files on the server. It renders the web pages as per the settings saved in the database. Hence, uploading the missing file to the server will fix the 404 error.\u00a0Use FTP software such as FileZilla, CyberDuck for the same.<\/p>\n

\"404<\/p>\n

Reason 2 and solution<\/strong>: A\u00a0WP plugin may have moved the file to some other directory or renamed it as a security measure. If you don’t remember the path, try to locate the file using CPanel.<\/p>\n

If you cannot find the file, login to the server using putty, paste the below command in the terminal, and hit enter.<\/p>\n

find \/your_website_wp_directory\/ -name wp-login<\/code> (for locating the login.php file)<\/p>\n

find \/directory_of_wp_installation\/ -name wp-admin<\/code> (for location wp-admin.php file).<\/p>\n

Once the file is found, use mv or cp Unix\u00a0commands to restore the file to its original location or open the folder where the files are stored\u00a0in the CPanel.<\/p>\n

Copy the files to the root directory of your WordPress installation.<\/p>\n

Solution 3<\/strong>: The server configuration file may have a code which redirects non-trusted users (IP Addresses) on 404 page. This problem may occur on VPS servers<\/a>. Here is an example which explains the same:<\/p>\n

The webmaster has added a line of code to redirect all IPs other than his to a 404 error page.<\/p>\n

If your IP has been changed, you will not be able to access the login or admin pages of your site.<\/p>\n

The three solutions which we have specified above will fix the problems for you.<\/p>\n","protected":false},"excerpt":{"rendered":"

On a bad day, you may face difficulties in logging into the WP dashboard or opening the login page. These two problems can be easily fixed if you know the HTTP status code or error message shown by the browser when you access the twp pages. Today, we will help you out in fixing the […]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7129],"tags":[11413,7020,334],"post_series":[],"yoast_head":"\nFix 404 not found wp-admin or wp-login PHP error in WordPress - Ian Carnaghan<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix 404 not found wp-admin or wp-login PHP error in WordPress - Ian Carnaghan\" \/>\n<meta property=\"og:description\" content=\"On a bad day, you may face difficulties in logging into the WP dashboard or opening the login page. These two problems can be easily fixed if you know the HTTP status code or error message shown by the browser when you access the twp pages. Today, we will help you out in fixing the […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Ian Carnaghan\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-25T16:08:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-31T01:39:19+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg\" \/>\n<meta name=\"author\" content=\"Pramod\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@icarnaghan\" \/>\n<meta name=\"twitter:site\" content=\"@icarnaghan\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pramod\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/\"},\"author\":{\"name\":\"Pramod\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb\"},\"headline\":\"Fix 404 not found wp-admin or wp-login PHP error in WordPress\",\"datePublished\":\"2016-07-25T16:08:50+00:00\",\"dateModified\":\"2020-05-31T01:39:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/\"},\"wordCount\":379,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\"},\"image\":{\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg\",\"keywords\":[\"Affiliate\",\"Errors\",\"Wordpress\"],\"articleSection\":[\"Content Management Systems\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/\",\"url\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/\",\"name\":\"Fix 404 not found wp-admin or wp-login PHP error in WordPress - Ian Carnaghan\",\"isPartOf\":{\"@id\":\"https:\/\/www.carnaghan.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg\",\"datePublished\":\"2016-07-25T16:08:50+00:00\",\"dateModified\":\"2020-05-31T01:39:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage\",\"url\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg\",\"contentUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.carnaghan.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fix 404 not found wp-admin or wp-login PHP error in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.carnaghan.com\/#website\",\"url\":\"https:\/\/www.carnaghan.com\/\",\"name\":\"Ian Carnaghan\",\"description\":\"Software Developer, Blogger, Educator\",\"publisher\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.carnaghan.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\",\"name\":\"Ian Carnaghan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"caption\":\"Ian Carnaghan\"},\"logo\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\"},\"description\":\"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.\",\"sameAs\":[\"http:\/\/www.carnaghan.com\",\"https:\/\/x.com\/icarnaghan\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb\",\"name\":\"Pramod\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g\",\"caption\":\"Pramod\"},\"description\":\"My name is Pramod. I\u2019m a software developer (with good knowledge on PHP, JAVA \u2013 Android, JavaScript, CSS), blogger and online marketing professional. I\u2019ve 3 years of experience as a blogger and 2 years of full time experience as a software developer.\",\"url\":\"https:\/\/www.carnaghan.com\/author\/prhost78\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix 404 not found wp-admin or wp-login PHP error in WordPress - Ian Carnaghan","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/","og_locale":"en_US","og_type":"article","og_title":"Fix 404 not found wp-admin or wp-login PHP error in WordPress - Ian Carnaghan","og_description":"On a bad day, you may face difficulties in logging into the WP dashboard or opening the login page. These two problems can be easily fixed if you know the HTTP status code or error message shown by the browser when you access the twp pages. Today, we will help you out in fixing the […]","og_url":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/","og_site_name":"Ian Carnaghan","article_published_time":"2016-07-25T16:08:50+00:00","article_modified_time":"2020-05-31T01:39:19+00:00","og_image":[{"url":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg"}],"author":"Pramod","twitter_card":"summary_large_image","twitter_creator":"@icarnaghan","twitter_site":"@icarnaghan","twitter_misc":{"Written by":"Pramod","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#article","isPartOf":{"@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/"},"author":{"name":"Pramod","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb"},"headline":"Fix 404 not found wp-admin or wp-login PHP error in WordPress","datePublished":"2016-07-25T16:08:50+00:00","dateModified":"2020-05-31T01:39:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/"},"wordCount":379,"commentCount":2,"publisher":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5"},"image":{"@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage"},"thumbnailUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg","keywords":["Affiliate","Errors","Wordpress"],"articleSection":["Content Management Systems"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/","url":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/","name":"Fix 404 not found wp-admin or wp-login PHP error in WordPress - Ian Carnaghan","isPartOf":{"@id":"https:\/\/www.carnaghan.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage"},"image":{"@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage"},"thumbnailUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg","datePublished":"2016-07-25T16:08:50+00:00","dateModified":"2020-05-31T01:39:19+00:00","breadcrumb":{"@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#primaryimage","url":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg","contentUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2016\/07\/404-not-found-wp-login.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.carnaghan.com\/fix-404-not-found-wp-admin-wp-login-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.carnaghan.com\/"},{"@type":"ListItem","position":2,"name":"Fix 404 not found wp-admin or wp-login PHP error in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.carnaghan.com\/#website","url":"https:\/\/www.carnaghan.com\/","name":"Ian Carnaghan","description":"Software Developer, Blogger, Educator","publisher":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.carnaghan.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5","name":"Ian Carnaghan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","caption":"Ian Carnaghan"},"logo":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/"},"description":"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.","sameAs":["http:\/\/www.carnaghan.com","https:\/\/x.com\/icarnaghan"]},{"@type":"Person","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb","name":"Pramod","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g","caption":"Pramod"},"description":"My name is Pramod. I\u2019m a software developer (with good knowledge on PHP, JAVA \u2013 Android, JavaScript, CSS), blogger and online marketing professional. I\u2019ve 3 years of experience as a blogger and 2 years of full time experience as a software developer.","url":"https:\/\/www.carnaghan.com\/author\/prhost78\/"}]}},"views":12708,"_links":{"self":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts\/7134"}],"collection":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/comments?post=7134"}],"version-history":[{"count":0,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts\/7134\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/media?parent=7134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/categories?post=7134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/tags?post=7134"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/post_series?post=7134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}