KNOWNHOST WIKI

User Tools

Site Tools


vps-hosting:install-memcached-on-centos-7-with-cpanel

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
vps-hosting:install-memcached-on-centos-7-with-cpanel [2018/12/04 15:10]
Derrick B. [Installing PHP memcache modules]
vps-hosting:install-memcached-on-centos-7-with-cpanel [2019/10/11 16:55] (current)
Karson N.
Line 11: Line 11:
 ''​yum -y install libmemcached-devel memcached''​ ''​yum -y install libmemcached-devel memcached''​
  
-{{:​vps-hosting:​yum_begin.png?​direct&400|}}+{{:​vps-hosting:​yum_begin.png?​nolink&800|}}
  
 Note: This may install several dependencies that are needed for memcached to work correctly. Note: This may install several dependencies that are needed for memcached to work correctly.
  
-{{:​vps-hosting:​yum_end.png?​direct&400|}}+{{:​vps-hosting:​yum_end.png?​nolink&800|}}
  
 Once the install is finished, you can start the memcached service: Once the install is finished, you can start the memcached service:
Line 25: Line 25:
 ''​systemctl enable memcached''​ ''​systemctl enable memcached''​
  
-{{:​vps-hosting:​systemd_enable.png?​direct&400|}}+{{:​vps-hosting:​systemd_enable.png?​nolink&800|}}
  
 Your ConfigServer Security and Firewall (CSF) will likely notify you of an unknown process once it's been running for awhile. Since we know what this process is, and dont need to be notified by the firewall in the future, you need to add an ignore line in the Firewall'​s process ignore file, like so: Your ConfigServer Security and Firewall (CSF) will likely notify you of an unknown process once it's been running for awhile. Since we know what this process is, and dont need to be notified by the firewall in the future, you need to add an ignore line in the Firewall'​s process ignore file, like so:
Line 31: Line 31:
 <​code>​echo "​exe:/​usr/​bin/​memcached"​ >> /​etc/​csf/​csf.pignore</​code>​ <​code>​echo "​exe:/​usr/​bin/​memcached"​ >> /​etc/​csf/​csf.pignore</​code>​
  
-{{:​vps-hosting:​csf_pignore.png?​direct&400|}}+{{:​vps-hosting:​csf_pignore.png?​nolink&800|}}
  
 After this, restart CSF to register the changes: After this, restart CSF to register the changes:
Line 37: Line 37:
 ''​csf -ra''​ ''​csf -ra''​
  
-{{:​vps-hosting:​csf_restart.png?​direct&400|}}+{{:​vps-hosting:​csf_restart.png?​nolink&800|}}
  
 Now you'll need to modify the default configuration file for memcached, which is located at __/​etc/​sysconfig/​memcached__. You can modify this file with your favorite editor; I'll be using vim (''​nano''​ is another popular commandline editor). Now you'll need to modify the default configuration file for memcached, which is located at __/​etc/​sysconfig/​memcached__. You can modify this file with your favorite editor; I'll be using vim (''​nano''​ is another popular commandline editor).
Line 65: Line 65:
 </​code>​ </​code>​
  
-{{:​vps-hosting:​memcach_config.png?​direct&400|}}+{{:​vps-hosting:​memcach_config.png?​nolink&800|}}
  
 After you save your file, type the following command to restart both memcached and load the new configuration file: After you save your file, type the following command to restart both memcached and load the new configuration file:
Line 85: Line 85:
 ''​Enable memcache session handler support? [yes] :''​ ''​Enable memcache session handler support? [yes] :''​
  
-{{:​vps-hosting:​php56_option.png?​direct&400|}}+{{:​vps-hosting:​php56_option.png?​nolink&800|}}
  
 For PHP7__*__, the module is called ''​memcached''​. Replace the 0 with 1 or 2 for versions PHP71 and PHP72: For PHP7__*__, the module is called ''​memcached''​. Replace the 0 with 1 or 2 for versions PHP71 and PHP72:
Line 95: Line 95:
 ''​%%libmemcached directory [no] : no --disable-memcached-sasl%%''​ ''​%%libmemcached directory [no] : no --disable-memcached-sasl%%''​
  
-{{:​vps-hosting:​php7_option.png?​direct&400|}}+{{:​vps-hosting:​php7_option.png?​nolink&800|}}
  
 Memcached SASL is a security layer which adds authentication support to memcached'​s protocols - you don't need this, and it's not recommended in an environment where multiple domains are being served, and may be using memcached. Memcached SASL is a security layer which adds authentication support to memcached'​s protocols - you don't need this, and it's not recommended in an environment where multiple domains are being served, and may be using memcached.
Line 106: Line 106:
 </​code>​ </​code>​
  
-{{:​vps-hosting:​modules_confirm.png?​direct&400|}}+{{:​vps-hosting:​modules_confirm.png?​nolink&800|}}
  
 Once you confirm the modules are installed, you will need to restart apache with the following command, to ensure the modules are loaded: Once you confirm the modules are installed, you will need to restart apache with the following command, to ensure the modules are loaded:
vps-hosting/install-memcached-on-centos-7-with-cpanel.1543936229.txt.gz · Last modified: 2018/12/04 15:10 by Derrick B.