How to install mysqli php module in virtualmin?

Operating system: CentOS Linux 7.9.2009
** Virtualmin version:6.15 **
Current php version 7.2.24

How to Install mysqli PHP module and enable it in Virtualmin?

Have to install a PHP script, But it required mysqli PHP module installed and enable. I am newbies and i don’t know how to install and enable it.

I found some articles mysqli install and configure [#13149] | Virtualmin but can’t find solution.

I would have sworn it was installed by default. Try

php -m | grep -i mysql

in the shell and see if it’s in there. If it returns nothing, then

yum install php-mysql
 
php -m | grep mysqli

Richard

hi Richard,
when I wrote php -m | grep -i mysql it returns following code(in image)reutrun

Okay, so it needs to be enabled. Problem is I don’t remember where that file is in a default installation because I’m not using stock PHP. I think it should be in /etc/php.d/mysqli.ini. So let’s start there. Please run

cat /etc/php.d/mysqli.ini

and post what it outputs. If it outputs nothing, then

php -i | grep -i mysqli

and post that output.

Richard

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.