• 编译 php5.5

    编译 php
    wget http://nas.zydyh.net/tar/php-5.5.1.tar.gz
    tar xzf php-5.5.1.tar.gz
    cd php-5.5.1
    ./configure –prefix=/usr/local/webserver/php5.5.1 –with-config-file-path=/usr/local/webserver/php5.5.19/etc –with-fpm-user=www –with-fpm-group=www –enable-opcache –enable-fpm –with-mysql=/usr/local/webserver/mysql –with-mysqli=/usr/local/webserver/mysql/bin/mysql_config –with-iconv-dir=/usr/local –with-freetype-dir –with-jpeg-dir –with-png-dir –with-zlib –enable-zip –with-libxml-dir=/usr –enable-xml –disable-rpath –enable-bcmath –enable-shmop –enable-exif –enable-sysvsem –enable-inline-optimization –with-curl –with-kerberos –enable-mbregex –enable-mbstring –with-mcrypt –with-gd –enable-gd-native-ttf –with-xsl –with-openssl –with-mhash –enable-pcntl –enable-sockets –with-ldap –with-ldap-sasl –with-xmlrpc –enable-ftp –with-gettext –enable-zip –enable-soap –disable-ipv6 –disable-debug –with-imap=/usr/local/imap-2007f –enable-calendar –with-pear –enable-wddx –enable-pdo –with-pdo-mysql –with-sqlite3
    make ZEND_EXTRA_LIBS=’-liconv’
    make install
    cp php.ini-development /usr/local/webserver/php5.5.1/etc/php.ini
    mv /etc/init.d/php-fpm /etc/init.d/php-fpm.old
    cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
    chmod +x /etc/init.d/php-fpm

发表评论

邮箱地址不会被公开。 必填项已用*标注