Skip to content

Instantly share code, notes, and snippets.

@porjo
Last active February 6, 2020 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save porjo/515eb0886b67724d7dea1552a3bca6ad to your computer and use it in GitHub Desktop.
Save porjo/515eb0886b67724d7dea1552a3bca6ad to your computer and use it in GitHub Desktop.
how to install phpredis on Centos6 using pecl

How to install phpredis extension on Centos6 using pecl:

# Enable EPEL repository
yum install epel-release

# Install Autoconf v2.68
yum install autoconf268

# Install the extension
PHP_AUTOCONF=autoconf268 PHP_AUTOHEADER=autoheader268 pecl install redis

Then add extension=redis.so to php.ini. The output of php -i should include Redis Support => enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment