移动后的Magento重定向问题

编程入门 行业动态 更新时间:2024-10-14 20:24:37
本文介绍了移动后的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安装中的var,var/cache和var/tmp文件夹具有写访问权. 尝试使用chmod -R 700 var或chmod -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重定向问题

本文发布于:2023-11-02 00:20:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550828.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重定向   Magento

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!