Collect and Analyze Web Stats with Piwik

Piwik is a  source, open (GPL) web real-time analysis software. It provides detailed reports about visitors on your website like: search engines,  keywords used, the language they speak, your popular pages .
Piwik is an alternative to Google Analytics, and is already used by more than 150,000 websites.
Piwik is an PHP MySQL software program that you can download and install on your own web server. At the end of installation process you will be given five minutes JavaScript code.
Simply copy and paste this tag on websites that wish to track  and access your reports real-time analysis.

You can Download the latest Piwik release and install it on your server. You will need at least PHP5.1 and MySQL to make piwik to work.

Install Piwik on Debian Squeeze:

Step1.  First we need to download the latest release of Piwik from http://piwik.org/latest.zip :

wget http://piwik.org/latest.zip

Step2. Then unzip the downloaded file. This will  create a “piwik” folder containing files and directories.

unzip latest.zip

Leave a Comment Continue Reading...

Quick install and config OpenVPN for Internet Access on Debian Squeeze

This bash script was cread for you to help you to set up a VPN that will let you do many things.

This bash script is based primarily on another tutorials, but I have updated and I added some more infos.

This is the script:

#!/bin/bash
# OpenVPN install script
# Tested on Debian Squeeze
# Please submit feedback and questions at contact@debian-tutorials.com

ip=`grep address /etc/network/interfaces | grep -v 127.0.0.1 | awk ‘{print $2}’`
apt-get update
apt-get install openvpn libssl-dev openssl
cd /etc/openvpn/
cp -R /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0/
chmod +rwx *
. ./vars
./clean-all
source ./vars

echo -e “\n\n\n\n\n\n\n” | ./build-ca
clear

1 Comment Continue Reading...

Example DNS Zone File for BIND9

Sample DNS zone file for BIND9 with a domain with two nameservers  ns1.example.com and ns2.example.com.

You can use this example to define your own name servers.Just make changes to the domain name and IP addresses.

Be sure to include first the following statement in named.conf:

zone "debian-tutorials.com" {
type master;
file "
debian-tutorials.com.db”;
}

The zone file looks like this:

$TTL 3D
$ORIGIN debian-tutorials.com.
@    IN    SOA    debian-tutorials.com.   contact@debian-tutorials.com. (
201108041
28800
7200
604800
86400 )

2 Comments Continue Reading...

How to purge Varnish cache

If you’re new varnish user, this is some words about varnish:

Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. Unlike other HTTP accelerators, such as squid, which began as a cache on the client, or Apache2, which is mainly an origin server, Varnish was designed from the ground up as an HTTP accelerator..

Now I will show you how to purge all the cache without restarting the daemon.
The following coomand will do this for you:

varnishadm -T 127.0.0.1:6082 url.purge .

Enjoy

Leave a Comment Continue Reading...

Some Useful Options for Rsync

Rsync is often used for backup systems, with options such as:

-A --acls       : preserve the ACL, if used

-X --xattrs     : preserve extended attributes, if used

-H --hard-links : detect and preserve hard links

-a --archive    : resources and preserve the usual attributes: symbolic links, devices and special files,
user and group ownership, permissions and schedules

In addition to these stock options, rsync has many other.

Each has its own recipe, but I’d like to share two useful features :

Leave a Comment Continue Reading...

Social Media

  
FeedBurner Subscribe



Categories

Page 10 of 32« First...891011122030...Last »
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
↑ Back to Top