The downloaded archive must be unpacked to the directory where you want to run CNStats.
If you have downloaded ZIP archive:
Unzip it with pkunzip supporting long file names ( (pkzip25 или WinZIP). Additional information about ZIP archivers is available at http://www.pkware.com/.
pkzip25 -extract -dir cnstats10.zip
If you have downloaded TGZ archive, unpack it with a set of commands:
gunzip cnstats10.tgz tar -xf cnstats10.tar
Now< you have to go to /cnstats/install.php. If the server is configured correctly, you will see the form:
You have to fill in the following data:
After the form is filled in, the installation script will create or update database and display data for config.php creation. Create config.php in cnstats directory and copy that data to the file.
Attention: there should not be any symbols before <? and after ?> (even symbols of carriage return and line break).
You will also be provided with the counter code.
If you selected PHP include method (recommended), you need to insert the code at the beginning of your PHP-pages - before the place, where information output will start. It is necessary for correct Cookies settings and visitors counting.
If you chose graphic counter, you may insert it into any place, where it is convenient for you.
It is necessary to delete file install.php and go to /cnstats address. When you will have your password indicated in config.php submitted, you will be able to view statistics for your site.