Control Web Panel
WebPanel => Apache => Topic started 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
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
-
Dont run "yum install libtool httpd-devel"
rest steps are ok.
-
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"
-
try to replace apxs with:
/usr/local/apache/bin/apxs
-
Thanks for your attention and reply.
How can I do that?
[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 ~]#