Magento 移站(手工架站)步骤 14 June 2010 9:19 Monday by 小屋 分享收藏

一些情况下,我们不想用安装方式来架设 Magento 网站,而想手动架站。

步骤如下:

1、建立数据库。要点数据库要建立 UTF8格式连接串为utf8_general_ci。
2、导入数据库。要点:要记得关闭外键检查,或者使用导入SQL文件方式。set FOREIGN_KEY_CHECKS=0;
3、修改数据配置文件,为你的域名。表名:core_config_data
4、修改数据配置文件为你的网站环境。文件名:app/etc/local.xml。
5、如果你是商店配置,记得修改入口文件,即:index.php。

要点:$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : 'XX';

这里填入你的store view 的code 。

6、清空缓存要点:删除 var/cache var/session var/tmp 几个文件夹。
7、目录权限。 几个目录必须要有写权限。 chmod o+w var/ media/ app/etc/ -R 及 chmod g+w var/ media/ app/etc -R
 

作者: Sjolzy

--EOF--

引用地址:

相关评论:

  1. gravatar face
    pavelvolinkiinss 4 月 27 日 对 “Magento 移站(手工架站)步骤” 发表最新评论。
    Admin, hello! here are having problems with your site. malware warning Write me. icq 989567856647

    Admin, hello! here are having problems with your site. malware warning Write me. icq 989567856647

      评分:5

  2. 1
    pavelvolinkiinss :

    Admin, hello! here are having problems with your site. malware warning Write me. icq 989567856647

    博主回复:3Q.

发表评论:

  给 “Magento 移站(手工架站)步骤” 评分

广告、无意义的评论必删!