1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Webalizer and migration

Discussion in 'Plesk for Linux - 8.x and Older' started by MaRiOs, Oct 27, 2005.

  1. MaRiOs

    MaRiOs Guest

    0
     
    Ok heres the deal.
    We get a new client, he gives me his ftp, so I log on and copy the files of the weblizer folder from his previous host, the files were like :

    usage_200407.html
    usage_200408.html
    usage_200409.html
    usage_200410.html

    etc, and some png files.Then I uploaded them on the plesks webalizer logs files folder :
    /home/httpd/vhosts/domain.tld/statistics/webstat
    and then I opened the link with webalizer in the browser and everything was fine! i could see all the statistics from the previous months,everything i copied from the previous host.
    But after 2 days I noticed that all the statistics were gone from the webalizer page, even if the files still exist in the folder.
    why is that ?

    Is there any way to make them work again ?

    Also i have to add that if you use the url and add the html file of an old statistics file it works great. check the link : https://arxondas.com/webstat/usage_200509.html
     
  2. ShadowMan@

    ShadowMan@ Guest

    0
     
    Try changing the domain's creation date from October 2005 to whatever the earliest date of html file you have (such as you posted 200407 would be July 2004)

    It is in database 'psa', table 'domains', field 'cr_date'

    Not sure if it can be done from the control panel, I've always just changed it directly using phpMyAdmin

    Then wait until the statistics cronjob runs and regenerates the /webstat/index.html file to see if it puts all the previous month's list back in again.
     
  3. MaRiOs

    MaRiOs Guest

    0
     
    So you have done this for webalizer before?
     
  4. ShadowMan@

    ShadowMan@ Guest

    0
     
    Not related to Webalizer, but for something else (like transferring a domain from one server to another, I refuse to use the Migration Manager buggy as hell). But I can find no other place where Webalizer would know a 'starting' date for a domain.

    Changing this value does no harm and can be changed back later if you wish.

    Tell you what, I'll change one of my test domains to a later date, manually run the statistics script and see what happens, then I'll post here again. kala
     
  5. MaRiOs

    MaRiOs Guest

    0
     
    Thank you :) "kala"? haha polu kala :)
     
  6. ShadowMan@

    ShadowMan@ Guest

    0
     
    My greek vocabulary is very limited, I have no grasp of grammar.... The other words are (of course) the bad words.... LOL

    Ok, this is not the first time I have been wrong. Changing the creation date does nothing. I am doing further research into Webalizer, I prefer awstats myself...
     
  7. ShadowMan@

    ShadowMan@ Guest

    0
     
    Hmm, looks like bad news, unless you also transferred the history file and current file:
    I suppose those may have been overwritten and would explain why your index.html file now does not show the earlier months.

    For more info on how the main index.html file is created, Read the full README file at

    ftp://ftp.mrunix.net/pub/webalizer/README

    Sorry I could not be of more help.
     
  8. MaRiOs

    MaRiOs Guest

    0
     
    So there is no way to make them work ? damn..
     
  9. ShadowMan@

    ShadowMan@ Guest

    0
     
    If you still have backup copies of the domain's webalizer.hist and .current files, you can put those back and then manually run the statistics script and see if that puts the missing months back into the index.html file. But I have no explanation as to why it suddenly removed them when it worked in the first place.

    Always remember, backups are important...
     
  10. MaRiOs

    MaRiOs Guest

    0
     
    Which of these files do u mean ?
    Cause I still havea acccess to the domains's previous ftp account and in his folder FTP with the stat's files there are only the pngs and the html ones...i cant find any hist or any other file :/
     
  11. ShadowMan@

    ShadowMan@ Guest

    0
     
    Sounds like they just put the files they thought they needed into the ftp directory.

    Depending on the old server's setup, the history and current files would be located somewhere (Plesk puts them in the domain's /statistics directory), but if they didn't save them, oh well. That would be their fault :)

    Other than the usage .html and .png files, did they put their old index.html file in ftp also?

    You may want to make sure you download and keep a separate copy of all their old files.

    If you read the README link I posted, it explains how webalizer generates the files (usage, index, etc) from the history and current files.
     
Loading...