S
S
Sergey Beloventsev2018-08-20 10:04:17
PHP
Sergey Beloventsev, 2018-08-20 10:04:17

Why won't phpredis start?

I decided to install phpredis like this https://github.com/phpredis/phpredis
I downloaded it via wget copied it to etc/php/7.2/mods-available
made symlinks from conf.d fpm and cli from etc/php/7.2 to redis .ini.
I made this line extension = redis.so in php.ini and cli and fpm.
But phpinfo() won't output redis either.
And any console command produces the following errors
PHP Warning: PHP Startup: redis: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20170718
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: redis: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20170718
These options need to match
in Unknown on line 0
PHP Core Warning 'yii\base\ErrorException' with message 'PHP Startup: redis: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20170718
These options need to match
'
in ./Unknown:0
Stack trace:
#0 {main}
installed phpredis like this
phpize
./configure
make
make install
What did I do wrong ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Shatokhin, 2018-08-20
@Sovigod

Well, you have Ubuntu. Use a package manager.
if your php version is not from the standard repository
apt-get install php7.2-redis

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question