Shopex网店的安装部署
实验环境
系统centos 5.6 x86_64 IP:192.168.2.7
所需软件包
freetype-2.3.5.tar.gz
gd-2.0.35.tar.gz
mysql-5.0.56.tar.gz
jpegsrc.v6b.tar.gz
libmcrypt-2.5.8.tar.gz
php-5.2.17.tar.gz
shopex-single-4.8.5.55324.zip
httpd-2.0.64.tar.gz
ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz
zlib-1[1].2.3.tar.gz
libpng-1.2.12.tar.gz
一、环境搭建
1.Apache安装
./configure "--prefix=/usr/local/apache" "--enable-so" "--enable-rewrite" "--enable-mods-shared=most" "--with-mpm=worker"
make
make install
ln -s /usr/local/apache/bin/apachectl /etc/init.d/httpd
启动apache:service httpd start
2.mysql安装
./configure '--prefix=/usr/local/mysql' '--sysconfdir=/etc' '--enable-shared' '--enable-assembler' '--with-mysql-user=mysql' '--without-debug' '--enable-thread-safe-client' '--with-extra-charsets=all'
Make
Make install
Ln –s /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
启动mysql:service mysqld start
3.freetype安装
./configure --prefix=/usr/local/freetype --enable-shared
make
make install
4.libpng的安装
./configure --prefix=/usr/local/png --enable-shared
make
make install
5.jpeg的安装
yum install gettext
vi gd_png.c
将 #include “png.h” 替换成:#include “/usr/local/libpng/include/png.h”
mkdir -p /usr/local/jpeg/man/man1
mkdir /usr/local/jpeg/bin
mkdir /usr/local/jpeg/lib
mkdir /usr/local/jpeg/include
cp /usr/share/libtool/config.sub ./
cp /usr/share/libtool/config.guess ./
./configure --prefix=/usr/local/jpeg --enable-shared
make
make install
6.Gd库的安装
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg --with-freetype=/usr/local/freetype --with-png=/usr/local/png --enable-shared
make
make install
7.libmcrypt的安装
./configure --prefix=/usr/local/libmcrypt
make
make install
8.zlib的安装
CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/local/zlib/
make
make install
8.php的安装
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib/php --with-gd=/usr/local/gd --with-freetype-dir=/usr/local/freetype/ --with-jpeg-dir=/usr/local/jpeg/ --with-jpeg-dir=/usr/local/jpeg/ --with-png-dir=/usr/local/png/ --with-zlib-dir=/usr/local/zlib/ --enable-mbstring --with-mcrypt=/usr/local/libmcrypt --enable-safe-mode
make
make install
10.修改apache配置文档
DirectoryIndex index.php index.html
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
重启apache:Server httpd restart
11.zendoptimizer的安装
./install
12。查看php.ini文件有没有写入如下内存,没有直接加入
重启apache:Server httpd restart
二、Shopex安装
访问shopex-single-4.8.5.55324.zip 解压目录下的install目录下的svinfo.php文件,可以看到,所以服务都以支持,这时可以直接进行页面访问安装了。
14.安装完成后访问