{"id":23,"date":"2007-04-21T16:38:38","date_gmt":"2007-04-21T14:38:38","guid":{"rendered":"http:\/\/henry78.at\/tech\/awstats-under-debian\/"},"modified":"2007-04-21T16:38:38","modified_gmt":"2007-04-21T14:38:38","slug":"awstats-under-debian","status":"publish","type":"post","link":"https:\/\/henry78.at\/?p=23","title":{"rendered":"awstats under debian"},"content":{"rendered":"<p>While setting up awstats und debian, I ran into some errors. Here&#8217;s what happened, and\u00a0how\u00a0to\u00a0get\u00a0over\u00a0it.<\/p>\n<p>Get\u00a0awstats<\/p>\n<blockquote><p><code>~# apt-get\u00a0install\u00a0awstats<\/code><\/p><\/blockquote>\n<p>Configure awstats<\/p>\n<blockquote><p><code>~# cd \/usr\/local\/awstats\/<br \/>\n\/usr\/local\/awstats# perl awstats_configure.pl<\/code><\/p><\/blockquote>\n<p>answer\u00a0the\u00a0questions,\u00a0and\u00a0the\u00a0configure\u00a0script\u00a0failes\u00a0with<\/p>\n<blockquote><p><code>Error: Failed to open '\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.model.conf' for read.<\/code><\/p><\/blockquote>\n<p>Hmm &#8230; the <code>awstats.model.conf<\/code> and the <code>wwwroot<\/code> directory don&#8217;t exist, so\u00a0I\u00a0ran<\/p>\n<blockquote><p><code>~# gunzip -v \/usr\/share\/doc\/awstats\/examples\/awstats.model.conf.gz<\/code><\/p><\/blockquote>\n<p>And\u00a0beacuse the debian installer doens&#8217;t adapt the configure script, edit\u00a0the\u00a0head\u00a0of\u00a0<code>\/usr\/share\/doc\/awstats\/examples\/awstats_configure.pl<\/code>\u00a0to<\/p>\n<blockquote><p><code>$AWSTATS_PATH='\/usr\/share\/awstats';<br \/>\n$AWSTATS_ICON_PATH='\/usr\/share\/awstats\/icon';<br \/>\n$AWSTATS_CSS_PATH='\/usr\/share\/awstats\/css';<br \/>\n$AWSTATS_CLASSES_PATH='\/usr\/share\/awstats\/lib';<br \/>\n$AWSTATS_CGI_PATH='\/usr\/lib\/cgi-bin';<br \/>\n$AWSTATS_MODEL_CONFIG='\/usr\/share\/doc\/awstats\/examples\/awstats.model.conf';<br \/>\n$AWSTATS_DIRDATA_PATH='\/var\/lib\/awstats';<\/code><\/p><\/blockquote>\n<p>Now\u00a0awstats_configure.pl\u00a0works!<\/p>\n<p>Because I use apache2, i had to edit <code>\/etc\/awstats\/awstats.yourdomain.com.conf<\/code><\/p>\n<blockquote><p><code>LogFile=\"\/var\/log\/apache2\/access.log\"<\/code><\/p><\/blockquote>\n<p>Before\u00a0the\u00a0awstats-Site\u00a0is\u00a0viewable,\u00a0the perlscript has to be executable by the apache2 user<\/p>\n<blockquote><p><code>~# chown www-data \/usr\/lib\/cgi-bin\/awstats.pl<\/code><\/p><\/blockquote>\n<p>That&#8217;s\u00a0it,\u00a0awstats\u00a0is\u00a0up.\u00a0It\u00a0has\u00a0just\u00a0a\u00a0minimal\u00a0configuration,\u00a0but\u00a0works. Everybody\u00a0should\u00a0read\u00a0the\u00a0<a HREF=\"http:\/\/awstats.sourceforge.net\/docs\/index.html\" TITLE=\"awstats documentation\">available\u00a0documentation<\/a>, to\u00a0get\u00a0awstats\u00a0with\u00a0all\u00a0the\u00a0features.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While setting up awstats und debian, I ran into some errors. Here&#8217;s what happened, and\u00a0how\u00a0to\u00a0get\u00a0over\u00a0it. Get\u00a0awstats ~# apt-get\u00a0install\u00a0awstats Configure awstats ~# cd \/usr\/local\/awstats\/ \/usr\/local\/awstats# perl awstats_configure.pl answer\u00a0the\u00a0questions,\u00a0and\u00a0the\u00a0configure\u00a0script\u00a0failes\u00a0with Error: Failed to open &#8216;\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.model.conf&#8217; for read. Hmm &#8230; the awstats.model.conf and the wwwroot directory don&#8217;t exist, so\u00a0I\u00a0ran ~# gunzip -v \/usr\/share\/doc\/awstats\/examples\/awstats.model.conf.gz And\u00a0beacuse the debian installer doens&#8217;t adapt &hellip; <a href=\"https:\/\/henry78.at\/?p=23\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">awstats under debian<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/henry78.at\/index.php?rest_route=\/wp\/v2\/posts\/23"}],"collection":[{"href":"https:\/\/henry78.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/henry78.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/henry78.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/henry78.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":0,"href":"https:\/\/henry78.at\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/henry78.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/henry78.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/henry78.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}