简体   繁体   English

如何在PHP7(LAMP / CPANEL)上启用MySQLi扩展?

[英]How Enable MySQLi Extension on PHP7 (LAMP / CPANEL)?

My server upgraded to PHP7 and now I am getting an error which reads "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." 我的服务器已升级到PHP7,现在出现错误,显示为“您的PHP安装似乎缺少WordPress所需的MySQL扩展”。

I have tried adding extension=php_mysqli.so to my PHP INI but that doesn't seem to help. 我尝试将extension=php_mysqli.so添加到我的PHP INI中,但这似乎无济于事。 I am on a LAMP with CentOS and Apache 2.4 with MariaDB 10.0... All was working before the update. 我在使用CentOS的LAMP和使用MariaDB 10.0的Apache 2.4。 \\ \\

php -m shows: php -m显示:

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
enchant
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
ionCube Loader
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SourceGuardian
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend Guard Loader
Zend OPcache
zip
zlib

[Zend Modules]
Zend Guard Loader
Zend OPcache
the ionCube PHP Loader

You can not solve your issue by adding MySQLi to php.ini, here you have install real mysqli extension on server that can be done Easyapache by enabling MySQL Improved extension , and it can be done by root user only. 您无法通过在php.ini中添加MySQLi来解决问题,这里您在服务器上安装了真实的mysqli扩展名,可以通过启用MySQL改进的扩展名 Easyapache来完成,并且只能由root用户完成。 if you have than check below link. 如果您要检查以下链接。

Check full here: http://www.mochasupport.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=650 在此处查看完整内容: http : //www.mochasupport.com/kayako/index.php?_m= knowledgebase&_a=viewarticle& kbarticleid=650

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM