New server, new problems

Discussion in 'Installation/Configuration' started by fobicodam, Apr 27, 2007.

  1. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    I have a new server, the installation was ok, no errors reported but the webalizer scripts is no running, untill now its the only problem ive found.

    The output of the

    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php

    script is:

    8007 records (8007 ignored) in 0.06 seconds
    44362 records (44362 ignored) in 0.26 seconds
    4692 records (4692 ignored) in 0.02 seconds
    6705 records (6705 ignored) in 0.04 seconds
    1154 records (1154 ignored) in 0.00 seconds
    5514340 records (5514340 ignored) in 69.78 seconds, 79024/sec

    Do you have any idea where to start looking??
     
  2. Hans

    Hans Moderator ISPConfig Developer

    Try this:

    /etc/init.d/cron stop
    pkill cron (Make sure no cron processes are left.)
    Edit your crontab (crontab -e) and save it again.
    Then restart cron: /etc/init.d/cron start

    And wait for max. 24h.
     
  3. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    Thanks, but the problem is not the cron job, its the webalizer script.

    As i said:

    8007 records (8007 ignored) in 0.06 seconds
    44362 records (44362 ignored) in 0.26 seconds
    4692 records (4692 ignored) in 0.02 seconds
    6705 records (6705 ignored) in 0.04 seconds
    1154 records (1154 ignored) in 0.00 seconds
    5514340 records (5514340 ignored) in 69.78 seconds, 79024/sec

    It ignores every record on the log file.
     
  4. Hans

    Hans Moderator ISPConfig Developer

    Sorry, i misunderstood.

    Which Linux distribution are you using on your server?
    Maybe you made a mistake within your configuration.
    If you are using Debian, evrything should be fine after apt-get install webalizer
     
  5. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    Its a Centos 4.4, i have another centos with no problem (idem config), plus 1 Fedora 4, all of them with ispconfig..

    I believe its a webalizer config problem, but i cant imagine what could it be !
     
  6. Hans

    Hans Moderator ISPConfig Developer

    Did you install Webalizer with: yum install webalizer ?
    Then it should work.

    If you've installed it in a different way, probably something is wrong within your webalizer.conf or httpd.conf file.
     
  7. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    No, i followed the perfect install for centos 4.4, i copied the webalizer conf and php files from another running centos and hve the same issue, i believe the problem is with the apache log files.
     
  8. Hans

    Hans Moderator ISPConfig Developer

    If you think if there is a problem with the Apache log files, maybe you should check if the log file format within your Apache configuration file is supported by Webalizer. I think so, as Webalizer supports quiet a lot, but you never know.
     
  9. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    Nah, both linuxes with the same log format.. any idea?
     
  10. mlz

    mlz New Member


    It sounds like Webalizer things it has already processed the log file. Did you just transfer the webalizer.conf or other webalizer data files as well?
     
  11. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    This is the same problem... the log file get the 2Gb limit and its unreadable.. can you tell me how to modify the logs.php and webalizer.php to create hourly log files? my sites are too big and create 1Gb of log per hour.
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. Webalizer ignores records that it already knows.
     
  13. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    but it happend everytime, since 5 days ago it keeps sending "ignored records" and no stats at all.. any hint?

    what do i need to do if i want to run webalizer every hour? my log files grown 800Mb every hour and webalizer cant read them.
     
  14. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    I've deleted every file inside the stats folders and rerun webalizer, it works ok the first time, but today i have the ignored registers again...

    any help?
     
  15. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    I guess the stats process is a mess here... what can we do to fix it? i need to run it every hour and there is no way and nobody answer !! Falko please i need help here !
     
  16. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    Question

    The cronolog program running under apache, creates the ispconfig_access_log file, but it doesnt erase the original apache's access_log file, root of all my problems. How can i modify it to clear the access_log file so apache can write on an empty file?

    I dont know where or when the cronolog file is called
     
  17. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    The problem here was that the file is bigger than 2Gb, so the logs.php file cant read it and always copy the same records.

    I modify the logs.php file to create a subfolder with the our (so, its /var/www/web2/log/05/04/10/web.log) and works great, but i dont know how to clear the access_log file after copying it as ispconfig_access_log.

    Any hint?
     
  18. falko

    falko Super Moderator ISPConfig Developer

    Do you use a 32bit or a 64bit OS?
     
  19. fobicodam

    fobicodam ISPConfig Developer ISPConfig Developer

    Its a Centos 4.4 32bits.
     
  20. falko

    falko Super Moderator ISPConfig Developer

    You can't have files bigger than 2GB on a 32bit OS.
     

Share This Page