Skip to content

Instantly share code, notes, and snippets.

@SagaieNet
Last active May 8, 2017 16:07
Show Gist options
  • Save SagaieNet/5244582 to your computer and use it in GitHub Desktop.
Save SagaieNet/5244582 to your computer and use it in GitHub Desktop.
phpredis on Ubuntu 12
### INSTALL phpredis on Ubuntu 12 with nginx / php5-fpm
# Install php5-dev and dev tools git and php5-cli
$ sudo apt-get install build-essential git php5-dev php5-cli
# clone phpredis (https://github.com/nicolasff/phpredis)
$ git clone git://github.com/nicolasff/phpredis.git
# phpize & make
$ cd phpredis
$ phpize
$ ./configure
$ make
$ sudo make install
# Now configure php.ini in this case for nginx-fpm
$ echo "extension=redis.so" >> /etc/php5/fpm/conf.d/redis.ini
# restartphp5-fpm
$ sudo service php5-fpm restart
# check if redis install ok
$ php -i | grep Redis
# you should see :
# Redis Support => enabled
# Redis Version => x.x.x
@wangdx
Copy link

wangdx commented Jul 20, 2013

Thanks, great guide

@marlonfan
Copy link

great

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