webalizer and awstats problem

Discussion in 'ISPConfig 3 Priority Support' started by Robertus, Jan 26, 2017.

  1. Robertus

    Robertus New Member HowtoForge Supporter

    Hello,
    I recently installed "the perfect server with centos 7.2", it seems that I have Centos 7.3, you already solved my mailproblem. I am now testing the rest. It seems webalizer and awstats don't work. I have setup several domains and I have configured awstats for some and webalizer for some others. I have waited some days, but nothing happens. The directory stats in the domains web-directory don't get filled. Could there also be a path issue?
    Regards,
    Rob
     
  2. Robertus

    Robertus New Member HowtoForge Supporter

    Anybody?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Sorry, completely missed that post. Do you have recent entries in the access.log file of the website (/var/www/domain.tld/log/access.log) ?
     
  4. Robertus

    Robertus New Member HowtoForge Supporter

    Hello,
    Yes that directory is filed with a file per day.
    The directory /var/www/domain.tld/web/stats is empty.
    Regards,
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    please post the output of the command:

    crontab -l

    run as root user.
     
  6. Robertus

    Robertus New Member HowtoForge Supporter

    crontab -l
    * * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    * * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The crontab looks fine. The line with cron.sh runs all the cron plugins from ispconfig including the webalizer and awstats jobs.

    Please check that the paths / script paths for the awstats scripts under System > server config > web > awstats are correct
     
  8. Robertus

    Robertus New Member HowtoForge Supporter

    Took me a little to find what you meant, but I found it.
    The awstats.pl script: has entry "/usr/lib/cgi-bin/awstats.pl" this does not exist. The rest does exists.
    With a find, I found this script here "/usr/share/awstats/wwwroot/cgi-bin/awstats.pl". Is that the same? Can I just change this?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats hould be the same, please change the path in the settings.
     
  10. Robertus

    Robertus New Member HowtoForge Supporter

    Ok, I did that when I typed the question. Just to see if that solved the problem with AWstats. AWstats now works on the site where I configured AWstats. Great support!
    Webalizer doesn't work yet.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check if webalizer is installed by running the command as root:

    which webalizer
     
  12. Robertus

    Robertus New Member HowtoForge Supporter

    Webalizer is there, but it is not in the path of root:

    [root]# which webalizer
    /usr/bin/which: no webalizer in (/sbin:/bin:/usr/sbin:/usr/bin)
    [root]# exit
    [rob$ which webalizer
    /usr/local/bin/webalizer

    Should I put it in the path of root?
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to make a symlink to webalizer in a folder that is in the path.
     
  14. Robertus

    Robertus New Member HowtoForge Supporter

    ok made the link
    [root]# ln -s /usr/local/bin/webalizer /bin/webalizer
    [root]# which webalizer
    /bin/webalizer

    Now we wait?
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    yes, until tomorrow.
     
  16. Robertus

    Robertus New Member HowtoForge Supporter

    Great everything works, thank you big time!
     

Share This Page