Visitor Stats 2 logo Install. Visitor Stats 2

If you are currently using v1 or v1.1, please read this first.

If you are new to Visitor Stats, read on

Before we start, you must have access to a MySQL database on the website your website is hosted, and PHP running. To check if you have PHP & MySQL see the website faq's.

 
Ok, assuming you have both MySQL and PHP running on your website, follow these steps:

Unzip the Visitor Stats zip file and place the folder that is created ('visitor_stats'*) in your website's root directory.

* Visitor Stats will NOT WORK if you rename the folder or have the folder outside of the root directory

 
Open up the 'vistator_stats' folder and open the 'common.inc.php' file.

In this file all the generic settings for Visitor Stats are contained, and its a good idea to read through each one thoroughly.

 

1. Set your Timezone

To set your timezone, replace the "en-au" on line 13 with your country code, a list of these can be found here (under the heading 'Internet').

You can also change what country you are on line 18, but please ensure that "TZ=" remains.
E.g. "TZ=Australia/Sydney" or "TZ=India".

If this doesn't change your timezone, try using"GMT-9" or "GMT+10" etc

To test if your timezone change is successfull (and if you don't have the Web Counter installed, see bottom of page), type in your filename followed by '?show_timezone=Y'.
E.g. index.php?show_timezone=Y

 

2. Connect to your Database

Fill in your MySQL database settings such as DB_USER, DB_PASSWORD etc. on line 21 to 27.

You should also change the VS_SITENAME to a descriptive name of your site (e.g. yari_website) and VS_URL to your domain name (e.g. www.visitor-stats.com).

 

3. The rest all have good descriptions with them

 

Setup your MySQL Database

 
Setup your MySQL database by creating the tables and setting up a user (if you haven't already).

The exact settings are:

You can just copy all the text from this box and paste it into your 'Run SQL Query' box in PHPmyAdmin.

If you can't copy and paste this into your 'Run SQL Query' box because it's too big, please use the text file 'Visitor Stats 2 mysql import.txt' found in the '/readme/' folder.

 
Ok, the database is setup, and is just waiting for information... which we will give it from your website pages.
Let's setup your pages!