Installing Zabbix------Installing PHP

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.