-
-
Save wangdx/6044169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment