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:
    15,147
    Likes Received:
    261
    Trophy Points:
    83
    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:
    15,147
    Likes Received:
    261
    Trophy Points:
    83
    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,419
    Likes Received:
    30
    Trophy Points:
    48
    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,419
    Likes Received:
    30
    Trophy Points:
    48
    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:
    567
    Likes Received:
    78
    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:
    26
    Likes Received:
    2
    Trophy Points:
    8
    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:
    34,399
    Likes Received:
    1,005
    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:
    34,399
    Likes Received:
    1,005
    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.
     
  16. caisc

    caisc Well-Known Member

    Joined:
    Oct 5, 2011
    Messages:
    68
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    found a guide here - Our technical resources | Cloudflare
    Problem is that after executing installer.sh when to go to EasyApache and choose to customize your profile you will not get 'Mod Cloudflare' anywhere.

    Although above instruction are for EasyApache3 but there must be some way to do it in EasyApache4 also.
     
    #16 caisc, Feb 15, 2017
    Last edited by a moderator: Feb 15, 2017
  17. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,399
    Likes Received:
    1,005
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The installer provided by CloudFlare on the following URL appears to offer support for EA4:

    mod_cloudflare/installer.sh at master · cloudflare/mod_cloudflare · GitHub

    Could you let us know the specific issue you are facing when installing it with EA4?

    Thank you.
     
  18. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,419
    Likes Received:
    30
    Trophy Points:
    48
    cPanel Access Level:
    Root Administrator
    Is Jacob not maintaining CloudFlare for EasyApache4 any more? His Github page is still up with instructions for it.

    Part of the issue with all of this cPanel documentation being scattered all over the place - how are we suppose to know when it is no longer valid? The same thing happened with the PHP-FPM pre cPanel 60 documentation.

    I've been using Jacob's repository for CloudFlare for many months on many different servers.
     
  19. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    34,399
    Likes Received:
    1,005
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello @sparek-3,

    That GitHub page is helpful and provided as a convenience, however it was never intended to be supported or linked on the official cPanel documentation. Thus, the link to that page was removed from our Documentation a few months ago to reflect this.

    Thank you.
     
  20. caisc

    caisc Well-Known Member

    Joined:
    Oct 5, 2011
    Messages:
    68
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Problem is that on a production server its not possible to do trials and testing?
    Second thing We use Cloudlinux on all our servers, so have to keep that in mind that solution fits with the OS also.

    Finally, why cpanel is not actively addressing these things? EA3 will be going to be depreciated soon then why not focus on EA4 and keep it updated with the upcoming feature demands.

    Thanks
     
Loading...

Share This Page