---
title: "在windows上用apahce2.2和php5.2安装ecshop"
author: "myoldman"
date: "2008-05-26T21:02:28Z"
tags: []
slug: "windows-apahce2-2-php5-2-ecshop"
draft: false
lastmod: "2008-05-26T21:02:28Z"
id: 197205
url: "https://myoldman.iteye.com/blog/197205"
---

软件准备  
apache 2.2.x for windows  
php 5.2.x for windows  
ZendOptimizer-3.3.0a for windows  
ucenter  
ecshop  
开始安装  
1.安装apache2.2  
2.安装php5.2 for windows 在安装过程中选择需要集成的web server为apache2.2.x并且选择正确的apache安装路径.  
3.配置apahce2.2.x

- 配置虚拟目录 修改httpd.conf  
  去掉如下的注释  
  \# User home directories  
  Include conf/extra/httpd-userdir.conf  
  修改 conf/extra/httpd-userdir.conf  
  添加如下的虚拟目录配置  
  Alias /ucenter/ "I:/UCenter\_1.0.0\_SC\_GBK/upload/"  
  &lt;Directory "I:/UCenter\_1.0.0\_SC\_GBK/upload/"&gt;  
  AllowOverride None  
  Options None  
  Order allow,deny  
  Allow from all  
  &lt;/Directory&gt;  
  Alias /ecshop/ "I:/ecshop.v2.6.0\_GBK\_build0504/upload/"  
  &lt;Directory "I:/ecshop.v2.6.0\_GBK\_build0504/upload/"&gt;  
  AllowOverride None  
  Options None  
  Order allow,deny  
  Allow from all  
  &lt;/Directory&gt;
- 添加index.php默认页面支持 &lt;IfModule dir\_module&gt;  
  DirectoryIndex index.html index.php  
  &lt;/IfModule&gt;

4.安装zend optimizer  
安装过程中需要注意选择apache和php的安装路径。  
5.配置php.ini

- 添加必要extension extension=php\_gd2.dll  
  extension=php\_mbstring.dll  
  extension=php\_mysql.dll
- 修改short\_open\_tag = On 该选项必须修改，否则运行ucenter会报错。
- 拷贝php安装路径/libmysql.dll 到c:\\windows\\system32目录 这步应该可以不用做，但是实际上如果不错这一步的话会出现加载mysql驱动异常的错误。  
  所以还是做一下

6.安装ucenter  
打开http://localhost/ucenter/install/index.php  
按照提示开始安装ucenter  
详细的安装过程请参考  
http://www.discuz.net/thread-897809-1-1.html  
7.安装ecshop  
从ucenter后台的应用管理中安装ecshop  
截图如下

![](http://www.iteye.com/upload/attachment/25556/689f74e5-7ab2-3b35-91f6-1c85a0e3ef00-thumb.jpg?1211809392)

然后按照页面提示安装ecshop

详细过程请参考

http://www.discuz.net/thread-898071-1-1.html