1.下载一下php安装包。我这边是下载到本地,然后用sftp传到服务器上的。
put 本地文件完整目录 目标服务器完整目录
2.解压
tar -zxvf php-7.3.30.tar.gz
3.进入文件夹
cd php-7.3.30
4.配置
./configure --prefix=/usr/local/php7.3 --with-config-file-path=/usr/local/php7.3/etc --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-openssl --with-pcre-regex --with-pear --with-png-dir --with-jpeg-dir --with-xm