- 軟件大小:41.24M
- 軟件語言:中文
- 軟件類型:國產(chǎn)軟件
- 軟件類別:免費軟件 / 服務(wù)器區(qū)
- 更新時間:2017-06-03 11:55
- 運行環(huán)境:WinAll, WinXP, Win7, Win8
- 軟件等級:
- 軟件廠商:
- 官方網(wǎng)站:http://m.aimjoke.net/
5.19M/中文/10.0
13.00M/中文/10.0
122.07M/中文/6.0
22KB/中文/10.0
6.68M/英文/10.0
php5.6是一種常見的編程語言。綠色資源網(wǎng)帶來的為php5.6,具有很大新特性,如:可以使用表達式定義常量、加入hash_equals()函數(shù)、新增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 作為一個交互式集成的調(diào)試器 sapI
php://input 現(xiàn)在可以復(fù)用,廢棄了 $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、查看當(dāng)前系統(tǒng)版本
# 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環(huán)境是否正常
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
請描述您所遇到的錯誤,我們將盡快予以修正,謝謝!
*必填項,請輸入內(nèi)容