Mod_cloudflare with cPanel and EasyApache 4

mod_cloudflare

#1

This is the link I am using to get the original IP addresses of visitors to our website.

https://www.cloudflare.com/technical-resources/#mod_cloudflare

Under the Option 2 everything works up to the last comment:

Next, you can use EasyApache, choose to customize your profile, then, on the ‘Short Options List’ screen, checkbox the ‘Mod Cloudflare’ feature, and click ‘Save and Build’.

In WHM I go to EasyApache but there is nothing there with the name “Short Options List” and if I search for mod_cloudflare, nothing is returned.

Any ideas?


#2

It looks alphabetical. mod_cloudflare isn’t earlier in the list? Nothing under Apache Modules?


#3

Yes, it is alphabetical. But nothing there either.


#4

My first guess is you don’t have mod_cloudflare installed/enabled. What happened when you ran the install script? Was there some indication of success?


#5

This is what it says and then I run the restart from WHM.

[[email protected] ~]# wget https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/EasyApache/installer.sh
–2018-07-03 04:43:17-- https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/EasyApache/installer.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3413 (3.3K) [text/plain]
Saving to: ‘installer.sh.1’

100%[===================================================================================================================================================>] 3,413 --.-K/s in 0s

2018-07-03 04:43:17 (28.8 MB/s) - ‘installer.sh.1’ saved [3413/3413]

[[email protected] ~]# bash installer.sh

Installing mod_cloudflare for EasyApache 4 on ‘CentOS 7’

Done. Please restart EasyApache 4


#6

Did you Restart EasyApache 4?

(not just go back to that screen. You’ll to stop/start or restart that server process on your host machine)


#7

twice. Under Restart Services\HTTP Server (Apache)


#8

Here’s a post with a similar problem and then a solution that seemed to work:


#9

I am not sure what the solution was after reading that thread. If it is deleting files using SSH Root and then rebuilding stuff, that is beyond my capability.


#10

Sorry, I just read all the instructions, only to see it no longer works.

A last ditch effort would be to reboot the machine and see if that picks up the new module. Otherwise, maybe someone will see this thread and figure out what’s wrong.


#11

No luck with the graceful reboot. Thanks for trying.


#12

For some strange reason, that graceful reboot changed the POP server name and shut down incoming email. No idea why that would have happened.