Gentoo and awstats
I’ve always had some issues getting awstats to work the way I want. I used the tutorial found here to and it was *perfect*. I wanted to simply paste it here as a resource.
from: http://www.pkdavies.co.uk/blog/addingawstatstogentoo
I followed the following basic steps:
USE=”vhosts” emerge -p awstats
Remove -p pretend after you’ve seen what dependancies are required.
Create conf file:
ln -s /usr/share/webapps/awstats/6.9-r1/postinst-en.txt /etc/apache2/vhosts.d/awstats.conf
Edit the apache conf file:
nano /home/dev/apache/conf/vhosts.conf
Add something similar like this, changing the default location of awstats for security. Further access restrictions are set below:
ScriptAlias /pkd-stats “/usr/share/webapps/awstats/6.9-r1/hostroot/cgi-bin/”
Alias /pkd-stats-icons “/usr/share/webapps/awstats/6.9-r1/htdocs/icon/”
<Directory /usr/share/webapps/awstats/6.9-r1/hostroot/cgi-bin/>
Options +ExecCGI +FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /usr/share/webapps/awstats/6.9-r1/htdocs/icon/>
Options +ExecCGI +FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Duplicate the config file creating a new for the domain that your running and edit:
cd /etc/awstats/
cp awstats.module.conf awstats.www.pkdavies.com.conf
nano /etc/awstats/awstats.www.pkdavies.com.conf
Set the following:
LogFile=”/usr/bin/logresolvemerge.pl /home/dev/apache/logs/pkd-*.log |”
SiteDomain=”www.pkdavies.com”
DNSLookup=1
DirCgi=”/pkd-stats”
DirIcons=”/pkd-stats-icons”
AllowFullYearView=3
AllowToUpdateStatsFromBrowser=1
SkipHosts=”127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]“
Change the owner of the files:
cd /usr/share/webapps/awstats/6.9-r1/hostroot
chown -R apache:apache datadir
chown -R apache:apache cgi-bin
Now update the stats from existing log files
perl awstats.pl -config=www.pkdavies.com -update
Now password protect the access.
Create the password file (replace the word username & password with anything you like)
htpasswd -bc /etc/awstats/.htpasswd username password
In my case it involved editing the main httpd.conf file and adding the awstats.conf file uncommenting:
<Location “/pkd-stats/awstats.pl”>
AuthType Basic
AuthName “AWStats authenticated zone”
AuthUserFile /etc/awstats/.htpasswd
Require valid-user
</Location>
Reload Apache
apache2ctl configtest
apache2ctl graceful
Pure-FTPd SSL with GoDaddy Issued Certificate
GoDaddy offers some very cheap inexpensive ssl certificates. Unfortunately not every client out there *trusts* GoDaddy so you have to do some magic to *prove* that the certificates are in fact valid and from a trusted authority (valid CA).
In order to do this in Pure-FTPd you need to gather your key, certificate as provided by GoDaddy, and the appropriate intermediate certificate chain from GoDaddy (most likely this one).
Now create your new /etc/ssl/private/pure-ftpd.pem file and build it like so:
private key goes here
—–END RSA PRIVATE KEY—–
—–BEGIN CERTIFICATE—–
domain cert goes here
—–BEGIN CERTIFICATE—–
intermediate cert goes here
Now set “-Y 1″ or “-Y 2″ in MISC_OTHER of pure-ftpd section to enable ssl.
Snow Boarding
Today was my first attempt at snow boarding. I have skied since my youth so I was a bit apprehensive to give it a whirl… not only was I concerned about hurting myself but also didn’t want to ‘waste’ a day learning something new.
Well, I am happy to report that I had an absolute blast. I found snow boarding to be much more relaxing and easier on the legs than skiing… meaning I could go much longer without resting. Plus, it felt pretty natural to me. I did spend quite a bit of time the first time down the hill on my backside (and am very glad I had a helmet), but after that I had it figured out enough to move along pretty well.