Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error installing mod_cloudflare

Discussion in 'General Discussion' started by YanoLoL, Apr 28, 2017.

Tags:
  1. YanoLoL

    YanoLoL Member

    Joined:
    Oct 15, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I need view original visitor IP when the user uses Cloudflare, i try install mod_cloudflare, but i had problems.

    In terminal i'm use this:
    Code:
    bash <(curl -s https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/EasyApache/installer.sh)
    But when retart my HTTPD retorn this error

    Code:
    [root@server ~]# /etc/init.d/httpd restart
    Stopping httpd:                                            [FAILED]
    Starting httpd: httpd: Syntax error on line 27 of /etc/apache2/conf/httpd.conf: Syntax error on line 1 of /etc/apache2/conf.modules.d/cloudflare.conf: Cannot load modules/mod_cloudflare.so into server: /etc/apache2/modules/mod_cloudflare.so: undefined symbol: ap_log_rerror
    
    I remove /etc/apache2/conf.modules.d/cloudflare.conf and i my HTTPD restart normal
     
  2. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    140
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Please try.

    Code:
    yum -y install ea-apache24-mod_remoteip
    Apache configuration > include editor > Pre Main Include

    Add and save the codes below.


    Code:
    <IfModule remoteip_module>
      RemoteIPHeader X-Forwarded-For
    </IfModule>
    <IfModule log_config_module>
      LogFormat "%{Referer}i -> %U" referer
      LogFormat "%{User-agent}i" agent
      LogFormat "%a %l %u %t \"%r\" %>s %b" common
      LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
      CustomLog logs/access_log combined
    </IfModule>

    mod_remoteip and mod_cloudflare do the same thing.
     
  3. YanoLoL

    YanoLoL Member

    Joined:
    Oct 15, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I try this and didn't work.
     
  4. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    605
    Likes Received:
    94
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    I'd reach out to CloudFlare to see if they can assist you with getting this module installed. It should work, but perhaps they had an issue in their installation script.
     
  5. YanoLoL

    YanoLoL Member

    Joined:
    Oct 15, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page