cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 - Localhost - Admin url returning 404 error

SOLVED

Magento 2 - Localhost - Admin url returning 404 error

Hello All,

 

I have installed Magento 2 on a MAMP server using Apache, my home / product / category / login pages are working fine, but my admin page is returning with a 404  - (Not Found) page, from the layout.

 

I tried installing several times but keep getting the same error.

 

I installed the latest version of Magento 2 on Github (updated on Nov 05 2015).

 

Does anyone knows what i can do to fix it?

 

Regards,

Eduardo Chemmer

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2 - Localhost - Admin url returning 404 error

27 REPLIES 27

Re: Magento 2 - Localhost - Admin url returning 404 error

Re: Magento 2 - Localhost - Admin url returning 404 error

Thanks a lot, this worked perfectly! \o/

Re: Magento 2 - Localhost - Admin url returning 404 error

We are facing issues after logged into Magento 2 Admin.

 

Login screen came and after login no dashboard appeared.

 

Instead

 

"This page can’t be displayed" ERROR came up.

 

http://127.0.0.1/mage2ee/admin_o0exa8/admin/index/index/key/dbb62ca5c9c5ba2c36eceef7609226751a25f78a...

 

Checked system and debug logs, not able to find anything.

 

Configuration is :

 

apache 2.4.9
 
php 5.5.12
 
mysql 5.6.17
 

Checked cookies too, and admin cookie is there.

 

I believe right now Magento is working into default mode as we have not made any change till now.

 

Please help on this.

Re: Magento 2 - Localhost - Admin url returning 404 error

From WAMP logs, below error found:

 

 

php_error.log

----------------

PHP Warning:  PHP Startup: Unable to load dynamic library 'D:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

in Unknown on line 0

 

Is this having relation with Magento 2 backend authorization?

 

 

Re: Magento 2 - Localhost - Admin url returning 404 error

You can see/change admin url from @app/etc/env.php at line no 5.

return array (
'backend' =>
array (
'frontName' => 'admin_q76xvk',
),

 

Re: Magento 2 - Localhost - Admin url returning 404 error

I have faced the same problem after wasting lot of time solved it just adding the .htaccess file in root folder.

Re: Magento 2 - Localhost - Admin url returning 404 error

Just copy pub/.htaccess to magento root folder ^_^

Re: Magento 2 - Localhost - Admin url returning 404 error

Which .htaccess and , by root folder you mean /root ?

 

Re: Magento 2 - Localhost - Admin url returning 404 error

It worked for me = )