Magento Admin 404

别等时光非礼了梦想. 提交于 2019-11-30 08:52:00

-- You need to go your server directly and do this via SSH/ FTP

You have to delete the following file

app/etc/use_cache.ser

If you get an error after that like

Notice: Undefined index: 0 in /srv/www/vhosts/javra.com/htdocs/munchad2/app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92

Then go to your Database Management.

  • 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;

Some thing strange happens with the cache when you move the databases from one server to another so it seems like you need to clear it out.

Check in this way

> http://www.yourstore.com/index.php/admin/

or

>  http://www.yourstore.com/admin/

After migration from www.domain1.com/magento/ to www.domain2.com/magento/ I was getting 500 Internal Server Error. So I just renamed my .htaccess to htaccess.txt. And my frontend started working fine, But at Backend http://www.yourstore.com/admin/ I was getting Same 500 Internal Server error.

After trying many option suggested online nothing worked for me and after that I tried to access admin via following URL and voilà worked perfect, Hope this help others.

Try to access as this > http://www.yourstore.com/index.php/admin/

Does the dedicated server have mod_rewerite enabled? Does the apache configuration allow .htaccess files to make changes to configuration directives via AllowOverride? Both of those are common ways that the Magento config gets pooched up.

This is an old thread but I've also had an issue with ownership what was returning a 404 in admin. I'd been doing some work on securing the server and some files were owned as root, not apache. So a chown -R apache:apache . fixed it right up.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!