升級 PHP7

使用 remi 源。

rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

CENTOS6 remi 源安裝 php72

yum remove 'php*'
yum install -y php72 php72-php php72-php-mysqlnd php72-php-mbstring php72-php-gd php72-php-mcrypt php72-php-imagick php72-php-opcache php72-php-xml
service httpd restart

win10 下載升級

官網下載 php72 線性安全安裝包

配置 php.ini

short_open_tag = On
memory_limit = 512M
error_reporting = E_ERROR
display_errors = Off
track_errors = On

error_log = c:/php7/php_errors.log
post_max_size = 80M
extension_dir = "c:/www/php7/ext"

upload_max_filesize = 8M
extension=curl.dll
extension=fileinfo.dll
extension=gd2.dll
extension=mbstring.dll
extension=mysqli.dll
extension=openssl.dll
extension=pdo_mysql.dll

date.timezone = PRC

#mail.add_x_header = On
#sql.safe_mode = Off
session.save_path = "c:/www/php7/tmp"
curl.cainfo = 'C:\www\ca\cacert.pem' 
openssl.cafile='C:\www\ca\cacert.pem'

處理php_admin_value 問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章