Home > Backend Development > PHP7 > body text

One trick to teach you how to solve the problem of not being able to load redis in php7

藏色散人
Release: 2023-02-18 08:50:02
forward
1760 people have browsed it

This article is provided by the PHP7 tutorial column to introduce to you how to solve the problem of not being able to load redis in php7. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

One trick to teach you how to solve the problem of not being able to load redis in php7

Specific problem description:

php7 cannot load the redis extension

Execute /etc/init.d/ php7-fpm restart prompts as follows

Starting php-fpm [07-Dec-2015 17:46:03] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/server/php7/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /server/php7/lib/php/extensions/no-debug-non-zts-20151012/redis.so: undefined symbol: zval_used_for_init in Unknown on line 0
redis版本 redis-cli 2.6.17
redis php 扩展版本 2.2.7 (http://pecl.php.net/package/redis 下载的最新的)
Copy after login

Solution:

so easy!

https://github.com/edtechd/phpredis

Download this, recompile, and the problem is solved!

The above is the detailed content of One trick to teach you how to solve the problem of not being able to load redis in php7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!