U
U
Urukhayy2015-09-03 06:28:44
PHP
Urukhayy, 2015-09-03 06:28:44

How to enable mysqli on Centos 7?

How to enable mysqli on Centos 7?
There is mysqli.so in /usr/lib64/php/modules directory
"php -m" doesn't output mysqli
I entered in php.ini :
"extension=mysqli.so"
all the same.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2015-09-03
@zooks

1. Extension_dir should look like this:
after ./ add the folder where the extensions are located, for example ext.
2. Uncomment this line:
3. Restart apache:
service apache2 restart

U
Urukhayy, 2015-09-03
@Urukhayy

I solved the problem like this:
I demolished an incomprehensible version of mysql, put mariadb.
Then yum install php-mysqli
And in php.ini returned everything by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question