Can not login or Magento admin not found after installation

  • magento admin not found

Fresh installation on local
I believe that many people get this problem on setting up their local development environment for Magento project. Everything seems to be fine through Wizard process but you just simply can’t login into Magento admin then. So it is strange? Don’t worry – the most reason for this is that you are using localhost as local domain and this is the problem.

This is the best product I have bought! They have really helped my erection. ? The difference between a brand name medicine and a generic one is in the name, shape and in the price.

If so, follow two steps will help you to resolve this problem
1. Decide to use a new local domain – you can either use 127.0.0.1 or something like localhost.com. So please make sure that you will need to update url_base value in Magento database (table config_data)

2. If you use a custom domain like localhost.com, you need to edit your DNS file (alilas).
For Window users please go and add this line
127.0.0.1 localhost.com
into C:/Windows/system32/drivers/etc/host

Move / transfer Magento site to new hosting
You might get some errors like this

Notice: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92

In order to solve this you need to update 4 tables core_website, core_store_group, core_store, customer_group (not all hosting requires these steps – only database not started index from zero is getting this problem)

Looking for improvement for your Magento Store?
Facebook Connector Extension
Product related article extension
Magento Offer popup on exit extension
Unlimited Slideshow Magento Extension
Light Checkout in One Step Magento Extension

Solution:

– Open PhpMyAdmin
– Go to your database
– Click SQL
– Run the following SQL Query:

SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;

That’s all. Your error is solved now.

SET FOREIGN_KEY_CHECKS=0
is important to disable foreign key check, otherwise you can update table one by one in this order
core_website, core_store_group, core_store, customer_group

Hope this helps. Thanks.

Comments

Leave a Reply

Your email address will not be published.

5 + eleven =

Security Code: