所以我尝试安装 php 模块:mysqli、exif、mbstring 和 dom。但我无法这样做......我显然已经设法使用此命令安装 exif 和 mbstring,但它没有出现在已安装模块的列表中:
[root@~]# php -v
PHP 8.1.27 (cli) (built: Jan 24 2024 00:32:48) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.27, Copyright (c) Zend Technologies
[root@~]# yum install ea-php81-php-exif.x86_64
Last metadata expiration check: 1:50:15 ago on Wed 14 Feb 2024 11:29:44 AM -03.
Package ea-php81-php-exif-8.1.27-1.1.3.cpanel.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@~]# yum install ea-php81-php-mbstring.x86_64
Last metadata expiration check: 1:54:38 ago on Wed 14 Feb 2024 11:29:44 AM -03.
Package ea-php81-php-mbstring-8.1.27-1.1.3.cpanel.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@~]# php -m
[PHP Modules]
Core
date
filter
hash
json
libxml
openssl
pcntl
pcre
readline
Reflection
session
SPL
standard
zlib
而且我也找不到 mysqli 包“未找到匹配项”。我还添加了我能够在 php.ini 文件中安装的内容,但它仍然不起作用。这是 error_log 中的消息之一:
[14-Feb-2024 17:31:47 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: ./mbstring.so (./mbstring.so: cannot open shared object file: No such file or directory), ./mbstring.so.so (./mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0