标签: php
php5.6是一种常见的编程语言。绿色资源网带来的为php5.6,具有很大新特性,如:可以使用表达式定义常量、加入hash_equals()函数、新增generators等,用户下载后体验下就知道了。
主要特性:
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.
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
加载全部内容
FinalShell(SSH客户端Windows)v2018 免费版34.4M8人在玩finalshell是一款非常强大的网络服务管理器。finalshell不仅支持登录SSH和Windows远程桌面,还可以为开发、运维人员提供多种实用功能,让你轻松管理服务器,维护日常工作。
下载BBwebsocketv2018 绿色版1.3M5人在玩BBwebsocket是一款pc端websocket/ws/wss协议调试工具,可以帮助用户调试服务器,确保服务器的正常运行。BBwebsocket软件界面简洁,使用方便,用需要的用户欢迎下载体验!
下载吃鸡服务器状态查询V1.4 绿色版377KB5人在玩吃鸡服务器状态查询是一款针对吃鸡游戏服务器检测显示最新状态工具,通过这款工具可以帮助玩家检测游戏老是掉线的原因,使用起来真的十分方便,有需要的朋友可以下载体验一下。
下载SqlDbxv2018 中文版1M3人在玩sqldbx使用教程,sqldbx连接oracle。SqlDbx是一个多功能的SQL数据库管理,编辑,查询工具,SqlDbx支持多种数据源查询编辑,是一款功能强大的数据库编辑查询工具。
下载小鸟云管家v1.0.1.20 官方最新版87.4M2人在玩小鸟云管家,一款非常便捷的服务器管理工具。软件为用户提供服务器站点管理、资源监控、服务器优化、数据库管理、环境管理等多种功能,使用非常方便!
下载护卫神主机大师v4.1.0 官方版117.0M2人在玩护卫神主机大师让你的管理服务器更轻松,它支持用主机系统开设网站,支持开设的网站使用独立权限,支持多版本PHP等,为你的网站301重定向。
下载Aloof RDP Server远程共享服务器v8.8 官方版21.9M1人在玩AloofRDPServer软件是一款非常好用的远程共享服务器,这款软件功能非常强大,能够让多个用户同时登陆服务器,服务器上传文件速度快,安全性高,欢迎各位感兴趣的朋友们下载使用这款软件。
下载hfs网络文件服务器v2018 绿色版855KB1人在玩fs网络文件服务器是专为个人用户所设计的HTTP档案系统,如果您觉得架设FTPServer太麻烦,那么这个软件可以提供您更方便的网络文件传输系统,下载后无须安装,只要解压缩后执行即可。
下载AppServ正式版v8.0.0 最新版87.2M0人在玩AppServ一键包64位最新版是一款运行在windows系统上的Web服务器环境,包含最新版本的Apache、PHP、PHP7、MySQL、phpMyAdmin等组件。还支持TSL和SSL,十分强大!
下载iis6.0下载14.8M0人在玩微软WindowsServer2003中的IIS6.0下载为用户提供了集成的、可靠的、可扩展的、安全的及可管理的内联网、外联网和互联网Web服务器解决方案。IIS6.0经过改善的结构可以完全满足全球客户的需求。这篇文章介绍了WindowsServer2003中IIS下载6.0给用户带来的益处、
下载