Suggested Way To Install mod_cloudflare On CentOS / DA

1024kb

Verified User
Joined
Jun 25, 2014
Messages
44
I am wanting to install the mod_cloudflare plugin that is provided by CloudFlare (documentation on installation is here)

My question is rather simple, but I'm curious - would I follow the instructions provided by CloudFlare to install? Or would I need to do something in the custombuild/configure/custombuild/configure.phpXX file and rebuild?

I've also seen (in this thread) that this person successfully installed it via "apxs2 -a -i -c mod_cloudflare_apache2_4.c".

So I'm just looking for the preferred method in getting this installed and implemented if anyone has any ideas.

Thanks!

Edit: Centos 6.8 specifically
 
Does anyone have any experiencing with the above? Using the --enable-mod_cloudflare seemed to have caused an error when building so I had to revert my changes.
 
Still having issues with the above recommended way of handling this. Could someone help? It would be greatly appreciated. Thanks!
 
Hello,

Feel free to install it using guides you are referring to, and update us with your results.
 
Hello,

Feel free to install it using guides you are referring to, and update us with your results.

Well what I'm trying to figure out as the topic asks is the suggested way. I see multiple ways of doing this. Would you recommend me installing it via the command I mentioned in the original topic, "apxs2"? Or do it the way that the user scsi suggested? I ask because I tried it scsi's way (as I mentioned above) and when I attempted to rebuild with "--enable-mod_cloudflare" it failed. I can attempt this again to reproduce the error and post it here if that is needed? However I'm cautious to use the "apxs2" command because I'm not sure how/where all that installs the module to, so if I cause a problem it's not as easy to revert changes as it is when using CustomBuild.
 
Last edited:
I went ahead and attempted to rebuild it via scsi's suggested way and it didn't fail to build this time. However httpd -M (or phpinfo) doesn't show the CloudFlare module as present. I added --enable-mod_cloudflare to the cofigure.apache file and made sure to not include the trailing \ since it's the last line in the config. This is a shortened version of what it looks like.

Code:
/usr/local/directadmin/custombuild/configure/ap2/configure.apache

Code:
#!/bin/sh
"./configure" \
        "--prefix=/etc/httpd" \
        "--exec-prefix=/etc/httpd" \
        "--bindir=/usr/bin" \
        ...
        ...
        "--enable-rewrite" \
        "--enable-proxy" \
        "--enable-expires" \
        "--enable-reqtimeout" \
        "--with-ssl=/usr" \
        "--enable-headers" \
        "--enable-mod_cloudflare"
 
Back
Top