由于无法直接从PHP5.4升级PHP7.3,忙活大半晚上将PHP手动升级了
重要tips:为防止误操作,提前快照备份
以下为过程简略记录

To run WordPress we recommend your host supports:
PHP version 7.3 or greater.
MySQL version 5.6 or greater OR MariaDB version 10.1 or greater.
HTTPS support
------------------------------
系统环境:centos7.0 ×64 
https://www.php.net/downloads.php
./configure +参数
make && make install
https://libzip.org/download/
https://cmake.org/download/
#vi /etc/profile
export PATH="/usr/local/php7/bin:$PATH"
#LoadModule php5_module modules/libphp5.so
LoadModule php7_module modules/libphp7.so
PHP7.3编译参数
     --prefix=/usr/local/php7 --with-apxs2=/usr/local/apache/bin/apxs --with-libiconv-prefix=/usr/local/lib --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir  --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir  --with-xmlrpc  --with-xsl  --with-zlib --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-gd-native-ttf  --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl  --enable-shmop --enable-soap --enable-sockets --enable-sysvsem  --enable-xml --enable-zip
     其中:
     --prefix=/usr/local/php7 是PHP的安装路径
     --with-apxs2=/usr/local/apache/bin/apxs 是用来整合Apache
     --with-libiconv-prefix=/usr/local/lib 是PHP的依赖库

Views: 473

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据