---
title: "关于OsCommerce安装到第二步失败 ，OsCommerce使用视频教程"
author: "yangze"
date: "2010-08-19T14:09:00Z"
tags: []
slug: "oscommerce-oscommerce"
draft: false
lastmod: "2010-08-19T14:09:00Z"
id: 767773
url: "https://yangze.iteye.com/blog/767773"
---

OsCommerce 现在的最新版本是OSC 2.2 rc2a    安装的时候

php.ini配置文件里把这句改成：  
register\_globals=on

但是如果是OsCommerce 2.2 版本安装到第二步就没静了    我在网上查了半天 没有找到结果   后来在美国的一个卖OsCommerce模版网站   问在线客服找到了答案：

> “The most common cause for the installation getting stuck in step 2 is that the most recent PHP installations have register\_long\_arrays = OFF This needs to be turned to ON in the php.ini file  
> please contact your Host and ask them to enable register\_long\_arrays
> 
> ”
> 
> php.ini配置文件里把这句改成：  
> register\_long\_arrays=on

 

如果：安装oscommerce到第三步的时候提示上面的错误，  
SQL file does not exist: /install/oscommerce.sql

解决方法：

> QL file does not exist: /install/oscommerce.sql  
> First of all, you should back one step and choose session storage: database.  
> Then edit the file /install/templates/pages/install\_3.php and change the following line:  
> $sql\_file = $dir\_fs\_www\_root . 'install/oscommerce.sql';  
> to  
> $sql\_file = 'oscommerce.sql';

 

测试网站：[www.8two.cn/osc2](http://www.8two.cn/osc2)

OsCommerce使用视频教程[http://www.oscommerce-template-easy.com/oscommerce-tutorials-center.html](http://www.oscommerce-template-easy.com/oscommerce-tutorials-center.html "http://www.oscommerce-template-easy.com/oscommerce-tutorials-center.html")