1 / 18
文档名称:

php环境搭建手册参考模板.doc

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

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

分享

预览

php环境搭建手册参考模板.doc

上传人:业精于勤 2019/12/6 文件大小:50 KB

下载得到文件列表

php环境搭建手册参考模板.doc

文档介绍

文档介绍:php环境搭建手册参考环境搭建手册(PHP版)软件版本:RedHatEnterpriseLinux5Update2Apache版本:Mysql版本:PHP版本:PHP依赖名称及版本:(1)libiconv(2)freetype(3)libpng(4)jpegsrc(5)gd(6)libxml2(7)libmcrypt(8)mhash(9)mcrypt(似乎非必需)安装步骤把所有依赖包,需要安装的软件放到home/username下先用rpmqa|grep–i包名查找一下mysql,apache是不是已经装上了,例如mysqlqa|grep–imysqlmysqlqa|grep–ihttpd,如果mysql装上了,用rpm–emysql删除,如果httpd也装上了的话…从新装系统把,清理起来太麻烦了。进入放包的目录,开始装吧:32位机器:,.。rpm-ivh安装Mysqlrpm-ivhrpm-ivhrpm-ivh64位机器:1rpm–ivh2rpm–ivhrpm–ivhrpm– tarjxvfcd./configure--prefix=/usr/local/apache2--enable-./configure--prefix=/usr/local/libiconvmakemakeinstall安装freetypetar-zxvfcd./configure--prefix=/usr/local/freetype2makemakeinstall安装libpngcd./configure--prefix=/usr/local/libpngmakemakeinstall安装jpegsrcmkdir/usr/local/jpeg6mkdir/usr/local/jpeg6/binmkdir/usr/local/jpeg6/libmkdir/usr/local/jpeg6/includemkdir/usr/local/jpeg6/manmkdir/usr/local/jpeg6/man/man1tar-zxvfcdjpeg-6b/32位机器:./configure--prefix=/usr/local/jpeg6/--enable-shared--enable-staticmakemakeinstall64位机器:cp/usr/share/libtool/cp/usr/share/libtool/./configure--prefix=/usr/local/jpeg6/--enable-shared--enable-staticmakelibdir=/usr/lib64makelibdir=/usr/./configure--prefix=/usr/local/gd--with-png-dir=/usr/local/lib--with-freetype-dir=/usr/local/freetype2--with-jpeg-dir=/usr/local/jpeg6make&&makeinstall 或者:makemakeinstall安装libxml2tarzxvfcd./configure--prefix=/usr/local/libxml2makemakeinstall(过程比较缓慢,耐心等待)分支1安装(libmcrypt)tarvxf cd./configure--prefix=/usr/local/libmcryptmakemakeinstall安装mhashtarxvfcd./configure--prefix=/usr/local/mhashmakemakeinstallln-s/usr/local/mhash/lib//usr/lib/安装PHPtarxvfcd32位机器:./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/loca