<?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>Albertech.net &#187; debian</title>
	<atom:link href="http://albertech.net/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertech.net</link>
	<description>Tips, Tricks, and Reviews in Linux, Apache, MySQL, PHP</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:09:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tomcat 5.5 installation on Debian, fix for webapps</title>
		<link>http://albertech.net/2009/06/tomcat-debian-webapps-install/</link>
		<comments>http://albertech.net/2009/06/tomcat-debian-webapps-install/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 21:36:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[CAS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[webapps]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=198</guid>
		<description><![CDATA[I've been starting work on getting JASIG CAS (Central Authentication Server) to work with all my applications. One of the requirements for JASIG is that it needs to run on Apache Tomcat. Following the instructions on http://www.debianadmin.com/how-to-setup-apache-tomcat-55-on-debian-etch.html  I was able to get the basics running on the Tomcat 5.5 server. However, I did encounter issues when trying to add in a *.WAR application to the server. I copied the files in the correct place /var/lib/tomcat5.5/webapps but for some reason the files weren't getting deployed. I figured out the simple fix for getting these applications to work in the webapps folder:]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F06%252Ftomcat-debian-webapps-install%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Tomcat%205.5%20installation%20on%20Debian%2C%20fix%20for%20webapps%22%20%7D);"></div>
