php

greencom.com.tw update php7.2

# yum install epel-release

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

## Install PHP 7.3 
yum --enablerepo=remi-php73 install php

## Install PHP 7.2 
yum --enablerepo=remi-php72 install php

## Install PHP 7.1 
yum --enablerepo=remi-php71 install php

we are upgrade to 7.2

# yum --enablerepo=remi-php72 install php

# php -v

59.125.229.3 centos 6 php updrade to php71

Centos 6/7 升级 PHP 5.6 到 7.1/7.2

php -v
yum list installed | grep php
#Centos 5.X:
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

#CentOs 6.x:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

#CentOs 7.X:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
service php-fpm stop
yum install php71w php71w-cli php71w-common php71w-devel php71w-embedded php71w-fpm p

Apache 安裝 mod_pagespeed

PageSpeed (mod_pagespeed) 是 Google 對外開放的網頁加速模組, 支援 Apache 及 Nginx 網頁伺服器, 以下是 RHEL, CentOS 及 Fedora 安裝 mod_pagespeed 到 Apache 的方法:

執行以下指令安裝 mod_pagespeed 的 repository:

64 bit 系統:

# wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
# rpm -ivh mod-pagespeed-stable_current_x86_64.rpm

可以在 /etc/yum.repos.d 目錄看到 mod-pagespeed.repo, 現在用 Yum 安裝 mod_pagespeed:

# yum install mod-pagespeed

PageSpeed 模組已經安裝完成, 它有兩個設定檔:

pgp 5.3 upgrade to php56w

Removing:
 php-cli                x86_64           5.3.3-48.el6_8                  @updates            6.2 M
 php-common             x86_64           5.3.3-48.el6_8                  @updates            2.9 M
 php-gd                 x86_64           5.3.3-48.el6_8                  @updates            324 k
 php-imap               x86_64           5.3.3-48.el6_8                  @updates            100 k
 php-ldap               x86_64           5.3.3-48.el6_8                  @updates             52 k