移动后Magento重定向问题 [英] Magento redirection problem after moving

查看:24
本文介绍了移动后Magento重定向问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的 Magento 移至另一台具有另一个域名的服务器,现在它不断将我链接回旧域.所有文件和整个数据库都已被搜索和替换,以确保参考资料消失.缓存被移除.我怀疑它仍然尝试使用旧数据库,所以我修改了包含数据库信息的 local.xml 文件,但这并没有改变任何东西.由于没有缓存,有人知道哪里出了问题吗?

I've moved my Magento to another server with another domain name, now it keeps linking me back to the old domain. All files and the entire database has been searched&replaced to ensure references are gone. Cache got removed. I suspect it still tries to use the old database so i modified the local.xml file containing the DB info but that doesn't change anything. Since there is no cache does anyone have any idea what goas wrong?

推荐答案

显然 Magento 也使用服务器根目录中的 'temp' 目录进行缓存.清洁这将解决问题.这当然在重新启动服务器时也会处理.

Apparently Magento used the 'temp' directory in the server-root for caching as well. cleaning this would solve the issue. This is of course also taken care of when rebooting the server.

确保您的网络服务器对 magento 安装中的 varvar/cachevar/tmp 文件夹具有写访问权限.尝试使用 chmod -R 700 varchmod -R 766(谨慎使用后者).

Make sure your webserver has write access to the var, var/cache and var/tmp folder in your magento installation. Try using chmod -R 700 var or chmod -R 766 (use the latter with caution).

注意:这是没有正确设置文件/目录权限的结果.Magento 尝试使用 var/cache 和 var/tmp,发现 Web 服务器用户无法写入它们,然后将其缓存移动到系统/tmp 文件夹中.无论您如何诅咒和更改 BaseURL 设置并删除您在 var/cache 中找到的任何内容,Magento 都会继续从系统/tmp 文件夹中读取缓存配置.

NOTE: This is the result of not having your file/directory permissions properly set. Magento tries to use var/cache and var/tmp, finds them unwritable by the web server user and proceeds to move its cache to the system /tmp folder. No matter how much you curse and change the BaseURL settings and erase anything you find in var/cache, Magento continues to read the cached configuration out of the system /tmp folder.

不相信是 Linux Server Admin 101 问题导致的?这是视觉证据.

Don't believe that Linux Server Admin 101 problems cause this? Here's visual proof.

这篇关于移动后Magento重定向问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