所在位置:首页网络工具服务器类 → php5.6.30 32/64位

php5.6.30 32/64位

 
  • 软件大小:41.2M
  • 更新日期:2025/4/17
  • 软件语言:简体
  • 软件类别:服务器类
  • 软件授权:免费软件
  • 软件官网:
  • 适用平台:WinAll

软件评分

PC6本地下载文件大小:41.2M 高速下载需下载高速下载器,提速50%

    软件介绍精品推荐相关视频人气软件相关文章评论0下载地址

    为您推荐:服务器类

    php5.6是一种常见的编程语言。绿色资源网带来的为php5.6,具有很大新特性,如:可以使用表达式定义常量、加入hash_equals函数、新增generators等,用户下载后体验下就知道了。。

    相关软件软件大小版本说明下载地址

    php5.6新特性

    主要特性:

    Constant scalar expressions.

    Variadic functions and argument unpacking using the...operator.

    Exponentiation using the**operator.

    Function and constant importing with the use keyword.

    phpdbg 作为一个交互式集成的调试器 sapI

    php://input 现在可以复用,废弃了 $HTTP_RAW_POST_DATA

    GMP 对象支持操作符重载

    允许上传超过 2G 的文件

    兼容性方面改进:

    Array keys won't be overwritten when defining an array as a property of a class via an array literal.

    json_decode() is more strict in JSON syntax parsing.

    Stream wrappers now verify peer certificates and host names by default when using SSL/TLS.

    GMP resources are now objects.

    Mcrypt functions now require valid keys and IVs.

    php5.6编译安装教程

    1、查看当前系统版本

    # cat /etc/redhat-release

    centos Linux release 7.2.1511 (Core)

    2、yum安装依赖的程序包

    yum install zlib libxml libjpeg freetype libpng gd curl libiconv zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel gd-devel curl-devel openssl openssl-devel libxslt-devel

    3、安装libiconv程序包

    wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz

    tar zxf libiconv-1.15.tar.gz

    cd libiconv-1.15

    ./configure --prefix=/usr/local/libiconv

    make

    make install

    4、配置编译安装PHP-5.6.30.tar.gz

    wget http://tw1.php.NET/get/php-5.6.30.tar.gz/from/this/mirror

    mv mirror php-5.6.30.tar.gz

    tar xzvf php-5.6.30.tar.gz

    ./configure \

    --prefix=/usr/local/php \

    --with-apxs2=/usr/local/apache/bin/apxs \

    --with-mysql=/usr/local/mysql \

    --with-pdo-mysql=/usr/local/mysql \

    --with-pdo-oci=instanTCLient,/usr,10.2.0.1 \

    --with-oci8=instantclient,/usr/lib/oracle/11.2/client/lib \

    --with-xmlrpc \

    --with-openssl \

    --with-zlib \

    --with-freetype-dir \

    --with-gd \

    --with-jpeg-dir \

    --with-png-dir \

    --with-iconv=/usr/local/libiconv \

    --enable-short-tags \

    --enable-sockets \

    --enable-zend-multibyte \

    --enable-soap \

    --enable-mbstring \

    --enable-static \

    --enable-gd-native-ttf \

    --with-curl \

    --with-xsl \

    --enable-ftp \

    --with-libxml-dir

    make

    make install

    5、拷贝修改配置文件

    cp /usr/local/src/php-5.6.30/php.ini-production /usr/local/php/lib/php.ini

    apache增加php支持,修改httpd.conf

    在 “AddType application/x-gzip .gz .tgz” 下面增加两行

    AddType application/x-httpd-php  .php  .php3

    AddType application/x-httpd-php-source  .phps

    在“DirectoryIndex index.html” 后面增加一个index.php

    6、测试php环境是否正常

    vi index.php

    <?php

    phpinfo();

    ?>

    7、测试php连接mysql是否正常

    vi index.php

    <?php

    //$link=mysql_connect('localhost','username','password');

    $link=mysql_connect('localhost','discuz','discuz') or mysql_error();

    if($link){

    echo "mysql successful connect php!";

    }else{

    echo mysql_error();

    }

    ?>

    8、LNMP编译配置

    ./configure \

    --prefix=/usr/local/php \

    --with-mysql=/usr/local/mysql \

    --with-pdo-mysql=/usr/local/mysql \

    --with-xmlrpc \

    --with-openssl \

    --with-zlib \

    --with-freetype-dir \

    --with-gd \

    --with-jpeg-dir \

    --with-png-dir \

    --with-iconv=/usr/local/libiconv \

    --enable-fpm \

    --with-fpm-user=nginx \

    --with-fpm-group=nginx \

    --enable-short-tags \

    --enable-sockets \

    --enable-zend-multibyte \

    --enable-soap \

    --enable-mbstring \

    --enable-static \

    --enable-gd-native-ttf \

    --with-curl \

    --with-xsl \

    --enable-ftp \

    --with-libxml-dir=/usr

    9、LNMP启动php-fpm

    cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf

    /usr/local/php/sbin/php-fpm

    10、LNMP修改nginx配置文件

    #location ~ \.php$ {

    #    root           html;

    #    fastcgi_pass   127.0.0.1:9000;

    #    fastcgi_index  index.php;

    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;

    #    include        fastcgi_params;

    #}

    去掉注释,修改include为fastcgi.conf


    精品推荐

    下载地址

    • php5.6.30 32/64位

      本地高速下载

    • PC版

      php5.6.30 32/64位查看详情

      php5.6.30 32/64位

    其他版本下载

    相关视频

      没有数据

    厂商其他下载

    电脑版安卓版IOS版Mac版

    查看所有评论>>网友评论0

    发表评论

    您的评论需要经过审核才能显示

    精彩评论

    最新评论

    热门关键词