{"id":1521,"date":"2021-01-13T07:09:39","date_gmt":"2021-01-13T07:09:39","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/solution-to-magento-2-admin-not-working-after-changing-port-number\/"},"modified":"2025-05-21T17:14:38","modified_gmt":"2025-05-21T11:44:38","slug":"solution-to-magento-2-admin-not-working-after-changing-port-number","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/solution-to-magento-2-admin-not-working-after-changing-port-number\/","title":{"rendered":"Solved: Magento 2 Admin Not Working After Changing Port Number"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Apache server is the most popular web server on the internet because of its flexibility, stability and features it serve.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, Apache web server listens to incoming connection and bind with port 80 and port 443 for the secured TLS connections. Every IT person knows this and that\u2019s great. But the thing is, the hackers even know about the same. And, sadly your Apache web server is vulnerable to port 80 attacks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What if you want to secure your Apache web server by changing the port to non-standard one?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order to instruct Apache web server to bind and listen for web traffic on other ports than the standard web ports, you change the port number.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But wait, while login to your admin panel, you can see&nbsp;<strong>admin not working after changing port number in Magento 2.&nbsp;<\/strong>By any chance, after changing port number, you may face the error \u2018<strong>404 admin not found<\/strong>\u2018 in the admin section of Magento 2. You have to solve this error any how to start working on your Magento 2 store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today,&nbsp;I\u2019ve come up with the solution to&nbsp;<em>admin not working after changing the port number in Magento 2<\/em>&nbsp;issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Solve Magento 2 Admin Not Working After Changing Port Number Issue:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to&nbsp;<strong>httpd.conf<\/strong>&nbsp;file of&nbsp;<strong>C:xamppapacheconf<\/strong><\/li>\n\n\n\n<li>Find the word&nbsp;<strong>&lt;Directory \/&gt;&nbsp;<\/strong><\/li>\n\n\n\n<li>You can see<br>&lt;Directory \/&gt;<br>AllowOverride none<br>Require all denied<br>&lt;\/Directory&gt;<br>Just replace&nbsp;<strong>none&nbsp;<\/strong>with&nbsp;<strong>All&nbsp;<\/strong>in AllowOverride.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it! However, remember that this solution is for&nbsp;<strong>the apache server&nbsp;<\/strong>only.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache server is the most popular web server on the internet because of its flexibility, stability and features it serve. By default, Apache web server&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1521","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1521"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1521\/revisions"}],"predecessor-version":[{"id":13878,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1521\/revisions\/13878"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}