Peastat provides real-time summaries of recent user activity from your log file. More information about Peastat can be found here.
To install Peastat on your account, do the following:
- Download Peastat (pea.py.txt) from the website
- Open pea.py.txt in your favourite text editor
- Change the very first line (the shebang line)
#!/usr/bin/env pythonto#!/usr/local/bin/python(this is where python is located) - Change
logfile = "/Users/tomdyson/access_log"tologfile = "/home/USERNAME/logs/access_log"(don’t forget to change USERNAME to your TextDrive user name) - Change
rooturl = "http://throwingbeans.org"to include the URL of your website - Rename pea.py.txt to pea.py
- Upload pea.py to the cgi-bin of your TextDrive account (/home/USERNAME/cgi-bin/)
- Change the permissions of pea.py to 755 using either your ftp program or from the shell (chmod 755 pea.py)
- Finally, point your browser to http://yourdomain.tld/cgi-bin/pea.py (and don’t forget to bookmark it for later)
And that’s it, Peastat should now be installed on your site!
You can also access your stats from any Atom enabled newsreader by subscribing to the URL http://yourdomain.tld/cgi-bin/pea.py?atom=true
