Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => all application on unix knowledges by golfreeze => Topic started by: golfreeze on เมษายน 13, 2017, 11:43:20 AM

Title: redis on php5 Centos 6
Post by: golfreeze on เมษายน 13, 2017, 11:43:20 AM
##redis on php5 Centos 6 for directadmin
http://stackoverflow.com/questions/22834666/install-redis-server-in-centos6-how
https://gist.github.com/nghuuphuoc/7801123
https://github.com/phadej/igbinary

##Redis for wordpress
https://www.unixmen.com/speed-wordpress-using-redis-varnish-ubuntu/
https://troubleshootguru.wordpress.com/2014/11/19/how-to-install-redis-on-a-centos-6-5-centos-7-0-server-2/

// --- Compiling ---
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install

// --- or using yum ---
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

$ yum --enablerepo=remi,remi-test install redis

$ sudo nano /etc/sysctl.conf
  vm.overcommit_memory=1
$ sysctl vm.overcommit_memory=1

$ sysctl -w fs.file-max=100000

$ chkconfig --add redis
$ chkconfig --level 345 redis on
$ service redis start/stop/restart

// Install php-redis extension
$ yum --enablerepo=remi,remi-test install php-redis

// If it does not work, try the following steps:
$ wget https://github.com/nicolasff/phpredis/zipball/master -O phpredis.zip
$ unzip phpredis.zip
$ cd nicolasff-phpredis-*
$ phpize
$ ./configure
$ make
$ make install
   Installing shared extensions:     /usr/lib64/php/modules/