1, the installation of PHP can be done via the official website (wgethttp://Www.php.net/get/php-5.5.0.tar.bz2/from/jp1.php.net/mirror).
2. Install the dependent packages to ensure that the Lib Development library can be installed with Yum before installing Gd,png,curl,xml, and so on.
[[email protected] conf]# yum install gcc make gd-devel libjpeg-devel libpng-devel libxml2-devel bzip2-devel libcurl-devel-y
3, compile and install PHP 5.5
[Email protected] install]# TAR-XVF php-5.5.28.tar.bz2
[Email protected] install]# CD php-5.5.28
[email protected] install]# /configure--prefix=/usr/local/php \
--with-config-file-path=/usr/local/php/etc--with-bz2--with-curl \
--enable-ftp--enable-sockets--disable-ipv6--with-gd \
--with-jpeg-dir=/usr/local--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local--enable-gd-native-ttf \
--with-iconv-dir=/usr/local--enable-mbstring--enable-calendar \
--with-gettext--with-libxml-dir=/usr/local--with-zlib \
--with-pdo-mysql=mysqlnd--with-mysqli=mysqlnd--with-mysql=mysqlnd \
--enable-dom--enable-xml--enable-fpm--with-libdir=lib64--enable-bcmath
[[email protected] install] #make
[[email protected] install]# make install
4, configure PHP
[[email protected] install]CP Php.ini-production/usr/local/php/etc/php.ini
[Email protected] install]cd/usr/locat/php/etc/
[email protected] etc]# CP Php-fpm.conf.default php-fpm.conf
5 to see if the service starts:
[Email protected] sbin]# NETSTAT-LNT|GREP 9000
TCP 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN
This article is from the "Breght Moon" blog, make sure to keep this source http://liqingbiao.blog.51cto.com/3044896/1692218
Installing Zabbix------Installing PHP