CentOS7 PHP7.2.2 installs redis extension error

1. Problem description

gitphp-redis:git clone https://github.com/edtechd/phpredis.git
extension=redis.so  php.ini
php-fpm:
`[27-Apr-2018 08:19:57 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library "redis.so" (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: undefined symbol: compiler_globals_id), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0`

2.google look up the relevant information, and download different redis extension installation, or not, which god to help answer, thank you!

Mar.06,2021

my steps for installing php-redisd refer to (compile and install)

you can refer to it. Mine is the command of ubuntu. Just change it to the corresponding centos

.

Hello, look at the path of redis.so vaguely. The error message says it's a path error

.
Menu