1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
#!/bin/bash # # @copyright (c) 2013 phpBB Group # @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 # set -e function add_ext_to_php_ini { echo "extension=$1.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` } # redis git clone git://github.com/nicolasff/phpredis.git cd phpredis phpize ./configure make make install cd .. add_ext_to_php_ini 'redis' nk rel='vcs-git' href='ssh://git@git.mageia.org/software/drakx' title='drakx Git repository'/>