1 / 14
文档名称:

php环境搭建手册参考.doc

格式:doc   大小:55KB   页数:14页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

php环境搭建手册参考.doc

上传人:读书百遍 2022/4/13 文件大小:55 KB

下载得到文件列表

php环境搭建手册参考.doc

文档介绍

文档介绍:环境搭建手册(PHP版)
软件版本:
Red Hat Enterprise Linux 5 Update 2
Apache版本:
Mysql 版本:
PHP版本:
PHP依赖名称及版本:
(1) lx=/usr/local/jpeg6/ --enable-shared --enable-static
make
make install
64位机器:
cp /usr/share/libtool/
cp /usr/share/libtool/
./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
make libdir=/usr/lib64
make libdir=/usr/lib64 install 使用64位函数库编译.
安装gd
tar vxf gd-
cd gd-
./configure --prefix=/usr/local/gd --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local/freetype2 --with-jpeg-dir=/usr/local/jpeg6
make && make install
或者:make
make install
安装libxml2
tar zxvf libxml2-
cd libxml2-
./configure --prefix=/usr/local/libxml2
make
make install
(过程比较缓慢,耐心等待)
分支1
安装(libmcrypt)
tar vxf libmcrypt-
cd libmcrypt-
./configure --prefix=/usr/local/libmcrypt
make
make install
安装mhash
tar xvf mhash-
cd mhash-/
./configure --prefix=/usr/local/mhash
make
make install
ln -s /usr/local/mhash
/lib/ /usr/lib/
安装PHP
tar xvf php-
cd php-
32位机器:
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-jpeg-dir=/usr/local/jpeg6 --with-zlib --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local/freetype2 --with-iconv --with-gmp --with-curl --with-mcrypt-dir=/usr/local/libmcrypt --with-pdo-mysql --with-json --with-gettext --with-libxml-dir=/usr/local/libxml2 --enable-sockets --enable-ftp --enable-soap --enable-zip --enable-mbstring --with-mhash-dir=/usr/local/mhash
64位机器:
# mkdir /usr/local/lib/mysql
# cd /usr/local/lib/mysql
# ln –s /usr/include/mysql include
# ln –s /usr/lib64/mysql lib
./configure --with-libdir=lib64 --prefix=/usr/local/php5 --with-apxs2=/us