{"id":931,"date":"2014-11-04T04:28:49","date_gmt":"2014-11-04T04:28:49","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=931"},"modified":"2014-11-04T04:28:49","modified_gmt":"2014-11-04T04:28:49","slug":"web-stats-updating-cpanel","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/11\/04\/web-stats-updating-cpanel\/","title":{"rendered":"Web stats not updating in cPanel"},"content":{"rendered":"<p>First check permission of \/usr\/local\/cpanel\/3rdparty\/bin\/awstats.pl, it should be 755.<\/p>\n<p>Then to update awstats and webalizer run the script :<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/scripts\/runweblogs user_nameIf that didn&#039;t work try fixwebalizer script :\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/scripts\/fixwebalizer\n\n<\/pre>\n<p>If that doesn\u2019t update stats, then check domlogs of the domain and see if it is up to date. You can use the following script to run statistics :<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/scripts\/runstatsonce\n\n<\/pre>\n<p>If none of the above fixes the issue and the awstats page for the domain is still showing the old date for last update, run the following command :<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/usr\/bin\/perl \/usr\/local\/cpanel\/3rdparty\/bin\/awstats.pl -config=\/home\/user_name\/tmp\/awstats\/awstats.domain.com.conf -LogFile=\/usr\/local\/apache\/domlogs\/domain.com -update\n\n<\/pre>\n<p>Error<\/p>\n<p>Error: Plugin load for plugin &#8216;geoipfree&#8217; failed with return code: Error: Can&#8217;t locate Geo\/IPfree.pm in @INC (@INC contains: \/usr\/local\/lib64\/perl5 \/usr\/local\/share\/perl5 \/usr\/lib64\/perl5\/vendor_perl \/usr\/share\/perl5\/vendor_perl \/usr\/lib64\/perl5 \/usr\/share\/perl5 . \/usr\/local\/cpanel\/3rdparty\/bin\/lib \/usr\/local\/cpanel\/3rdparty\/bin\/plugins \/usr\/local\/cpanel\/3rdparty\/bin\/plugins) at (eval 2) line 1.<\/p>\n<p>Cpan<\/p>\n<p>cpan install Geo:IPfree<\/p>\n<p>Other info<\/p>\n<p>Log files at \/usr\/local\/apache\/domlogs\/domain.com<br \/>\nConfig for awstats \/home\/fl\/tmp\/awstats\/awstats.domain.com.conf<br \/>\nLocation of all log files &#8211; \/home\/domain\/tmp<\/p>\n<p>If the logs are archived &#8211; look here &#8211; \/home\/fl\/logs<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# cd \/home\/fl\/logs\nls -la\ndomain.com-Nov-2014.gz\ndomain.com-Oct-2014.gz\n<\/pre>\n<p>Un archive<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# tar -xvzf domain.com-Nov-2014.gz\n# ls\ndomain.com-Nov-2014.log\n<\/pre>\n<p>Unarchive the file and run the command to rebuild it<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/usr\/bin\/perl \/usr\/local\/cpanel\/3rdparty\/bin\/awstats.pl -config=\/home\/user_name\/tmp\/awstats\/awstats.domain.com.conf -LogFile=\/home\/user_name\/logs\/domain.com-Nov-2014.log -update\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>First check permission of \/usr\/local\/cpanel\/3rdparty\/bin\/awstats.pl, it should be 755. Then to update awstats and webalizer run the script : # \/scripts\/runweblogs user_nameIf that didn&#039;t work try fixwebalizer script : # \/scripts\/fixwebalizer If that doesn\u2019t update stats, then check domlogs of the domain and see if it is up to date. You can use the following &#8230; <a title=\"Web stats not updating in cPanel\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/11\/04\/web-stats-updating-cpanel\/\" aria-label=\"Read more about Web stats not updating in cPanel\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,123],"tags":[],"class_list":["post-931","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-whm"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=931"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/931\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}