首页 > 代码库 > zabbix准备:php安装

zabbix准备:php安装

一.安装php依赖库

ftp://xmlsoft.org/libxml2/libxml2-2.9.3.tar.gz
yum install python-devel -y
cd /download/wget -c ftp://xmlsoft.org/libxml2/libxml2-2.9.3.tar.gztar xf libxml2-2.9.3.tar.gz -C tmp/cd tmp/libxml2-2.9.3/./configure --prefix=/usr/local/services/make && make install

  

https://curl.haxx.se/download/curl-7.44.0.tar.gz
tar xf curl-7.44.0.tar.gz -C tmp/cd tmp/curl-7.44.0/./configure --prefix=/usr/local/services/make && make install

  

http://www.ijg.org/files/jpegsrc.v9a.tar.gz
tar xf jpegsrc.v9a.tar.gz -C tmp/cd tmp/jpeg-9a/./configure --prefix=/usr/local/services/make && make install

  

ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.28.tar.gz
http://download.sourceforge.net/libpng/libpng-1.6.2.tar.gz
tar xf libpng-1.6.2.tar.gz -C tmp/cd tmp/libpng-1.6.2/./configure --prefix=/usr/local/services/make && make install

  

http://download.savannah.gnu.org/releases/freetype/freetype-2.6.5.tar.gz
http://download.chinaunix.net/down.php?id=35028&ResourceID=3295&site=1
tar xf freetype-2.4.3.tar.bz2 -C tmp/cd tmp/freetype-2.4.3/./configure --prefix=/usr/local/services/make && make install

  

https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
http://download.chinaunix.net/down.php?id=45065&ResourceID=5804&site=1
tar xf libevent-2.0.21-stable.tar.gz -C tmp/cd tmp/libevent-2.0.21-stable/./configure --prefix=/usr/local/services/ --disable-debug-modemake && make install

  

https://github.com/skvadrik/re2c/releases/download/0.16/re2c-0.16.tar.gz
http://download.chinaunix.net/down.php?id=45065&ResourceID=5804&site=1
tar xf re2c-0.16.tar.gz -C tmp/cd tmp/re2c-0.16/./configure --prefix=/usr/local/services/make && make install

  

ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz
tar xf libmcrypt-2.5.7.tar.gz -C tmp/cd tmp/libmcrypt-2.5.7/./configure --prefix=/usr/local/services/make && make install

二.安装php  

wget http://cn2.php.net/distributions/php-5.6.31.tar.gz

configure过程中各种糟心,缺少各种xx.h文件或者各种xx未声明,一般都是缺少开发库

yum install libxml2-devel -yyum install libcurl-devel -yyum install libjpeg-devel -yyum install libpng-devel -yyum install freetype-devel -y

  

  

zabbix准备:php安装