Installing Zabbix Installing PHP

Source: Internet
Author: User
1, the installation of PHP can be done via the official website (wget http://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.

[root@localhost 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

[Root@localhost install]# TAR-XVF php-5.5.28.tar.bz2

[Root@localhost install]# CD php-5.5.28

[Root@localhost 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


[Root@localhost Install] #make

[Root@localhost install]# make install


4, configure PHP


[Root@localhost INSTALL]CP Php.ini-production/usr/local/php/etc/php.ini

[Root@localhost install]cd/usr/locat/php/etc/

[Root@localhost etc]# CP Php-fpm.conf.default php-fpm.conf


5 to see if the service starts:

[Root@localhost sbin]# Netstat-lnt|grep 9000

TCP 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN

  • 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.