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

查看:76
本文介绍了移动后的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天全站免登陆