apxs cannot install mod_cloudflare on centos
Solution 1:
Fetch the RPM for your platform from https://www.cloudflare.com/resources-downloads: https://github.com/downloads/cloudflare/mod_cloudflare/mod_cloudflare-1.1.1-1.i586.rpm (32bit) and https://github.com/downloads/cloudflare/mod_cloudflare/mod_cloudflare-1.1.1-1.x86_64.rpm (64bit)
Install: rpm -ivh mod_cloudflare-1.1.1-1.*
Edit /etc/httpd/conf/httpd.conf
LoadModule cloudflare_module /usr/lib64/apache2/mod_cloudflare.so
<IfModule mod_cloudflare.c>
CloudFlareRemoteIPHeader CF-Connecting-IP
CloudFlareRemoteIPTrustedProxy 204.93.240.0/24 204.93.177.0/24 199.27.128.0/21 173.245.48.0/20 103.22.200.0/22 141.101.64.0/18 108.162.192.0/18
#DenyAllButCloudFlare
</IfModule>
On 32bit change lib64
to lib