<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>install webalizer &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/install-webalizer/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Tue, 23 Nov 2010 08:35:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.15</generator>
	<item>
		<title>How To Install Webalizer On CentOS</title>
		<link>https://lifelinux.com/how-to-install-webalizer-on-centos/</link>
					<comments>https://lifelinux.com/how-to-install-webalizer-on-centos/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 08:33:23 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[analytics apache log]]></category>
		<category><![CDATA[analytics webserver log]]></category>
		<category><![CDATA[anlytics apache]]></category>
		<category><![CDATA[apache log]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[crontab command]]></category>
		<category><![CDATA[install webalizer]]></category>
		<category><![CDATA[vi command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=39</guid>

					<description><![CDATA[<p>The Webalizer is a fast, free web server log file analysis program. It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser, in this article webalizer installed in Centos 5.4. 1. Download Webalizer [root@lifelinux src]# wget ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.20-01-src.tgz 2. Installing packages [root@lifelinux src]# yum -y install gcc gcc-c++ [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-install-webalizer-on-centos/">How To Install Webalizer On CentOS</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>The Webalizer</strong> is a fast, free web server log file analysis program.  It produces highly detailed, easily configurable usage reports in HTML  format, for viewing with a standard web browser, in this article  webalizer installed in Centos 5.4.<span id="more-39"></span><br />
<strong>1. Download Webalizer</strong></p>
<pre>[root@lifelinux src]# wget ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.20-01-src.tgz</pre>
<p><strong>2. Installing packages</strong></p>
<pre>[root@lifelinux src]# yum -y install gcc gcc-c++ gd-devel</pre>
<p><strong>3. Compile GeoIP</strong></p>
<pre>[root@lifelinux src]# wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz</pre>
<pre>[root@lifelinux src]# tar zxvf GeoIP.tar.gz</pre>
<pre>[root@lifelinux src]# ./configure

[root@lifelinux src]# make &amp;&amp; make install</pre>
<p>Move GeoIP library</p>
<pre>[root@lifelinux src]# cp /usr/local/lib/libGeoIP* /lib</pre>
<p><strong>4. Tarball package webalizer</strong></p>
<pre>[root@lifelinux src]# tar zxvf webalizer-2.20-01-src.tgz</pre>
<p><strong>3. Download GeoIP Database</strong></p>
<pre>[root@lifelinux src]# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz</pre>
<pre>[root@lifelinux src]# gunzip GeoIP.dat.gz</pre>
<pre>[root@lifelinux src]# mv ./GeoIP.dat /usr/local/share/GeoIP/GeoIP.dat</pre>
<p><strong>5. Compile webalizer</strong></p>
<pre>[root@lifelinux src]# cd webalizer-2.20-01

[root@lifelinux webalizer-2.20-01]# ./configure --prefix=/usr/local/webalizer --sysconfdir=/usr/local/etc/webalizer --enable-geoip

[root@lifelinux webalizer-2.20-01]# make

[root@lifelinux webalizer-2.20-01]# make install</pre>
<p><strong>6. Create directory for configuration webalizer</strong></p>
<pre>[root@lifelinux webalizer-2.20-01]# mkdir /usr/local/etc/webalizer</pre>
<p><strong>7. Use default configuration and copying to your configuration</strong></p>
<pre>[root@lifelinux webalizer-2.20-01]# cp /usr/local/etc/webalizer/webalizer.conf.sample  /usr/local/etc/webalizer/yourdomain.com.conf</pre>
<p><strong>8. Create directory same with your document root</strong></p>
<pre>[root@lifelinux webalizer-2.20-01]# mkdir /var/www/example.com/webalizer</pre>
<p><strong>9. Edit this file</strong></p>
<pre>[root@lifelinux webalizer-2.20-01]# vi /usr/local/etc/webalizer/example.com.conf</pre>
<p>And find and changes the content</p>
<pre>LogFile /var/log/httpd/access_log</pre>
<p>Replace</p>
<pre>LogFile /var/log/httpd/example.com-access_log</pre>
<p>Find:</p>
<pre>OutputDir /var/www/usage/</pre>
<p>Replace</p>
<pre>OutputDir  /var/www/example.com/webalizer</pre>
<p>And find:</p>
<pre>HostName       localhost</pre>
<p>Replace</p>
<pre>HostName       example.com  # it depend on your web hostname</pre>
<p>Find</p>
<pre>#GeoIP           	yes

#GeoIPDatabase   	/usr/local/share/GeoIP/GeoIP.dat</pre>
<p>Replace</p>
<pre>GeoIP           	yes

GeoIPDatabase   	/usr/local/share/GeoIP/GeoIP.dat</pre>
<p><strong>10. Test your configuration with this syntax</strong></p>
<pre>[root@lifelinux webalizer-2.20-01]# for i in /usr/local/etc/webalizer/*.conf; do webalizer -c $i; done</pre>
<p><strong>11. Using this syntax for using crontab</strong>.</p>
<pre>[root@lifelinux webalizer-2.20-01]# vi /root/dowebalizer</pre>
<p>Add Code:</p>
<pre>#!/usr/bin/perl

use strict;

my @files = &lt;/usr/local/etc/webalizer/*.conf&gt;;

foreach my $file (@files) {

chomp($file);

system("/usr/local/bin/webalizer -c $file");

}</pre>
<p><strong>12. Using crontab</strong> for automatically updated</p>
<pre>[root@lifelinux webalizer-2.20-01]# crontab -e</pre>
<p>Add Code:</p>
<pre>1 * * * * /root/dowebalizer &gt;&gt;/dev/null 2&gt;&amp;1</pre>
<g:plusone href="https://lifelinux.com/how-to-install-webalizer-on-centos/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-install-webalizer-on-centos/">How To Install Webalizer On CentOS</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-install-webalizer-on-centos/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
