Skip to content
sjnims edited this page Sep 14, 2010 · 2 revisions

Welcome to the CloudFlare-Tools wiki!

How to install on Ubuntu 10.04 using git:
The following is a repost from the Cloud Flare Knowledgebase (http://support.cloudflare.com/cgi/discussions/problems/313-cffeedback-technical-steve-nims)…

1.) In my home directory on my server, I created a directory to save the pull from the Cloud Flare git repository, initialized an empty local git repository, added the remote, and pulled the master branch to my directory:

cd ~/
mkdir mod_cloudflare.c
cd mod_cloudflare.c
sudo git init
sudo git remote add origin http://github.com/cloudflare/CloudFlare-Tools.git
sudo git pull origin master

2.) After git downloaded the files from the repository, I ran the following apxs2 command:

sudo apxs2 -c mod_cloudflare.c

-This creates the .libs directory where the compiled module is located

3.) Next I copied the mod_cloudflare.so file from the .libs directory to the location apache stores modules and changed permissions on the file:

cd .libs
sudo cp mod_cloudflare.so /usr/lib/apache2/modules/
sudo chmod 644 /usr/lib/apache2/modules/mod_cloudflare.so

4.) I wanted to be able to use the a2enmod/a2dismod commands so I created a file in /etc/apache2/mods-available named “cloud_flare” with the following text inside said file:

LoadModule cloudflare_module /usr/lib/apache2/modules/mod_cloudflare.so

5.) I enabled the module and restarted apache:

sudo a2enmod cloud_flare
sudo /etc/init.d/apache2 restart

Clone this wiki locally