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.

mod_cloudflare and easyapache4

Discussion in 'EasyApache' started by swany, Jan 14, 2016.

Tags:
  1. swany

    swany Member

    Joined:
    Sep 21, 2011
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Is there a nice walkthrough on how to get mod_cloudflare up and running with easyapache4?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. swany

    swany Member

    Joined:
    Sep 21, 2011
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    yes

    I'm trying to use easyapache4, so Installing mod_cloudflare on cPanel doesn't work,

    Option 3: Manual Installation: RedHat / CentOS / CloudLinux

    apxs doesn't appear to exist in /usr/local/apache/bin/
     
    #3 swany, Jan 15, 2016
    Last edited by a moderator: Jan 15, 2016
  4. swany

    swany Member

    Joined:
    Sep 21, 2011
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Any updates for this?

    apxs isn't in /usr/local/apache/bin/ when using easyapache4

    the rpm doesn't install as it things httpd isn't installed

    the script is for easyapache 3 and i'm not running debian.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please feel free to open a ticket about this if you like, or, you might want to stick with EA3 for now.
     
  6. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Why not just

    Code:
    /usr/bin/apxs -i -c -Wl,lz mod_cloudflare.c
    One of the complaints I always had with EasyApache. Why does everything have to go through EasyApache?
     
  7. swany

    swany Member

    Joined:
    Sep 21, 2011
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    /usr/bin/apxs doesn't exist. I installed the All PHP Options + OpCache option in easyapache4 and it doesn't include apxs from what i can see.
     
  8. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Do you have ea-apache24-devel installed?

    Code:
    rpm -qa | grep ea-apache24-devel
     
  9. swany

    swany Member

    Joined:
    Sep 21, 2011
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    no, it doesn't come with easyapache4?
     
  10. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    apxs comes in with the ea-apache24-devel package. Simply yum install that package and you'll have apxs so you can load mod_cloudflare.
     
    swany likes this.
  11. k0nsl

    k0nsl Member

    Joined:
    Oct 3, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    That is almost correct: you have to prefix the "modname" (-e) for it to work.

    From the documentation:

    That's it :)

    Best wishes,
    -k0nsl

     
  12. Anthony Parsons

    Anthony Parsons Active Member

    Joined:
    Aug 4, 2016
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    For anyone else looking for the easyapache 4 instructions that work correctly, see: [Removed - No Longer Working]

    Once done, you will then see mod_cloudflare in your software >> easyapache4 >> customise currently installed package >> server modules.

    That was painful to find, but found it... especially when this forum page result is the #1 in Google, and I had to keep looking through results to find the above link.
     
    #12 Anthony Parsons, Aug 11, 2016
    Last edited by a moderator: Aug 15, 2016
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  14. k0nsl

    k0nsl Member

    Joined:
    Oct 3, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I don't need your link as I already have mod_cloudflare installed without any issue, but I would just like to point out that your link is no longer working. It returns:

    "Page Deleted"

    Best wishes,
    -k0nsl


     
  15. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello @k0nsl,

    The document was removed as those instructions are not valid for EasyApache 4. The workaround suggested in the previous posts to this thread will allow for the installation to proceed. I recommend opening a support request directly with CloudFlare to request an update to the installer to allow for the automatic configuration of the Apache module with EasyApache 4.

    Thank you.
     
Loading...

Share This Page