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
Next revision Both sides next revision
litespeed_wiki:lsmcd:install-memcached [2018/11/28 21:58]
Jonathan Kagan
litespeed_wiki:lsmcd:install-memcached [2020/01/15 19:21]
Jackson Zhang
Line 55: Line 55:
 plesk bin php_handler --reread</​code>​ plesk bin php_handler --reread</​code>​
  
-And then graceful restart LSWS.+And then graceful restart LSWS and restart detached lsphp by ''​killall lsphp''​ or ''​pkill lsphp''​.
  
  
Line 74: Line 74:
 <​code>​yum install lsphp56-pecl-memcached lsphp70-pecl-memcached lsphp71-pecl-memcached lsphp72-pecl-memcached</​code>​ <​code>​yum install lsphp56-pecl-memcached lsphp70-pecl-memcached lsphp71-pecl-memcached lsphp72-pecl-memcached</​code>​
  
-And then graceful restart LSWS.+And then graceful restart LSWS and restart detached lsphp by ''​killall lsphp''​ or ''​pkill lsphp''​.
  
 ====For cPanel:==== ====For cPanel:====
  
 +===Centos===
 ===PHP7.0/​7.1/​7.2=== ===PHP7.0/​7.1/​7.2===
  
Line 91: Line 92:
 </​code>​ </​code>​
  
-And then graceful restart LSWS.+And then graceful restart LSWS and restart detached lsphp by ''​killall lsphp''​ or ''​pkill lsphp''​.
  
 ===PHP5.6=== ===PHP5.6===
Line 102: Line 103:
 </​code>​ </​code>​
  
-And then graceful restart LSWS+And then graceful restart LSWS and restart ​detached lsphp by ''​killall lsphp''​ or ''​pkill lsphp''​.
- +
-====Direct Admin==== +
- +
-===PHP7.0/​7.1/​7.2=== +
- +
-<​code>​yum install -y libmemcached-devel +
- +
-/​usr/​local/​php70/​bin/​pecl install memcached +
-/​usr/​local/​php71/​bin/​pecl install memcached +
-/​usr/​local/​php72/​bin/​pecl install memcached +
- +
-echo "​extension=memcached.so"​ > /​usr/​local/​php70/​lib/​php.conf.d/​20-memcached.ini +
-echo "​extension=memcached.so"​ > /​usr/​local/​php71/​lib/​php.conf.d/​20-memcached.ini +
-echo "​extension=memcached.so"​ > /​usr/​local/​php72/​lib/​php.conf.d/​20-memcached.ini +
-</​code>​ +
- +
-And then graceful ​restart ​LSWS. +
- +
-===PHP5.6=== +
- +
-<​code>​yum install -y libmemcached-devel +
- +
-/​usr/​local/​php70/​bin/​pecl install memcached-2.2.0 +
- +
-echo "​extension=memcached.so"​ > /​usr/​local/​php56/​lib/​php.conf.d/​20-memcached.ini +
-</​code>​ +
- +
-And then graceful restart LSWS.+
  
 ===Troubleshooting:​=== ===Troubleshooting:​===
Line 161: Line 134:
 echo "​memcached.so"​ > /​opt/​cpanel/​ea-php71/​root/​etc/​php.ini</​code>​ echo "​memcached.so"​ > /​opt/​cpanel/​ea-php71/​root/​etc/​php.ini</​code>​
  
-And then graceful restart LSWS.+And then graceful restart LSWS and restart detached lsphp by ''​killall lsphp''​ or ''​pkill lsphp''​.
  
 If you have further issues installing the extension on cPanel, please contact [[https://​cpanel.com/​support/​|cPanel support]]. If you have further issues installing the extension on cPanel, please contact [[https://​cpanel.com/​support/​|cPanel support]].
 +
 +===CloudLinux===
 +
 +<​code>​yum install ea-phpXX-php-memcached</​code>​
 +
 +Change ''​XX''​ to PHP version number , as php70, php71...etc
 +====Direct Admin====
 +
 +===PHP7.0/​7.1/​7.2===
 +
 +<​code>​yum install -y libmemcached-devel
 +
 +/​usr/​local/​php70/​bin/​pecl install memcached
 +/​usr/​local/​php71/​bin/​pecl install memcached
 +/​usr/​local/​php72/​bin/​pecl install memcached
 +
 +echo "​extension=memcached.so"​ > /​usr/​local/​php70/​lib/​php.conf.d/​20-memcached.ini
 +echo "​extension=memcached.so"​ > /​usr/​local/​php71/​lib/​php.conf.d/​20-memcached.ini
 +echo "​extension=memcached.so"​ > /​usr/​local/​php72/​lib/​php.conf.d/​20-memcached.ini
 +</​code>​
 +
 +And then graceful restart LSWS and restart detached lsphp by ''​killall lsphp''​ or ''​pkill lsphp''​.
 +
 +===PHP5.6===
 +
 +<​code>​yum install -y libmemcached-devel
 +
 +/​usr/​local/​php70/​bin/​pecl install memcached-2.2.0
 +
 +echo "​extension=memcached.so"​ > /​usr/​local/​php56/​lib/​php.conf.d/​20-memcached.ini
 +</​code>​
 +
 +And then graceful restart LSWS and restart detached lsphp by ''​killall lsphp''​ or ''​pkill lsphp''​.
 +
 ==== Verify PHP memcached extension ==== ==== Verify PHP memcached extension ====
  
  • Admin
  • Last modified: 2020/06/23 12:55
  • by Jackson Zhang