Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:redis [2020/03/03 13:57]
Jackson Zhang [Install Redis PHP extension]
litespeed_wiki:cache:redis [2020/03/03 14:22]
Jackson Zhang [Install Redis PHP extension]
Line 47: Line 47:
  
 === With DirectAdmin === === With DirectAdmin ===
-To install ​php-redis, you can use pecl to install it, similar ​to [https://help.directadmin.com/item.php?id=400|this]+DirecAdmin custombuild 2 will install ​phpxx to /​usr/​local/​phpxx, you can go to the version you want (such as php73) ​to build php-redis through pecl: 
 +   
 +  cd /usr/local/​php73/​bin 
 +  ​./pecl install igbinary igbinary-devel 
 +  ./pecl install redis 
 +   
 +Check the path of extensions. 
 +  ll /​usr/​local/​php73/​lib/​php/​extensions/​ 
 +  drwxr-xr-x 2 root root 76 Mar  3 14:05 no-debug-non-zts-20180731 
 +   
 +Then add both igbinary.so and redis.so to a newly created 10-directadmin.ini 
 +  vi /usr/​local/​php73/​lib/​php.conf.d/​10-directadmin.ini 
 +   
 +  extension=/​usr/​local/​php73/​lib/​php/​extensions/​no-debug-non-zts-20180731/​redis.so 
 +  extension=/​usr/​local/​php73/​lib/​php/​extensions/​no-debug-non-zts-20180731/​igbinary.so
  
 +Restart lsphp to make the change effective:  ​
 +  killall -9 lsphp
 +  ​
 === Without control panel === === Without control panel ===
   - Add the litespeed repository: \\ <​code>​rpm -ivh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el7.noarch.rpm</​code>​   - Add the litespeed repository: \\ <​code>​rpm -ivh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el7.noarch.rpm</​code>​
  • Admin
  • Last modified: 2020/11/14 16:28
  • by Lisa Clarke