Step 1. konek ke root via ssh
root@server [~]#
Step 2. masuk ke direktori /usr/local/src:
root@server [~]# cd /usr/local/src
Step 3. download module mod_cloudflare:
root@server [/usr/local/src]# wget --no-check-certificate http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
Step 4. install pakai apache extensi mod_cloudflare:
root@server [/usr/local/src]# apxs -a -i -c mod_cloudflare.c
Step 5. Restart Apache:
root@server [/usr/local/src]# service httpd restart
Step 6. update konfigurasi apache :
root@server [/usr/local/src]# /usr/local/cpanel/bin/apache_conf_distiller --update
Install CloudFlare plugin untuk CPanel.
Step 1.
root@server [/usr/local/src]# curl https://www.cloudflare.com/downloads/cloudflare.tar.gz > cloudflare.tar.gz
Step 2. Extrak cloudflare.tar.gz
root@server [/usr/local/src]# tar -zxf cloudflare.tar.gz
This extracts a directory that includes a UNIQUE ID. For example, the directory will be in this format:
cloudflare-CloudFlare-CPanel-40cf7b2
The UNIQUE ID is only: 40cf7b2
The UNIQUE ID is not cloudflare-CloudFlare-CPanel-40cf7b2
Step 3.
root@server [/usr/local/src]# cd cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare/
Step 4.
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# ./install_cf API HOST KEY mod_cf “NAMA PERUSAHAAN”
Contoh untuk usaha hosting gatot: ./install_cf 56yt8x9s987dfy4324bnv mod_cf “Gatotkacahost.com”
Step 5. setelah instalasi selesai, akan tampil seperti ini :
CloudFlare module installed successfully
Step 6. untuk mengecek apakah sudah berhasil diinstall :
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# cat /usr/local/cpanel/etc/cloudflare.json
akan terlihat tampilan seperti ini :
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# cat /usr/local/cpanel/etc/cloudflare.json
{
“host_key”:”32yt5a7b436tuy8974tre -”, (sebagai contoh host key anda)
“host_formal_name”:”Awesome Hosting”,
“host_name”:”api.cloudflare.com”,
“host_uri”:”/host-*gw.html”,
“user_name”:”www.cloudflare.com”,
“user_uri”:”/api_json.html”,
“host_port”:”443”,
“host_prefix”:”cloudflare-*resolve-*to”,
“cp_version”:”1.3.0”
}
Step 7.
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# cd ../../
Step 8. hapus cloudflare-CloudFlare-CPanel-UNIQUE ID*
root@server [/usr/local/src]# rm -rf cloudflare-CloudFlare-CPanel-UNIQUE ID*
Clear.
Sebagai catatan, anda harus sudah memiliki Host_key yang diberikan oleh cloudflare sebagai mitra cloudflare.
Request via email untuk jadi partner-an ke CloudFlare nyaAPI HOST KEY
dapetnya dari mana Tuan?
jadi kita kontak CSnya buat minta API HOST KEY?Request via email untuk jadi partner-an ke CloudFlare nya
kok gini yah TuanStep 1. konek ke root via ssh
root@server [~]#
Step 2. masuk ke direktori /usr/local/src:
root@server [~]# cd /usr/local/src
Step 3. download module mod_cloudflare:
root@server [/usr/local/src]# wget --no-check-certificate http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
Step 4. install pakai apache extensi mod_cloudflare:
root@server [/usr/local/src]# apxs -a -i -c mod_cloudflare.c
Step 5. Restart Apache:
root@server [/usr/local/src]# service httpd restart
Step 6. update konfigurasi apache :
root@server [/usr/local/src]# /usr/local/cpanel/bin/apache_conf_distiller --update
Install CloudFlare plugin untuk CPanel.
Step 1.
root@server [/usr/local/src]# curl https://www.cloudflare.com/downloads/cloudflare.tar.gz > cloudflare.tar.gz
Step 2. Extrak cloudflare.tar.gz
root@server [/usr/local/src]# tar -zxf cloudflare.tar.gz
This extracts a directory that includes a UNIQUE ID. For example, the directory will be in this format:
cloudflare-CloudFlare-CPanel-40cf7b2
The UNIQUE ID is only: 40cf7b2
The UNIQUE ID is not cloudflare-CloudFlare-CPanel-40cf7b2
Step 3.
root@server [/usr/local/src]# cd cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare/
Step 4.
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# ./install_cf API HOST KEY mod_cf “NAMA PERUSAHAAN”
Contoh untuk usaha hosting gatot: ./install_cf 56yt8x9s987dfy4324bnv mod_cf “Gatotkacahost.com”
Step 5. setelah instalasi selesai, akan tampil seperti ini :
CloudFlare module installed successfully
Step 6. untuk mengecek apakah sudah berhasil diinstall :
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# cat /usr/local/cpanel/etc/cloudflare.json
akan terlihat tampilan seperti ini :
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# cat /usr/local/cpanel/etc/cloudflare.json
{
“host_key”:”32yt5a7b436tuy8974tre -”, (sebagai contoh host key anda)
“host_formal_name”:”Awesome Hosting”,
“host_name”:”api.cloudflare.com”,
“host_uri”:”/host-*gw.html”,
“user_name”:”www.cloudflare.com”,
“user_uri”:”/api_json.html”,
“host_port”:”443”,
“host_prefix”:”cloudflare-*resolve-*to”,
“cp_version”:”1.3.0”
}
Step 7.
root@server [/usr/local/src/cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare]# cd ../../
Step 8. hapus cloudflare-CloudFlare-CPanel-UNIQUE ID*
root@server [/usr/local/src]# rm -rf cloudflare-CloudFlare-CPanel-UNIQUE ID*
Clear.
Sebagai catatan, anda harus sudah memiliki Host_key yang diberikan oleh cloudflare sebagai mitra cloudflare.
root@srv4 [/usr/local/src]# wget --no-check-certificate http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
--2014-02-20 23:50:30-- http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
Resolving github.com... 192.30.252.130
Connecting to github.com|192.30.252.130|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c [following]
--2014-02-20 23:50:31-- https://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
Connecting to github.com|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.github.com/cloudflare/CloudFlare-Tools/master/mod_cloudflare.c [following]
--2014-02-20 23:50:32-- https://raw.github.com/cloudflare/CloudFlare-Tools/master/mod_cloudflare.c
Resolving raw.github.com... 103.245.222.133
Connecting to raw.github.com|103.245.222.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-02-20 23:50:34 ERROR 404: Not Found.