https://centos.pkgs.org/7/ghettoforge-x86_64/fcgiwrap-1.1.0-1.gf.el7.x86_64.rpm.html
wget http://mirror.ghettoforge.org/distributions/gf/el/7/gf/x86_64/gf-release-7-10.gf.el7.noarch.rpm
rpm -Uvh gf-release-*.rpm
yum --enablerepo=gf install fcgiwrap
location /testpath {
gzip off;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param DOCUMENT_ROOT /home/helper;
fastcgi_param SCRIPT_FILENAME /path/to/script_file;
include /etc/nginx/fastcgi_params;
}
fcgiwrap -f -s unix:/var/run/fcgiwrap.socket &
chmod a+rw /var/run/fcgiwrap.socketo
chmod a+rx /path/to/script_file