Author Topic: How to install Nginx's nginx-cache-purge module? (cwp-el7-latest)  (Read 5979 times)

0 Members and 1 Guest are viewing this topic.


Thanks a lot for creating such great product, the latest cwp-el7-latest on CentOS7 is good!

My question is, I selected Apache & Nginx Reverse Proxy in the "Apache Settings =>  Select WebServers", how can I install/activate the Nginx's nginx-cache-purge module? (So when CMS post edit/change, I can purge Nginx cache)  Currently it looks like nginx-cache-purge module is not installed/enabled.


[centos@panel nginx]$ nginx -V 2>&1 | grep nginx-cache-purge -o
[centos@panel nginx]$ nginx -V 2>&1
nginx version: nginx/1.10.3
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/ --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-file-aio --with-threads --with-ipv6 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie'

Re: How to install Nginx's nginx-cache-purge module? (cwp-el7-latest)
« Reply #1 on: March 08, 2017, 09:03:34 AM »
In nginx install you had to go to:


sudo rm -rf *
in that directory. If you know the path to your nginx install and can find the cache directory the same may work for you. Be very careful with the rm -rf command, if you are in the wrong directory you could delete your entire hard drive.