Note: CNStats new versions appear 2-4 times a year. Versions numeration is successive - 2.1, 2.2, 2.3 etc.
NB: The update should be performed consequently, passing through each version.
For instance, while updating 2.1 to 2.5 you should obligatory update 2.1 to 2.2, then 2.2 to 2.3, 2.3 to 2.4 and 2.4 to 2.5. This is concerned with essential changes in the database structure. The updating algorithm is equal for all versions.
1. Download new version of CNStats;
2. Unpack the archive (/cnstats folder with files and sub-directories ('sub-folders') will be created);
3. Remove counter code from all the pages of the site. The updating may last for a certain period of time (1 to 5 minutes). Error messages may occur during the updating process;
4. Overwrite all the old version files by the new version files. As a rule, it is executed with the help of an FTP-client;
NB: It is necessary to enable binary mode during files uploading through FTP.
5. Run installation script by indicating install.php location in the address box of your browser, for instance: http://yours.server.com/cnstats/install.php;
6. As a rule, there`s no need to change any data, so press "Next";
7. The installer will find the old version and will execute automatic updatå;
Then the contents of the configuration file will be displayed; you should overwrite config.php contents by these data;
8. Delete install.php;
9. Indicate the path to the installed program in the browser, for instance http://yours.server.com/cnstats/ and enter the required data;
10. Further you should get the statistics code from the menu section "Configuration" -> "Get counter code", and install it into all web-pages of your web-site. In case you would like the counter to be displayed on your pages, then counter code should also be installed into all web-pages (you can get it from the same section). For detailed information about types of counter code, please, refer to "Counter Types";
11. Open any web-page where you have installed the code. Check visually the correctness of the installation;
12. Enter menu section "Miscellaneous" -> "View log". Make sure that your visit has been counted and the system has started accumulating statistics.