Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that redis cannot be loaded in php7

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to solve the problem that redis can not be loaded in php7". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem that redis cannot be loaded in php7".

Specific problem description:

Php7 failed to load redis extension

Execute / etc/init.d/php7-fpm restart the following prompts

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 0redis version redis-cli 2.6.17redis php extended version 2.2. 7 (the latest downloaded by http://pecl.php.net/package/redis)

Solution:

So easy!

Https://github.com/edtechd/phpredis

Download this, recompile, problem solved!

Thank you for reading, the above is the content of "how to solve the problem that redis cannot be loaded in php7". After the study of this article, I believe you have a deeper understanding of how to solve the problem that redis cannot be loaded in php7, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 289

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report