magento icon
3rd
Mar 10

Magento Admin (Dashboard) Login Not Working Locally

Posted Wednesday 3rd March 2010
If you can’t log into Magento, when developing or testing locally, you will need to perform a few minor changes to have access to the Magento admin backend.

First of all you need to check that you aren’t using the wrong password. If you are an error dialogue (div) will be shown. If not you’ll beed to update the database and set it to your local IP.

Using phpMyAdmin (or any MySQL tool you’re confortable with) select the core_config_data table. There should be two rows with the path values of web/unsecure/base_url and ‘web/secure/base_url’. If the value field is set to the localhost instead of your IP update it.

1
UPDATE core_config_data SET value='http://127.0.0.1/magento/' WHERE path='web/unsecure/base_url'AND path='web/secure/base_url';

magento_admin_sql_update

Try and log back into the Magento admin dashboard. If you still get redirected to the localhost URI you’ll need to clear the cache and session files. To do that delete the cache and session directories inside the path/to/magento/var directory. Try again and you should be good to go.

Bookmark or share this page:

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon

MSN Contact: contact [at] danielgibbs.net



5 Comments

  1. adrian 17 September 2010 6:11 pm

    doesnt work for me..

  2. Gibbs 18 September 2010 11:10 pm

    Hi adrian.

    Sorry to hear that. Did you clear the Magento cache and session files?

    I did write this article pretty badly so apologies for that. I’ll try and revisit it sometime!

  3. balisign 8 February 2011 8:45 pm

    Me too. It doesn’t work. I have clear Magento Cache and Session.

  4. ankur 30 January 2012 7:20 am

    can any one tell me where to open the login pannel from where i can login to the backend

  5. Gibbs 30 January 2012 10:41 am

    ankur, by default I think its site.com/admin/.

    If you have FTP access open app/etc/local.xml and there should be an entry like:

    <frontName><![CDATA[adminarea]]></frontName>

    That would mean its site.com/adminarea/

TrackBack URL

Leave a comment