Author Topic: How can I install mod_cloudflare?  (Read 7503 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How can I install mod_cloudflare?
« on: July 29, 2018, 11:00:32 PM »
Hello

 I used this code for it but my apache went down. (I fixed it)/ What's the correct way? Thanks
Code: [Select]
Option 3: Manual Installation: RedHat / CentOS / CloudLinux

mod_cloudflare has a few software dependencies that need to be installed first:

# yum install libtool httpd-devel
Next, you should download the mod_cloudflare source to your server:

# wget https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/mod_cloudflare.c
Finally, install the module. Depending on your system, the command to run might be apxs or apxs2. So, run one of the below two commands. If you get a 'Command not found' when running one, try the other:

# apxs -a -i -c mod_cloudflare.c
# apxs2 -a -i -c mod_cloudflare.c
I love CWP

Offline
***
Re: How can I install mod_cloudflare?
« Reply #1 on: July 29, 2018, 11:16:06 PM »
Dont run "yum install libtool httpd-devel"

rest steps are ok.

Offline
*
Re: How can I install mod_cloudflare?
« Reply #2 on: July 30, 2018, 09:19:58 AM »
Thanks dear Bullten

I did this:

# wget https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/mod_cloudflare.c


But when I use these commands:

# apxs -a -i -c mod_cloudflare.c
# apxs2 -a -i -c mod_cloudflare.c


It says " command not found"

I love CWP

Offline
*
Re: How can I install mod_cloudflare?
« Reply #3 on: July 30, 2018, 01:43:32 PM »
try to replace apxs with:

/usr/local/apache/bin/apxs
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: How can I install mod_cloudflare?
« Reply #4 on: July 30, 2018, 02:07:56 PM »
Thanks for your attention and reply.

How can I do that?
Code: [Select]
[root@srv1 ~]# /usr/local/apache/bin/apxs
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-v] [-S <var>=<val>] [<query> ...]
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] [-p] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
[root@srv1 ~]#
I love CWP