Categories

Featured templates

osCommerce. 如何将您的网站从一个域名移动到另一个

Ray Taylor April 8, 2013
Rating: 5.0/5. From 1 vote.
Please wait...

在本教程中,我们将学习如何移动您的osCommerce website from one domain to another.

osCommerce. 如何将您的网站从一个域名移动到另一个
  1. Download ALL files from server.
  2. Create backup of Database through PhpMyAdmin.
  3. Upload files to NEW SERVER.
  4. Change variables in 2 configure.php files.
  5. Install Database on NEW SERVER through PhpMyAdmin.

1) Download ALL files from server

连接到旧服务器并下载所有文件以获得精确的副本.

2)通过PhpMyAdmin创建数据库备份

Log into PhpMyAdmin and export the store database,解压到PC上的某个位置. 同时登录到OSCommerce商店管理区域,单击tools并创建一个 backup of the database to also save to your PC. The database created through PhpMyAdmin will probably be called localhost.sql

3) Upload files to NEW SERVER

Log onto your new web server via ftp or Hosting Cpanel 并以二进制文件上传所有存储文件. Note the includes/configure.PHP文件可能会重写其权限,这将需要稍后纠正.
您可能需要根据osCommerce安装指南更正其他osCommerce文件和文件夹的权限.

Files and folders include:

  • catalog/images to 777;
  • catalog/includes/configuration.php to 644 (444 on some servers);
  • 目录/管理/包括/配置.php to 644 (444 on some servers);
  • 目录/admin/backups到777,目录/admin/images/graphs到777;

4)修改2配置中的变量.php files

In includes/configure.php and admin/includes/configure.php 您需要更改一些变量以使商店重新安装工作. 在记事本,dreamweaver或您的首选中打开这些文件 html/code editing application.

如果您的存储将安装在新服务器的根目录下,则只需要编辑一些值. These would include DB_DATABASE, DB_SERVER_PASSWORD, DB_DATABASE_USERNAME, DIR_FS_CATALOG, HTTPS_COOKIE_DOMAIN, HTTP_COOKIE_DOMAIN, HTTPS_SERVER, HTTP_SERVER.

如果要将osCommerce存储安装到 DIRECTORY 在你的新服务器上,以前它是安装在你的旧服务器的根目录下,然后执行以下操作.

如果要将复制的站点上传到 Directory 你需要在以下文件中指定:
  • includes/configure.php;
  • admin/includes/configure.php;

Where ‘store’ is the new directory name. 哪里的“用户”是您的服务器帐户地址. where ‘yourdomainname.co.uk’ is the web domain of your new website.

admin/includes/configure.php

Where ‘store’ is the new directory name. 哪里的“用户”是您的服务器帐户地址. where ‘yourdomainname.co.uk’ is the web domain of your new website.

5)通过PhpMyAdmin在新服务器上安装数据库

Log onto your PhpMyAdmin and create a NEW DATABASE, this will be your new database 对于您的osCommerce商店,您可以使用与旧商店相同的名称 database 如果可能的话,这将使事情变得更容易.

Assign a user to the database,如果您可以使用与您的旧用户相同的用户 database it will keep things simpler.

Login to your PhpMyAdmin panel, select your New Database,单击“导入”按钮,浏览之前导出的xxxxxxxx.SQL file and click GO button.

去你的新网站看看结果.

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

osCommerce. 如何将您的网站从一个域名移动到另一个
This entry was posted in OsCommerce Tutorials and tagged another, domain, move, osCommerce, website. Bookmark the permalink.

Submit a ticket

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