[SOLVED][Drupal] How to whitelist a process in csf?

| | 1 min read

Recently we had faced a problem in a Drupal site after installing Memcached on a server with CentOS and having csf as firewall. Memcache is a process which is always running in memory and the server is configured to send automated mails regarding this process. So we need to exclude this process from csf. If you are facing the same problem in your Drupal site and want to know how to whitelist a process in csf, then read on to get the solution

Steps to exclude memcached from csf

  1. Login as the root user in the server.
  2. Locate the csf configuration folder. Normally it is in
    /etc/csf
  3. Edit the csf process ignore file by using
    vi csf.pignore
  4. Next add the following line in csf.pignore file.
    exec /usr/bin/memcached 
  5. Restart csf using the following command.
    csf -r

These are the steps to white list a process from csf.