我的系统是centos7.6,安装php8.3时,先直接yum remove php* 移除原有的php组件,然后按照以下攻略安装当前最新的php8.3版本
https://medium.com/@nothanjack/mastering-the-installation-of-php-8-3-on-centos-7-easy-steps-1118ed651522
我把php8.3所需的扩展组件汇总,你可以直接yum install -y,当然你得先把仓库安装好
sudo yum install epel-release
sudo yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
然后 yun install以下
php83 php-bcmath php83-php-bcmath php83-php-cli php83-php-common php83-php-devel php83-php-fpm php83-php-gd php83-php-gmp php83-php-intl php83-php-mbstring php83-php-mysqlnd php83-php-opcache php83-php-pdo php83-php-pdo-dblib php83-php-pecl-apcu php83-php-pecl-apcu-devel php83-php-pecl-igbinary php83-php-pecl-imagick-im6 php83-php-pecl-msgpack php83-php-pecl-redis6 php83-php-pecl-zip php83-php-process php83-php-sodium php83-php-xml