<p><strong>I&#8217;ve been starting work on getting <a href="http://www.jasig.org/cas">JASIG CAS</a> (Central Authentication Server) to work with all my applications</strong>. One of the requirements for JASIG is that it needs to run on Apache Tomcat. Following the instructions on <a href="http://www.debianadmin.com/how-to-setup-apache-tomcat-55-on-debian-etch.html "><strong>http://www.debianadmin.com/how-to-setup-apache-tomcat-55-on-debian-etch.html </strong></a> I was able to get the basics running on the Tomcat 5.5 server. However, I did encounter issues when trying to add in a *.WAR application to the server. I copied the files in the correct place <strong>/var/lib/tomcat5.5/webapps</strong> but for some reason the files weren&#8217;t getting deployed.</p>
<p>I figured out the simple fix for getting these applications to work in the webapps folder:</p>
<ol>
<li><strong>Edit the  /etc/init.d/tomcat5.5   file </strong></li>
<li>Find the following lines:<br />
# Use the Java security manager? (yes/no)<br />
<strong>TOMCAT5_SECURITY=yes</strong></li>
<li>Change the TOMCAT5_SECUR<strong>ITY to<br />
TOMCAT5_SECURITY=no</strong></li>
<li>Restart tomcat<br />
/etc/init.d/tomcat5.5 restart</li>
</ol>
<p>You should now be able to see the deployed applications. If not, use the Tomcat manager to upload the *.war file back into the server. The files should now appear in the application list.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/06/tomcat-debian-webapps-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: fixing GPG error on apt-get update</title>
		<link>http://albertech.net/2009/06/debian-fixing-gpg-error-on-apt-get-update/</link>
		<comments>http://albertech.net/2009/06/debian-fixing-gpg-error-on-apt-get-update/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 22:14:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[gpg error]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=179</guid>
		<description><![CDATA[<strong>If you get a GPG error when doing an apt-get update</strong>, here's the quickest way to fix it.The error message looks similar to:
<blockquote>W: GPG error: http://security.debian.org etch/updates Release:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXX: There is no public key available for the following key IDs: W: You may want to run apt-get update to correct these problems</blockquote>
By default, it says "You may want to run apt-get update to correct these problems". The problem is, apt-get update doesn't fix the keys automagically. To fix, you will need to update the debian keyring by ... ]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F06%252Fdebian-fixing-gpg-error-on-apt-get-update%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Debian%3A%20fixing%20GPG%20error%20on%20apt-get%20update%22%20%7D);"></div>
<p><strong>If you get a GPG error when doing an apt-get update</strong>, here&#8217;s the quickest way to fix it.The error message looks similar to:</p>
<blockquote><p>W: GPG error: http://security.debian.org etch/updates Release:<br />
The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXX: There is no public key available for the following key IDs: W: You may want to run apt-get update to correct these problems</p></blockquote>
<p>By default, it says &#8220;You may want to run apt-get update to correct these problems&#8221;. The problem is, apt-get update doesn&#8217;t fix the keys automagically. To fix, you will need to update the debian keyring by typing:</p>
<blockquote><p><strong>apt-get install debian-archive-keyring</strong></p></blockquote>
<p>After installing the keyring, you will get a list of keys that were updated, added, or deleted. This should resolve the problem. It worked for me on apt-get update for an etch install that broke.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/06/debian-fixing-gpg-error-on-apt-get-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian on VMWARE: Installing VMWare Tools</title>
		<link>http://albertech.net/2009/05/debian-on-vmware-installing-vmware-tools/</link>
		<comments>http://albertech.net/2009/05/debian-on-vmware-installing-vmware-tools/#comments</comments>
		<pubDate>Fri, 15 May 2009 21:54:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWARE]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[install vmware tools]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=164</guid>
		<description><![CDATA[<strong>Why install VMWARE Tools?
</strong>Improved display support with SVGA driver
Cut and paste from host onto the VMWare guest
Automation of guest operating system commands
Sync time
Shrinking disk space
Startup and shutdown scripts

<strong>In order to install VMWARE tools on Debian, you will need to make sure you have the package "linux-headers-[kernel version]" installed.</strong>

If not, you will get a prompt during the configuration asking for the path of the C header files.

To find the version of your kernel, type in:
<strong>uname -a</strong>

It should say something like Linux infomine 2.6.26-2-amd64 (with your current CPU architecture at the end)

****
NOTE: Do this at your own risk. If you put the ... ]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F05%252Fdebian-on-vmware-installing-vmware-tools%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Debian%20on%20VMWARE%3A%20Installing%20VMWare%20Tools%22%20%7D);"></div>
<p><strong>Why install VMWARE Tools?<br />
</strong>Improved display support with SVGA driver<br />
Cut and paste from host onto the VMWare guest<br />
Automation of guest operating system commands<br />
Sync time<br />
Shrinking disk space<br />
Startup and shutdown scripts</p>
<p><strong>In order to install VMWARE tools on Debian, you will need to make sure you have the package &#8220;linux-headers-[kernel version]&#8221; installed.</strong></p>
<p>If not, you will get a prompt during the configuration asking for the path of the C header files.</p>
<p>To find the version of your kernel, type in:<br />
<strong>uname -a</strong></p>
<p>It should say something like Linux infomine 2.6.26-2-amd64 (with your current CPU architecture at the end)</p>
<p>****<br />
NOTE: Do this at your own risk. If you put the wrong version of the kernel header files, things will break.<br />
****</p>
<p>After identifying what kernel you are using, then add the linux header files<br />
<strong>apt-get install linux-headers-[kernel version]</strong><br />
For instance,  apt-get install linux-headers-2.6.26-2-amd64</p>
<p><strong>Then follow the Vmware documentation on installing VMWARE Tools:<br />
</strong><a href="http://www.vmware.com/support/gsx3/doc/tools_install_lin_gsx.html"><strong>http://www.vmware.com/support/gsx3/doc/tools_install_lin_gsx.html</strong></a></p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/05/debian-on-vmware-installing-vmware-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian on VMWARE: Troubleshoot Network</title>
		<link>http://albertech.net/2009/05/debian-on-vmware-troubleshoot-network/</link>
		<comments>http://albertech.net/2009/05/debian-on-vmware-troubleshoot-network/#comments</comments>
		<pubDate>Tue, 12 May 2009 00:50:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWARE]]></category>
		<category><![CDATA[clone network]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=162</guid>
		<description><![CDATA[Ever change the Network MAC address setting in VMWARE and you can't get the network to work?

Here's a quick how-to on changing the MAC address on a Linux VM. This is useful if you want to clone an existing machine and want to have both machines running with network at the same time. I am using VMWARE Server 2.0. (free version)
]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F05%252Fdebian-on-vmware-troubleshoot-network%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Debian%20on%20VMWARE%3A%20Troubleshoot%20Network%22%20%7D);"></div>
<p>Ever change the Network MAC address setting in VMWARE and you can&#8217;t get the network to work?</p>
<p>Here&#8217;s a quick how-to on changing the MAC address on a Linux VM. This is useful if you want to clone an existing machine and want to have both machines running with network at the same time. I am using VMWARE Server 2.0. (free version)</p>
<p>1) Power down the VM that you want to change the MAC address on. (e.g. cloned computer)<br />
2) On the VMWARE console, select your (cloned) VM machine on the left side. In the Summary tab, click on &#8220;Edit&#8221; in the Network adapter section. The MAC address needs to be set the &#8220;Manual&#8221;. In the textbox, set the MAC address. It will need to start with 00:50:56 and end with XX:XX:XX to a value between 00:00:00 and FF:FF:FF. For instance, you can use 00:50:56:FF:FF:FF as a MAC address.  Click on OK.</p>
<p>3) If you are using Static IP address. Follow this step: On your VM console, click on the Summary Tab for the VM you changed the settings on. On the Network Adapter 1, click on &#8220;Edit&#8221;. Uncheck the box that says &#8220;Connect at power on&#8221;  Click on OK.</p>
<p>Turn on Debian box. Login as root. If you are using static IP, you will first need to change the IP to a new one. Edit the &#8220;/etc/network/interfaces&#8221; file. On the &#8220;address&#8221; line of your network adapter (eth0, &#8230; eth5)  change the IP.  Shutdown computer. Go to VMWARE console, edit Network Adapter 1, check the network box that says &#8220;Connect at power on&#8221;.</p>
<p>4) Power on the VM. Login as root.</p>
<p>5) Go to /etc/udev/rules.d/</p>
<p>6) There should be a file called &#8220;70-persistent-net.rules&#8221;. Backup the file. Edit this file. Find the line that matches the MAC address that you entered in step 3.  If you can&#8217;t find it (that maybe the problem), edit the last network device on the list. In the &#8220;ATTRS{address}==&#8221; section, enter the MAC address that you added. Note what NAME it is.  It should be something like &#8220;eth0&#8243; or &#8220;eth&#8230;.&#8221;  Save the file.</p>
<p>7) Now edit /etc/network/interfaces file. Your will need to make sure the &#8220;eth&#8221; matches the NAME of the hardware device in step 8. For instance, if the name is eth0 &#8212; make sure the name of the interfaces is eth0 and the allow-hotplug line is eth0 as well.</p>
<p> <img src='http://albertech.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Run the command &#8220;ifup [NAME]&#8221; for instance ifup eth0. You should get a status message whether the network works.  If you get a conflict error, you are either using a MAC address that is on another VM or a static IP address of another computer. If its a conflict of IP, change the IP in step 3. To troubleshoot network device not working, stop the VM machine &#8212; look in the Network adapter field. Write down the MAC address. Go back to step 6.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/05/debian-on-vmware-troubleshoot-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: Broken grub after Lenny upgrade</title>
		<link>http://albertech.net/2009/05/debian-broken-grub-after-lenny-upgrade/</link>
		<comments>http://albertech.net/2009/05/debian-broken-grub-after-lenny-upgrade/#comments</comments>
		<pubDate>Fri, 01 May 2009 10:49:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[lenny upgrade]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=156</guid>
		<description><![CDATA[I've done multiple Debain upgrades from Etch to Lenny and have noticed there are some issues with grub breaking. The upgrade somehow puts the wrong hard drive information in the default grub file. Here's some recommendations on how to perform the Lenny upgrade]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F05%252Fdebian-broken-grub-after-lenny-upgrade%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Debian%3A%20Broken%20grub%20after%20Lenny%20upgrade%22%20%7D);"></div>
