Categories

有特色的模板

Magento. 如何将存储从本地主机移动到实时服务器

Vincent White July 1, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

Magento. 如何将存储从本地主机移动到实时服务器

本教程将向您展示如何移动Magento website from localhost to the live server.

magento_move_store_from_localhost_to_live_server1

例如,我们的Magento网站目前正在 localhost/magento,需要移动到 live server at www.templatetesting.com/vincent/magento. 以下是你应该遵循的步骤:

]

请随意查看详细的视频教程 如何在本地主机上安装Magento .

  1. Log into the phpMyAdmin tool of your localhost software (in our case WAMP),打开电流 database and export it. Save it as a .zip/.sql 你电脑上的文件:

    magento_move_store_from_localhost_to_live_server2

  2. 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.

  3. Open www directory of your localhost 找到Magento安装. 压缩所有Magento文件夹和文件到 .计算机上的Zip文件:

    magento_move_store_from_localhost_to_live_server3

  4. Log into the phpMyAdmin through the hosting Control Panel of your live server www.templatetesting.com/vincent/magento和 创建一个新数据库. 注意new的名称、用户名和密码 database 供将来参考.

  5. Open the new database 您刚刚创建了通过 phpMyAdmin and import the database 将从旧站点导出的文件转储到新站点 database:

    magento_move_store_from_localhost_to_live_server4

  6. 将备份的Magento zip文件上传到 directory or sub-directory on your new domain, i.E在WWW的情况下.templatetesting./vincent/magento,这是/vincent/magento/子文件夹,提取它:

    magento_move_store_from_localhost_to_live_server5

  7. Go to the \app\etc\ directory on your new domain and open the local.xml 要编辑的文件(您可以在计算机上下载该文件并以任何简单的代码打开) editor 像notepad++一样,并在保存更改后将其上传回来):

    magento_move_store_from_localhost_to_live_server6

  8. 您需要将该文件的第43 - 46行中的旧信息更改为新信息的相应信息 database (名称、用户名和密码):

    	your_host_name]]>
    	your_user_name]]>
    	your_database_password]]>
    	your_database_name]]>
    	

    magento_move_store_from_localhost_to_live_server7

  9. 将更改保存到文件中(如果在计算机上编辑,也可以将其上传回来).

  10. Go to \var\cache directory 您的Magento安装并删除所有内容(mage-1, mage-2等文件夹):

    magento_move_store_from_localhost_to_live_server8

  11. 打开新的magento站点的URL地址,i.e. www.templatetesting.com/magento/vincent. 如果所有操作都正确,您应该会看到该站点看起来与您的 localhost.

本教程到此结束. 现在你知道怎么移动Magento了 website from localhost to the live server.

请随时查看下面的详细视频教程:

Magento. 如何将存储从本地主机移动到实时服务器

这个条目被张贴了出来 线上购物教程 and tagged live, localhost, Magento, server. Bookmark the permalink.

Submit a ticket

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: Submit a ticket