Control Web Panel

WebPanel => How to => Topic started by: Sandeep on February 23, 2017, 01:55:27 PM

Title: How to install Cloudflare module on Centos 7 Apache 2.4
Post by: Sandeep on February 23, 2017, 01:55:27 PM
use this commands for el7

yum install libtool git -y

git clone https://github.com/cloudflare/mod_cloudflare.git && cd mod_cloudflare

/usr/local/apache/bin/apxs -a -i -c mod_cloudflare.c

systemctl restart httpd && /usr/local/apache/bin/httpd -M|grep cloudflare
Title: Re: How to install Cloudflare module on Centos 7 Apache 2.4
Post by: zenben on February 01, 2018, 10:21:04 AM
Perfect.
Thank you!

Don't forget to remove the temporary/cloned directory afterwards:
Code: [Select]
cd ..
rm -rf mod_cloudflare
Title: Re: How to install Cloudflare module on Centos 7 Apache 2.4
Post by: hrvojeb on April 23, 2018, 10:02:00 AM

after this command:/usr/local/apache/bin/apxs -a -i -c mod_cloudflare.c

i got this error: apxs:Error: /usr/bin/apr-1-config not found!.

Title: Re: How to install Cloudflare module on Centos 7 Apache 2.4
Post by: monkeyking on July 20, 2018, 06:10:06 PM
Can I use this for "Apache & Varnish Cache & Nginx Reverse Proxy"?