Control Web Panel

WebPanel => Apache => Topic started by: yeknafar on July 29, 2018, 11:00:32 PM

Title: How can I install mod_cloudflare?
Post by: yeknafar 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
Title: Re: How can I install mod_cloudflare?
Post by: bullten on July 29, 2018, 11:16:06 PM
Dont run "yum install libtool httpd-devel"

rest steps are ok.
Title: Re: How can I install mod_cloudflare?
Post by: yeknafar 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"

Title: Re: How can I install mod_cloudflare?
Post by: studio4host on July 30, 2018, 01:43:32 PM
try to replace apxs with:

/usr/local/apache/bin/apxs
Title: Re: How can I install mod_cloudflare?
Post by: yeknafar 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 ~]#