Unable to configure Railgun on cPanel/WHM even with cPanel module installed


I’m a registered Cloudflare hosting provider and I’d like to install Railgun throughout my servers although I’m encountering an issue when trying to set CloudflareRemoteIPTrustedProxy within the Include Editor in WHM.

The error I’m getting is:
The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf.d/includes/pre_main_global.conf.tmp.cfgcheck -C Include “/etc/apache2/conf.modules.d/*.conf”” command (process 6534) reported error number 1 when it ended. Configuration problem detected on line 1 of file /etc/apache2/conf.d/includes/pre_main_global.conf.tmp: Invalid command ‘CloudflareRemoteIPTrustedProxy’, perhaps misspelled or defined by a module not included in the server configuration — /etc/apache2/conf.d/includes/pre_main_global.conf.tmp — 1 ===> CloudflareRemoteIPTrustedProxy <=== — /etc/apache2/conf.d/includes/pre_main_global.conf.tmp —

I’ve done some Googling and older articles and posts suggest that mod_Cloudflare is not installed. For cPanel/WHM, I believe that the only current way to install mod_Cloudflare is done via installing the Cloudflare Addon for cPanel. That has been done successfully and that works, but not CloudflareRemoteIPTrustedProxy which I would need according to the documentation.

I was wondering whether anyone had any ideas on what I could do to resolve this error.


This issue is resolved now.