Magento. 如何将存储从本地主机移动到实时服务器
July 1, 2015
本教程将向您展示如何移动Magento website from localhost to the live server.
例如,我们的Magento网站目前正在 localhost/magento,需要移动到 live server at www.templatetesting.com/vincent/magento. 以下是你应该遵循的步骤:
]
请随意查看详细的视频教程 如何在本地主机上安装Magento .
-
Log into the phpMyAdmin tool of your localhost software (in our case WAMP),打开电流 database and export it. Save it as a .zip/.sql 你电脑上的文件:
-
Open the database 转储在任何代码中导出的文件 editor (e.g Notepad ++ or Sublime Text2 editors) and replace the old domain 用new命名 domain name everywhere. 我们将会改变 localhost/magento/ to templatetesting.com/vincent/magento in our file. Save the changes.
-
Open www directory of your localhost 找到Magento安装. 压缩所有Magento文件夹和文件到 .计算机上的Zip文件:
-
Log into the phpMyAdmin through the hosting Control Panel of your live server www.templatetesting.com/vincent/magento和 创建一个新数据库. 注意new的名称、用户名和密码 database 供将来参考.
-
Open the new database 您刚刚创建了通过 phpMyAdmin and import the database 将从旧站点导出的文件转储到新站点 database:
-
将备份的Magento zip文件上传到 directory or sub-directory on your new domain, i.E在WWW的情况下.templatetesting./vincent/magento,这是/vincent/magento/子文件夹,提取它:
-
Go to the \app\etc\ directory on your new domain and open the local.xml 要编辑的文件(您可以在计算机上下载该文件并以任何简单的代码打开) editor 像notepad++一样,并在保存更改后将其上传回来):
-
您需要将该文件的第43 - 46行中的旧信息更改为新信息的相应信息 database (名称、用户名和密码):
your_host_name]]> your_user_name]]> your_database_password]]> your_database_name]]> -
将更改保存到文件中(如果在计算机上编辑,也可以将其上传回来).
-
Go to \var\cache directory 您的Magento安装并删除所有内容(mage-1, mage-2等文件夹):
-
打开新的magento站点的URL地址,i.e. www.templatetesting.com/magento/vincent. 如果所有操作都正确,您应该会看到该站点看起来与您的 localhost.
本教程到此结束. 现在你知道怎么移动Magento了 website from localhost to the live server.
请随时查看下面的详细视频教程: