Key Notes
- New server for AWStats is deployed. The new AWStats service will have new domain (like awstats2.provider.com). Also this new domain will have new public IP address. After migration, customers will have new assess point to their AWSstats control panel.
- Location of CustomerData folder is the same on both servers.
- The migration procedure is supposed to be run on a single AWStats node. In case of several AWStats nodes in the infrastructure, contact Odin Technical Support for assistance.
Migration
- Deploy new Windows Server 2012 R2 for AWStats service according to the Installing AWStats Web Statistics section of the Windows Shared Hosting Deployment guide. Make sure that location of the CustomerData folder is the same on the both servers.
- Copy content of the
CustomerData\AWStat\statdata
directory from the source server to the new one. - Copy AWSstata configs form the source server to the new one:
awstats.prof.cfg
awstats.prof.dat
awstats.srv.cfg
wwwroot\cgi-bin\awstats.*.conf
wwwroot\cgi-bin\awstats.auth
wwwroot\cgi-bin\awstats.conf.pre
- Upload the
awstats-migrate.py
migration script to the Management Node. Run the
awstats-migrate.py
script on the node:Windows:
C:\Python27\python.exe awstats-migrate.py --source-id=<source_host_id> --target-id=<target_host_id>
Linux:
python awstats-migrate.py --source-id=<source_host_id> --target-id=<target_host_id>
where:
<source_host_id> – Host ID of the source Windows Server <target_host_id> – Host ID of the destination Windows Server
For example:
C:\Python27\python awstats-migrate.py --source-id=5 --target-id=14
- Remove the old AWStats server.
- Follow the instructions from the following article to address a known post-migration issue with logparser configuration.
- In case the new AWStats server has ActivePerl version >5.10, apply the patch from the following article to avoid missing statistics for site aliases.
Rollback
To switch back AWStats to the old node run the migration sctipt with reverted parameters:
python awstats-migrate.py --source-id=<target_host_id> --target-id=<source_host_id>