<p>I&#8217;ve done multiple Debian upgrades from Etch to Lenny and have noticed there are some issues with grub breaking. The upgrade somehow puts the wrong hard drive information in the default grub file.</p>
<p>Here&#8217;s some recommendations on how to perform the Lenny upgrade:</p>
<p><strong>The safest way (before upgrading) is to look at the grub file:</strong><br />
nano /boot/grub/menu.lst</p>
<p>Look at the &#8220;default:&#8221; section and note which partition it uses to boot up. For instance look at the areas in red below:<br />
<code>root <strong><span style="color: #ff0000;">(hd1,1)<br />
</span></strong>kernel /boot/vmlinuz-2.6.18-5-686 root=<span style="color: #ff0000;"><strong>/dev/sda2</strong></span> ro<br />
</code><br />
In my situation, those two partitions were incorrect after performing the upgrade.  This leads to ALL the items in the grub menu breaking, which can be scary at first. You can however mount the hard drive on a working copy of Debian to get the correct partition or use the emergency CD to get into a working shell.</p>
<p><strong>Here&#8217;s a guide on how to upgrade from Etch</strong><br />
<a href="http://www.debianadmin.com/howto-upgrade-from-debian-etch-40-to-lenny-50.html">http://www.debianadmin.com/howto-upgrade-from-debian-etch-40-to-lenny-50.html</a></p>
<p><strong>If your grub is broken after the upgrade and you didn&#8217;t look at the partition info:</strong><br />
There is still hope! When grub loads up, press the &#8220;e&#8221; key to edit the grub menu file.</p>
<p><strong>If grub doesn&#8217;t even load Linux properly, you will need to edit this:</strong><br />
1) Select the line with root(XXX,XXX). Press the &#8220;e&#8221; key to edit the line<br />
2) This will be a guessing game, but most likely changing the hd1 to hd0 can fit it. E.g. (hd0,1)<br />
3) After making the change, press &#8220;b&#8221; to boot<br />
4) If it works, go into /boot/grub/menu.lst to edit the file and make the change in the default section.</p>
<p><strong>If grub loads Linux, but it hangs on loading root partition, you will need to edit this line:</strong><br />
<span style="font-family: Courier New;">kernel /boot/vmlinuz-2.6.18-5-686 root=<span style="color: #ff0000;"><strong>/dev/sda2</strong></span> ro</span><br />
1) Press the &#8220;e&#8221; key to edit this line<br />
2) Change the /dev/XXX to the correct partition. Again, this might be another guessing game<br />
but you can try changing the root= to /dev/sda1 or /dev/sda2<br />
3) After making the change, press the &#8220;b&#8221; key to boot<br />
4)  If it works, go into /boot/grub/menu.lst to edit the file and make the change in the default section.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/05/debian-broken-grub-after-lenny-upgrade/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>KDE: How to fix &#8220;No greeter widget plugin loaded&#8221; error</title>
		<link>http://albertech.net/2009/04/kde-how-to-fix-no-greeter-widget-plugin-loaded-error/</link>
		<comments>http://albertech.net/2009/04/kde-how-to-fix-no-greeter-widget-plugin-loaded-error/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 21:38:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[greeter widget]]></category>
		<category><![CDATA[kde]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=142</guid>
		<description><![CDATA[I was helping one of the staff today with their Debian setup. KDE somehow broke after they did an apt-get update. Turns out there must have been like 40-50 packages that must have been in the update and thus one of them broke during the upgrade.

Upon startup, there was a unique error message that came up with KDE during the startup phase -- "No greeter widget plugin loaded. Check the configuration." with an OK box. Clicking the OK box would lead to KDE exiting to shell. Reinstalling kdm had no effect. The fix? Read the article to see...]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F04%252Fkde-how-to-fix-no-greeter-widget-plugin-loaded-error%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22KDE%3A%20How%20to%20fix%20%5C%22No%20greeter%20widget%20plugin%20loaded%5C%22%20error%22%20%7D);"></div>
<p>I was helping one of the staff today with their Debian setup. KDE somehow broke after they did an apt-get update. Turns out there must have been like 40-50 packages that must have been in the update and thus one of them broke during the upgrade.</p>
<p>Upon startup, there was a unique error message that came up with KDE during the startup phase &#8212; &#8220;No greeter widget plugin loaded. Check the configuration.&#8221; with an OK box. Clicking the OK box would lead to KDE exiting to shell. Reinstalling kdm had no effect. The fix?</p>
<p><code>apt-get install kdebase-workspace</code></p>
<p>Seems like the dependency of kde install/update is missing the kdebase-workspace package.</p>
<p>To check to see if this works, restart KDE by going to<br />
<code>/etc/init.d/kdm stop<br />
/etc/init.d/kdm start</code></p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/04/kde-how-to-fix-no-greeter-widget-plugin-loaded-error/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Awstats setup in Debian</title>
		<link>http://albertech.net/2009/01/awstats-debiansetup/</link>
		<comments>http://albertech.net/2009/01/awstats-debiansetup/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 03:05:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[geoIP]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=65</guid>
		<description><![CDATA[<strong>Installing awstats in Debian with GeoIP caching
</strong>

<strong>First, use apt-get to get the software:</strong>

apt-get install awstats

<strong>Configure awstats:</strong>
Instead of using the awstats configure tool (written in Perl), manually add in the awstats Apache configuration. Using the <a href="http://www.debuntu.org/2006/04/21/33-how-to-setting-up-awstats-with-apache-2-on-debianubuntu">tutorial from debuntu</a>, make a file inside your apache config folder called awstats.conf with the following lines.

<code>Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch</code>

<strong>Inside the Apache2.conf file (or virtual host conf file inside the sites-available folder) add this to the end of the file:</strong>

<code>Include /etc/apache2/awstats.conf</code>

<strong>Next, copy the /usr/lib/cgi-bin/awstats.pl file to the apache cgi-bin folder.</strong> If you have virtual hosts enabled, copy it to ... ]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F01%252Fawstats-debiansetup%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Awstats%20setup%20in%20Debian%22%20%7D);"></div>
<p><strong>Installing awstats in Debian with GeoIP caching<br />
</strong></p>
<p><strong>First, use apt-get to get the software:</strong></p>
<p>apt-get install awstats</p>
<p><strong>Configure awstats:</strong><br />
Instead of using the awstats configure tool (written in Perl), manually add in the awstats Apache configuration. Using the <a href="http://www.debuntu.org/2006/04/21/33-how-to-setting-up-awstats-with-apache-2-on-debianubuntu">tutorial from debuntu</a>, make a file inside your apache config folder called awstats.conf with the following lines.</p>
<p><code>Alias /awstatsclasses "/usr/share/awstats/lib/"<br />
Alias /awstats-icon/ "/usr/share/awstats/icon/"<br />
Alias /awstatscss "/usr/share/doc/awstats/examples/css"<br />
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch</code></p>
<p><strong>Inside the Apache2.conf file (or virtual host conf file inside the sites-available folder) add this to the end of the file:</strong></p>
<p><code>Include /etc/apache2/awstats.conf</code></p>
<p><strong>Next, copy the /usr/lib/cgi-bin/awstats.pl file to the apache cgi-bin folder.</strong> If you have virtual hosts enabled, copy it to the cgi-bin located in the designated virtual hosts folder.</p>
<p><strong>Configure the awstats.conf sample file located in /etc/awstats/awstats.conf</strong><br />
1) Set the LogFile to the server&#8217;s logfile directory (usually /var/log/apache2/access.log)<br />
2) Set LogFormat to 1.<br />
3) Set DNSLookup=0 (No DNS Lookup is necessary when you use GeoIP DB, instructions are below)<br />
4) Uncomment this line (remove the # from the beginning)<br />
LoadPlugin=&#8221;geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat&#8221;</p>
<p><strong>Install GeoIP to speed up the hostname lookups. </strong>This will significanly improve the performance since DNS lookups will generally take a long time. Using <a href="http://www.ducea.com/2006/06/14/install-geoip-perl-module-on-debian/">this tutorial</a>, install the GeoIP library:</p>
<p>wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.5.tar.gz</p>
<p>Download and extract the file.  Inside the GeoIP 1.4.5 folder, run:</p>
<p><code>./configure<br />
make<br />
make check<br />
make install<br />
</code></p>
<p>Next, download the latest GeoIP perl module -and- latest GeoLite country database.<br />
<a href="http://www.maxmind.com/download/geoip/api/perl/">http://www.maxmind.com/download/geoip/api/perl/</a> I usually run wget to download the file from shell. wget http://geolite.maxmind.com/download/geoip/api/perl/Geo-IP-1.36.tar.gz</p>
<p>Extract the tar file and inside the Geo-IP folder, run:</p>
<p><code>perl Makefile.PL<br />
make<br />
make test<br />
make install</code></p>
<p><strong>GeoIP should now be installed. You can now generate the reports:</strong><br />
/usr/lib/cgi-bin/awstats.pl -config=[NAME OF YOUR INSTALL] -update<br />
For instance, if you called the install &#8220;sample&#8221;, you should have a file called /etc/awstats/awstats.sample.conf    The command for sample would be:<br />
/usr/lib/cgi-bin/awstats.pl -config=sample -update<br />
<strong><br />
To run awstats:<br />
http://[SERVER]/cgi-bin/awstats.pl?config=[NAME OF YOUR INSTALL]</strong></p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/01/awstats-debiansetup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
