移动后Magento重定向问题

编程入门 行业动态 更新时间:2024-10-15 00:26:12
本文介绍了移动后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:19:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550826.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重定向   Magento

发布评论

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

>www.elefans.com

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