最新消息:

安装php7.2.3

PHP admin 393浏览
  • 安装php
    • ./configure –prefix=/usr/local/php –with-curl –with-freetype-dir  –with-gettext  –with-iconv-dir  –with-kerberos  –with-libdir=lib64  –with-libxml-dir  –with-mysqli  –with-openssl  –with-pcre-regex  –with-pdo-mysql  –with-pdo-sqlite  –with-pear  –with-png-dir  –with-xmlrpc  –with-xsl  –with-zlib  –enable-fpm  –enable-bcmath  –enable-libxml  –enable-inline-optimization   –enable-mbregex  –enable-mbstring  –enable-opcache  –enable-pcntl  –enable-shmop  –enable-soap  –enable-sockets  –enable-sysvsem  –enable-xml  –enable-zip
    • make
    • make test
    • make install
    • cp php.ini-development /usr/local/php/lib/php.ini
    • cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
    • cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf
    • killall php-fpm
    • cd /usr/local/php/sbin
    • cp php-fpm /usr/sbin/php-fpm
    • cp php-fpm /etc/init.d/php-fpm
    • php-fpm
  • 安装gd扩展(事先安装libpng16和zlib-1.2.11)
    • cd ext/gd
    • phpize
    • ./configure –prefix=/usr/local/php –with-php-config=/usr/local/php/bin/php-config –with-jpeg-dir=/usr/local/jpeg –with-freetype-dir –with-png-dir=/usr/local/include/libpng16
    • make && make install
    • 加入gd.so入php.ini(上有路径)
    • killall  php-fpm
    • php-fpm
    • php -m
  • 安装memcached扩展(事先安装memcached)

转载请注明:音色共鸣 » 安装php7.2.3