PHP 7 cannot load redis Extension

Source: Internet
Author: User
Tags redis download redis version zts
Run etcinit. the following dphp7-fpmrestart prompts Startingphp-fpm [07-Dec-201517: 46: 03] NOTICE: PHPmessage: PHPWarning: PHPStartup: Unabletoloaddynamiclibrary & #039; serverphp7libphpextensionsno -... run/etc/init. d/php7-fpm restart the following prompt

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 version redis-cli 2.6.17
Redis php extensions 2.2.7 (the latest http://pecl.php.net/package/redis download)

Reply content:

Run the following prompt for/etc/init. d/php7-fpm restart:

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 version redis-cli 2.6.17
Redis php extensions 2.2.7 (the latest http://pecl.php.net/package/redis download)

Https://github.com/edtechd/phpredis
Download this file, recompile it, and solve the problem.

Http://pecl.php.net/package/redis version here does not support PHP7.
If you want to use it, you should download this:
Https://github.com/phpredis/phpredis/archive/php7.zip

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.