如何将实时magento网站带到localhost而不影响实时网站 [英] how to bring live magento site to localhost without effecting live site

查看:82
本文介绍了如何将实时magento网站带到localhost而不影响实时网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望实时站点位于本地主机上,并且不影响实时magento站点的任何功能.我尝试了很多方法来做,但是没有得到任何结果.

我尝试的步骤是: 1.通过进入cpanel(通过ftp访问)> phpmyadmin>从magento实时站点中获取数据库>将所有文件导出到我的本地计算机,并将所有数据导入我的本地phpmyadmin.

2.从cpanel>文件管理器>所有文件中获取所有必要文件(例​​如p_html,.htpassword,.trash,访问日志等文件),然后将其放在我的本地计算机上,然后我将文件放入在文件夹中,并将其保存到C:\ xampp \ htdocs \所有文件(在文件夹中).

3在第一步执行的所有sql文件中,将本地站点的路径替换为localhost:1234.

但仍然无法正常工作. 任何帮助将不胜感激....

解决方案

将您的LIVE Magento存储复制到本地计算机:

  1. 使用任何ftp客户端下载magento文件.
  2. 从实时服务器导出数据库.
  3. 将下载的Magento文件放在本地主机根文件夹中.
  4. 在本地计算机上创建一个空白数据库(简称为本地数据库"),然后导入从实时数据库中导出的数据库备份.
  5. 删除/重命名文件app/etc/local.xml
  6. 使用本地数据库重新安装Magento.
  7. 安装后,转到管理"部分,然后

(i)刷新所有缓存. (ii)重新索引所有数据. (iii)刷新所有缓存.

就是这样.完成了.

N.B..如果您安装了特定于域的模块,则这些模块将无法在此处使用.

似乎很简单. 相信我,就是这么简单.

如果您在本地计算机上安装Magento时遇到任何问题,请参阅以下帖子: 解决方案

Copy your LIVE Magento store to your Local computer:

  1. Download the magento files using any ftp client.
  2. Export the database from live server.
  3. Put the downloaded Magento files in your localhost root folder.
  4. Create a blank database(lets say it 'local-database') in your local computer and import the database backup that you exported from the live one.
  5. Delete/Rename the file app/etc/local.xml
  6. Re-install the Magento using the local-database.
  7. After installation, go to Admin section and then

(i)Flush all cache. (ii)Re-Index all data. (iii)Flush all cache.

That's it. You are done.

N.B. If you have domain specific Modules installed, those modules will not work here.

Seems very simple right. Believe me, it is that simple.

If you face any problem in installing your Magento in localcomputer, here is a post that may come in handy: http://www.insync.co.in/how-to-install-magento-on-wamp-server-localhost-localcomputer/

这篇关于如何将实时magento网站带到localhost而不影响实时网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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