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.

Easy Apache Installing Mod_Cloudflare for Apache 2.4.x Cloudflare Services

Discussion in 'EasyApache' started by pmc, Mar 13, 2013.

  1. pmc

    pmc Member

    Joined:
    May 13, 2012
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This Install guide should take no more then 10 seconds if it does then you did something wrong.

    Code:
    cd /usr/local/src/
    
    
    wget https://raw.github.com/cloudflare/mod_cloudflare/master/mod_cloudflare_apache2_4.c
    
    
    apxs -a -i -c mod_cloudflare_apache2_4.c
    
    
    /usr/local/cpanel/bin/apache_conf_distiller --update
    
    
    httpd restart

    httpd -M

    Verify that modcloudflare is Loaded.

    That's it.

    Please improve or correct it where needed.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. Spetsnaz

    Spetsnaz Well-Known Member

    Joined:
    Jun 25, 2011
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    I get the following error
     
  4. cPanelJamyn

    cPanelJamyn Social Engineer
    Staff Member

    Joined:
    Jan 29, 2009
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    0
    At first glance, it looks like you're trying to apply an Apache 2.4 patch to Apache 2.2, which will not work. I just tested this patch against the Apache 2.4 shipped in EA 3.18.9 and it applied without error.
     
  5. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    I installed cloudflare plugin but is possible translate texts of plugin?
     
  6. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    URL returns a 404 ??


     
    #6 kernow, Aug 14, 2013
    Last edited: Aug 14, 2013
  7. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I found it in another location but still get the rc=65536 error. installed Apache is 2.4
    Code:
    # apxs -a -i -c mod_cloudflare_apache2_4.c
    /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_cloudflare_apache2_4.lo mod_cloudflare_apache2_4.c && touch mod_cloudflare_apache2_4.slo
    mod_cloudflare_apache2_4.c: In function 'cloudflare_modify_connection':
    mod_cloudflare_apache2_4.c:268: error: 'conn_rec' has no member named 'client_addr'
    mod_cloudflare_apache2_4.c:269: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:283: error: 'conn_rec' has no member named 'client_addr'
    mod_cloudflare_apache2_4.c:295: error: 'conn_rec' has no member named 'client_addr'
    mod_cloudflare_apache2_4.c:404: error: 'conn_rec' has no member named 'client_addr'
    mod_cloudflare_apache2_4.c:405: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:412: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:414: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:417: error: 'conn_rec' has no member named 'client_addr'
    mod_cloudflare_apache2_4.c:418: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:418: error: 'conn_rec' has no member named 'client_addr'
    mod_cloudflare_apache2_4.c:422: error: 'conn_rec' has no member named 'client_addr'
    mod_cloudflare_apache2_4.c:432: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:432: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:433: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:435: error: 'request_rec' has no member named 'useragent_ip'
    mod_cloudflare_apache2_4.c:435: error: 'conn_rec' has no member named 'client_ip'
    mod_cloudflare_apache2_4.c:436: error: 'request_rec' has no member named 'useragent_addr'
    mod_cloudflare_apache2_4.c:436: error: 'conn_rec' has no member named 'client_addr'
    apxs:Error: Command failed with rc=65536
     
  8. ethical

    ethical Well-Known Member

    Joined:
    Apr 7, 2009
    Messages:
    79
    Likes Received:
    2
    Trophy Points:
    8

    i also found in another location but also get an error with this? anyone have a solution??

    EDIT: ok well i grabbed a google cache version of the file from this old location https://raw.github.com/cloudflare/CloudFlare-Tools/master/mod_cloudflare_apache2_4.c (which is gone now??) and looks like it worked with that. let me know and I can send you the file if you want to try but check google cache

    John
     
    #8 ethical, Aug 16, 2013
    Last edited: Aug 16, 2013
  9. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    The default file now works with both Apache 2.2 and 2.4 but will fail with that error if you have varnish installed or remoteip. You can only have one, not both.
     
Loading...

Share This Page