AWstats implementation in Directadmin, how do I import old data...?

albatroz

Verified User
Joined
Mar 13, 2004
Messages
365
Location
Peru
Hello,
As many people has stated in several posts posts, it seems that there isn't
a documented way for moving data of older awstats implementations (based in
plugins) to the new implementation included in the last version of Directadmin.

So this is a formal, respectful request for this documentation to the Directadmin
creew: Could you please release such documentation?
 
ok,

ive found a way to move my existing awstats data from cpanel to direct admin. I had to do a manual move of my site as it was so big that the DirectAdmin conversion tool didnt want to work. but thats a sidepoint

Ok. Onwards!

Please Note:
Im using the integrated direct AWStats admin setup. I dont know if this will work for the plug module but anway.

1.
Grab your cpanel logs, or old logs
There are found in the /home/yoursiteusername/tmp folder.
What i did was tar the whole folder just in case i neede something
Code:
tar -zcf username-awstats.tar.gz *

2.
I then scp / moved these to some location on my new server.

Then extarct the contents. The files you need are actually in the awstats folder.
This folder contains the *txt files that hold the awstat data

3. You need to copy/move these files into their respective folders on the new server.

Code:
cp awstats*.txt /home/username/domains/domainname/awstats/.data

4. Then finally you need to rerun the stats update to rebuild the awstats
Code:
cd /usr/local/directadmin/scripts
Then issue the following command
Code:
./awstats_process.sh username domainname

hope this helps someone in future

brendan
 
Thanks brendanb!

brendanb, How exactly you do the point 4 ?
4. Then finally you need to rerun the stats update to rebuild the awstats
Code:
cd /usr/local/directadmin/scripts
Then issue the following command
Code:
./awstats_process.sh username domainname

Can it be done directly in the DirectAdmin User control panel ?
Say, the owner of the site?
 
I have followed your advice and arent seeing any older statistics. we dont get any errors neither.

do you have any tips?

nevermind, we solved it.
 
Last edited:
Back
Top