Difference between revisions of "AWFFull"

From YobiWiki
Jump to navigation Jump to search
m (Reverted edits by JasonAnderson (talk) to last revision by PhilippeTeuwen)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[http://www.stedee.id.au/awffull/ AWFFull Homepage]
 
[http://www.stedee.id.au/awffull/ AWFFull Homepage]
   
apt-get install libgd2-xpm
+
apt-get install awffull libgd2-xpm
   
  +
Geolocalisation? cf [[GeoIP]]
install also fontconfig-config libfontconfig1 libxpm4 ttf-dejavu and suggest libgd-tools
 
   
  +
see an Apache example in http://www.justbiit.com/awffull/ or Zope in http://www.justbiit.com/zawffull/ or Plone in http://www.justbiit.com/pawffull/
libgd-tools suggests to install :
 
libgd2-noxpm-dev libgd2-xpm-dev
 
   
  +
Don't forget to point to the right log file : /var/log/apache2/access.log in the /etc/awffull/awffull.conf
but I have an error message :
 
The following packages have unmet dependencies:
 
libgd2-noxpm-dev: Depends: libgd2-noxpm (= 2.0.33-5.2) but it is not going to be installed
 
Conflicts: libgd2-xpm-dev but 2.0.33-5.2 is to be installed
 
libgd2-xpm-dev: Conflicts: libgd2-noxpm-dev but 2.0.33-5.2 is to be installed
 
E: Broken packages
 
   
  +
Cheers on the cake : You are using different webservers like apache, zope, plone, etc.. and you would like to have statistics for each one :
------
 
  +
cd /etc/awffull
The PCRE Library
 
  +
cp /etc/awffull/awffull.conf /etc/awffull/zawffull.conf
apt-get install libpcre-ocaml
 
  +
cp /etc/awffull/awffull.conf /etc/awffull/pawffull.conf
it suggests also ocaml-base-nox
 
  +
Edit pawffull.conf for Plone
The following NEW packages will be installed: libpcre-ocaml ocaml-base-nox
 
  +
LogFile /var/log/zope2.9/plone-site/Z2.log
------
 
  +
OutputDir /var/www/pawffull
libpng image library is not available via apt-get
 
  +
Edit zawffull.conf for Zope
[http://www.libpng.org/pub/png/ libpng image library]
 
  +
LogFile /var/log/zope2.9/zope/Z2.log
------
 
  +
OutputDir /var/www/zawffull
[http://www.zlib.net/ zlib compression library]
 
  +
Create the output directory
apt-get install zlib1g
 
  +
mkdir /var/www/zawffull
------
 
  +
mkdir /var/www/pawffull
[http://www.maxmind.com/app/c GeoIP Country detection]
 
  +
That is it, the /etc/cron.daily/awffull will execute each .conf file of the /etc/awffull directory !
wget http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.0.tar.gz
 
  +
awffull -c /etc/awffull/awffull.conf
 
  +
awffull -c /etc/awffull/zawffull.conf
./configure
 
  +
awffull -c /etc/awffull/pawffull.conf
make
 
make check
 
make install
 
Usage :this following sample code looks up the country code by IP address:
 
#include <GeoIP.h>
 
int main (int argc, char *argv[]) {
 
GeoIP * gi;
 
gi = GeoIP_new(GEOIP_STANDARD);
 
printf("code %s\n",
 
GeoIP_country_code_by_name(gi, "yahoo.com"));
 
}
 
 
To compile this example,
 
run gcc -lGeoIP example.c.
 
 
For additional examples, see test/test-geoip.c and apps/geoiplookup.c.
 

Latest revision as of 16:02, 2 March 2016

AWFFull Homepage

apt-get install awffull libgd2-xpm

Geolocalisation? cf GeoIP

see an Apache example in http://www.justbiit.com/awffull/ or Zope in http://www.justbiit.com/zawffull/ or Plone in http://www.justbiit.com/pawffull/

Don't forget to point to the right log file : /var/log/apache2/access.log in the /etc/awffull/awffull.conf

Cheers on the cake : You are using different webservers like apache, zope, plone, etc.. and you would like to have statistics for each one :

cd /etc/awffull
cp /etc/awffull/awffull.conf /etc/awffull/zawffull.conf
cp /etc/awffull/awffull.conf /etc/awffull/pawffull.conf

Edit pawffull.conf for Plone

LogFile /var/log/zope2.9/plone-site/Z2.log
OutputDir /var/www/pawffull

Edit zawffull.conf for Zope

LogFile /var/log/zope2.9/zope/Z2.log
OutputDir /var/www/zawffull

Create the output directory

mkdir /var/www/zawffull
mkdir /var/www/pawffull

That is it, the /etc/cron.daily/awffull will execute each .conf file of the /etc/awffull directory !

awffull -c /etc/awffull/awffull.conf
awffull -c /etc/awffull/zawffull.conf
awffull -c /etc/awffull/pawffull.conf