Magento – magento 1.9.2.3 admin login not working

adminmagento-1.9

magento 1.9.2.3 admin login not working
http://127.0.0.1/xxxxxxxxx/index.php/admin/index/index/key/0be5e3803ecd74044d4e1ac161ad3226/

project run on server fine but locahost not working
admin login Here

Best Answer

This is a common problem in local server.

You can fix it by creating editing the hosts file (http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/) to map a domain to 127.0.0.1.

For example: 127.0.0.1 local.mage.dev

After this you will need update your store URL in database, since your admin is not working.

To do this, run the following queries replacing the xxxxxxxxx by your store directory:

UPDATE core_config_data SET value = 'http://local.mage.dev/xxxxxxxxx/' WHERE path = 'web/unsecure/base_url';
UPDATE core_config_data SET value = 'http://local.mage.dev/xxxxxxxxx/' WHERE path = 'web/secure/base_url';