Skip to content

Instantly share code, notes, and snippets.

@jpalala
Forked from oleksandrilchuk/redis_xampp.sh
Last active April 18, 2021 07:39
Show Gist options
  • Save jpalala/7929f633cedbcb4661fe to your computer and use it in GitHub Desktop.
Save jpalala/7929f633cedbcb4661fe to your computer and use it in GitHub Desktop.
Install redis server and redis php extension for xampp(php 5.3).
sudo bash
wget http://redis.googlecode.com/files/redis-2.6.0.tar.gz
tar xzf redis-2.6.0.tar.gz
cd redis-2.6.0
make
sudo make install clean
# autostart in /etc/rc.local before "exit 0" add:
# /usr/local/bin/redis-server /etc/redis/redis.conf
sudo apt-get install php5-dev
git clone git://github.com/nicolasff/phpredis.git
cd phpredis
phpize
./configure
make
sudo -s make install
# add to php.ini extension="redis.so"
# server start
# redis-server /etc/redis/redis.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment