mod_cloudflare and easyapache4
Is there a nice walkthrough on how to get mod_cloudflare up and running with easyapache4?
-
Are you having some sort of issue with the documentation here? Resources and downloads | CloudFlare | The web performance & security company 0 -
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/ 0 -
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. 0 -
Please feel free to open a ticket about this if you like, or, you might want to stick with EA3 for now. 0 -
Why not just /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?0 -
/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. 0 -
Do you have ea-apache24-devel installed? rpm -qa | grep ea-apache24-devel0 -
no, it doesn't come with easyapache4? 0 -
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. 0 -
That is almost correct: you have to prefix the "modname" (-e) for it to work. From the documentation: [QUOTE="apxs - APache eXtenSion tool"> This explicitly sets the module name for the -i (install) and -g (template generation) option. Use this to explicitly specify the module name. For option -g this is required, for option -i the apxs tool tries to determine the name from the source or (as a fallback) at least by guessing it from the filename.
That's it :) Best wishes, -k0nslWhy not just
/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?0 -
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. 0 -
Hello @Anthony Parsons, Thank you for pointing this out. It looks like the link you provided is no longer active, however you can find the updated document at: Apache Module: CloudFlare - cPanel Knowledge Base - cPanel Documentation Thanks! 0 -
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 Hello @Anthony Parsons, Thank you for pointing this out. It looks like the link you provided is no longer active, however you can find the updated document at:
0 -
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. 0 -
found a guide here - Our technical resources | Cloudflare Option 2: Installation on cPanel Servers cPanel uses a system known as EasyApache to rebuild Apache httpd during updates or certain configuration changes. The below instructions will integrate mod_cloudflare support into EasyApache so that it can be easily included from the cPanel web interface and remain activated in Apache httpd after rebuilds. Note: credit for this perl script goes to Tyler Larson at tltech.com. # wget ) Next, you can use EasyApache, choose to customize your profile, then, on the 'Short Options List' screen, checkbox the 'Mod Cloudflare' feature, and click 'Save and Build'.
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.0 -
Although above instruction are for EasyApache3 but there must be some way to do it in EasyApache4 also.
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.0 -
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. 0 -
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. 0 -
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 0 -
Hello @caisc CloudFlare is an independent company, and already develops a plugin for cPanel, so it's typically advised to have the developer of the plugin address any issues that's preventing it from working as expected. That said, there is a feature request on the following URL if you have feedback on this topic to provide to our Development team: Cloudflare Plugin Inside cPanel Thank you. 0 -
Please help, I'm unable to uninstall @cPJacob 's ea-apache24-mod_cloudflare, which is here: GitHub - JPerkster/ea-apache24-mod_cloudflare I tried to uninstall it using the following command: yum remove ea-apache24-mod_cloudflare However, when I uninstalled it apache would no longer start. The only way to make apache run again was to reinstall ea-apache24-mod_cloudflare. I would like to get things back to normal again, before I installed this. Any ideas? Does @cPJacob have any insight into how to fix this? Thank you for your help. 0 -
However, when I uninstalled it apache would no longer start.
Hello, Could you let us know the specific error message that appeared in /usr/local/apache/logs/error_log when attempting to start Apache? Thank you.0 -
Could you let us know the specific error message that appeared in /usr/local/apache/logs/error_log when attempting to start Apache?
Thanks for responding, @cPanelMichael There is no corresponding error message in that log during the time of the problem. However, the following series of unusual messages appears in var/log/messages at the time of the problem: Feb 28 20:50:18 myt restartsrv_httpd: httpd: Syntax error on line 205 of /etc/apache2/conf/httpd.conf: Syntax error on line 1 of /etc/apache2/conf.d/cloudflare.conf: Cannot load /usr/lib64/apache2/modules/mod_cloudflare.so into server: /usr/lib64/apache2/modules/mod_cloudflare.so: cannot open shared object file: No such file or directory Feb 28 20:50:18 myt systemd: httpd.service: control process exited, code=exited status=1 Feb 28 20:50:18 myt systemd: Failed to start Apache web server managed by cPanel EasyApache. Feb 28 20:50:18 myt systemd: Unit httpd.service entered failed state. Feb 28 20:50:18 myt systemd: httpd.service failed. This same series of messages appeared each time that I attempted to restart apache. Once I reinstalled @cPJacob 's ea-apache24-mod_cloudflare, the problem went away. Any ideas?0 -
mv /etc/apache2/conf.d/cloudflare.conf /etc/apache2/conf.d/cloudflare.conf.bad The removal of the cloudflare package isn't removing the cloudflare configuration in Apache. I don't know if that's by design or an error with something some where. 0 -
mv /etc/apache2/conf.d/cloudflare.conf /etc/apache2/conf.d/cloudflare.conf.bad The removal of the cloudflare package isn't removing the cloudflare configuration in Apache. I don't know if that's by design or an error with something some where.
Hello, Thank you for sharing that workaround. Note the ea-apache24-mod_cloudflare is not a supported module. It was documented for a brief period of time, but removed shortly thereafter as it's primarily exists as a proof-of-concept. Thank you.0 -
mv /etc/apache2/conf.d/cloudflare.conf /etc/apache2/conf.d/cloudflare.conf.bad The removal of the cloudflare package isn't removing the cloudflare configuration in Apache. I don't know if that's by design or an error with something some where.
Thank you for replying, @sparek-3. Do you have any suggestions as to how I can successfully uninstall the ea-apache24-mod_cloudflare module, without breaking Apache? EDIT: Oops, I see that you gave me a command to fix the issue. My eyes skipped over that. Thanks for the fix!0
Please sign in to leave a comment.
Comments
28 comments