Changes between Version 16 and Version 17 of PiwikServer


Ignore:
Timestamp:
06/29/11 12:30:16 (5 years ago)
Author:
chris
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PiwikServer

    v16 v17  
    9494}}} 
    9595 
    96 === GA Import  and Python === 
     96=== Python === 
    9797 
    98 For the Google Analytics data import we need Python 2.6 and we are running with Python 2.5.2, so [http://evan.borgstrom.ca/post/845359613/python-2-6-on-debian-lenny-5-0 following this]: 
     98For the Google Analytics data import we need Python 2.6 and we are running with Python 2.5.2, so [http://evan.borgstrom.ca/post/845359613/python-2-6-on-debian-lenny-5-0 following this] a source compile was done on the dev server, however for the live server it would make more sense to follow [http://www.fps-gamer.net/installing-python-2-6-on-debian-lenny/ these instructions and use the debs from testing perhaps]: 
    9999 
    100100{{{ 
     
    107107make 
    108108make install  
     109ln -s /usr/local/lib/libpython2.6.so* /usr/lib/ 
     110cd /usr/local/src 
     111wget 'http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e' 
     112tar zxvf setuptools-0.6c11.tar.gz 
     113cd setuptools-0.6c11 
     114python setup.py install 
     115cd /usr/local/src 
     116wget "https://gdata-python-client.googlecode.com/files/gdata-2.0.14.tar.gz" --no-check-certificate 
     117tar -zxvf gdata-2.0.14.tar.gz 
     118cd gdata-2.0.14 
     119python setup.py install 
     120purge python-mysqldb 
     121wget "http://downloads.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz" 
     122tar -zxvf MySQL-python-1.2.3.tar.gz  
     123cd MySQL-python-1.2.3 
     124vim site.cfg 
     125 mysql_config = /usr/bin/mysql_config 
     126aptitude install libmysqlclient-dev 
     127python setup.py build 
     128python setup.py install 
    109129}}} 
     130 
     131=== GA Import === 
     132 
     133See python notes above and [http://clearcode.cc/offer/open-source-projects/google2piwik/ Google2Piwik]. 
     134 
     135{{{ 
     136cd /web/piwik.transitionnetwork.org/ 
     137wget http://clearcode.cc/google2piwik-1.2.5.tgz 
     138tar -zxvf google2piwik-1.2.5.tgz 
     139cd google2piwik-1.2.5 
     140cp google2piwik.conf.sample google2piwik.conf 
     141}}} 
     142 
     143Edit {{{google2piwik.conf}}}: 
     144 
     145{{{ 
     146## Google Account Credentials 
     147# If you don't know your site table_id type: 
     148#                       ./google2piwik.py -p 
     149[google] 
     150user_login = XXX@gmail.com 
     151user_pass  = XXX 
     152table_id   = ga:XXX 
     153 
     154# MySQL Piwik Database configuration 
     155[mysql] 
     156db = piwik 
     157host = localhost 
     158port = 3306 
     159user = piwik 
     160passwd = XXX 
     161table_prefix =  
     162 
     163# Set export date range 
     164[export] 
     165start = 2011-05-01 
     166end   = 2011-06-29 
     167 
     168## Piwik configuration of site. 
     169# For default Piwik installation with one website, site_id should be set to 1 
     170[piwik] 
     171site_id  = 1 
     172site_url = http://www.transitionnetwork.org 
     173}}} 
     174 
    110175 
    111176== Requirements ==