{"id":7459,"date":"2013-06-16T13:59:50","date_gmt":"2013-06-16T12:59:50","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=7459"},"modified":"2013-06-16T13:59:50","modified_gmt":"2013-06-16T12:59:50","slug":"fixing-lack-of-output-in-awstats-after-debian-linux-upgrade","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/7459-fixing-lack-of-output-in-awstats-after-debian-linux-upgrade.html","title":{"rendered":"Fixing lack of output in AWstats after Debian Linux upgrade"},"content":{"rendered":"<p>I use AWStats to analyse logs on several web sites that I manage. After a recent upgrade to Debian 7.0 \u201cWheezy\u201d I was puzzled to find that my web stats were no longer being updated.<\/p>\n<p>I verified that the Cron job which runs the update script was running. I verified that if I ran the same command from the console, it ran correctly. I verified this even using sudo to run with the same permissions as Apache. I also noted that the update button on the stats pages worked correctly. An odd problem.<\/p>\n<p>This is how it rested for a while, and I manually updated the stats. It was annoying though, so I took a closer look.<\/p>\n<p>First, I amended one of the Cron jobs so that it output to a file. Reading the file after the next failed update, I could see the error message:<\/p>\n<blockquote>\n<p>Error: LogFile parameter is not defined in config\/domain file      <br \/>Setup file, web server or permissions) may be wrong.<\/p>\n<\/blockquote>\n<p>I knew the config file was fine, but checked anyway, and of course the LogFile was specified OK.<\/p>\n<p>It was a clue though. Eventually I came across <a href=\"http:\/\/sourceforge.net\/p\/awstats\/bugs\/865\/\" target=\"_blank\">this bug report<\/a> by Simone Capra:<\/p>\n<blockquote>\n<p>Hi all, i&#8217;ve found a problem:     <br \/>When run from another perl program, it finds a config file that doesn&#8217;t exist!<\/p>\n<\/blockquote>\n<p>I applied the suggested fix in awstats.pl, changing:<\/p>\n<blockquote>\n<p>if (open( CONFIG, &quot;$SiteConfig&quot; ) ) {<\/p>\n<\/blockquote>\n<p>to<\/p>\n<blockquote>\n<p>if ($SiteConfig=~ \/^[\\\\\/]\/ &amp;&amp; open( CONFIG, &quot;$SiteConfig&quot; ) ) {<\/p>\n<\/blockquote>\n<p>Presto, everything is running OK.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use AWStats to analyse logs on several web sites that I manage. After a recent upgrade to Debian 7.0 \u201cWheezy\u201d I was puzzled to find that my web stats were no longer being updated. I verified that the Cron job which runs the update script was running. I verified that if I ran the &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/7459-fixing-lack-of-output-in-awstats-after-debian-linux-upgrade.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing lack of output in AWstats after Debian Linux upgrade<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[184,314,545],"class_list":["post-7459","post","type-post","status-publish","format-standard","hentry","category-linux","tag-awstats","tag-debian","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/7459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=7459"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/7459\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=7459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=7459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=7459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}