2018年3月16日 星期五

[PHP upgrade] CentOS 7 PHP 7.1.14 upgrade to php 7.2.3


確定/etc/yum.repos.d/下有remi-php72.repo

沒有的話從網上copy內容新增此檔


安裝php 7.2
#yum --enablerepo=remi-php72 install php
#yum --enablerepo=remi-php74 install php74 php74-cli php74-common php74w-bcmath php74-dba php74-devel php74-embedded php74-fpm php74-gd php74-imap php74-intl php74-mbstring php74-mcrypt php74-mysql php74-odbc php74-opcache php74-pdo php74-pdo_dblib php74-pear php74-process php74-xml php74-xmlrpc

安裝完後重啟php-fpm
#systemctl restart php-fpm


重新設定web root目錄權限
#sudo chown -R "$USER":www-data /webdirectory
#sudo chmod -R 0755 /webdirectory
設定後重啟Web server
#systemctl restart nginx






沒有留言:

張貼留言