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.
Larry Berryhill’s Funeral
All-
I have spoken with Larry’s family and funeral arrangements have been finalized.
When: 10 AM Pacific, Tuesday September 8th, 2009
Where: Franklin & Downs Funeral Home
704 12th St, Modesto, CA – (209) 523-9135
Following the funeral and visit to the cemetery there will be a reception at a family member’s home. Please plan to stay with the group for directions to the cemetery and the reception.
For those of your interested, I am still looking for more thoughts / reflections on your time with Larry. Please send them over to jhansen@hivalley.com as soon as you can.
*UPDATE*
Larry Berryhill’s Obituary – Provo Daily Herald
Larry Berryhill’s Obituary – The Modesto Bee
Larry Berryhill
I lost a great friend this week. Larry was my pole vault coach at BYU, but he was also much more. He was friend that I knew would be there for me under *any* circumstances… and was. I traveled all over with him, ate at the best steak house in every town, and listened to countless stories on the way. I will miss him deeply.
I am going to use this post to provide details as they become available about the circumstances of Larry’s death and the subsequent funeral.
I just spoke with Larry’s mother and found out the following:
They were contacted by the Embassy in Argentina on Monday (Aug 24th) and told that Larry had passed away. Apparently of a heart attack. He had gone out to dinner with some friends on Saturday (from what I can gather that was day) and they called him the next day and got no answer… he also missed an appointment that day, so a friend went to check on him. He was found in his bed.
Larry’s brother, Michael is down in Argentina working on getting Larry back home. As of right now it appears that they will be coming back on the same plane next Wednesday. There are things outside of their control here, so they are waiting until they are actually back before they make any additional plans. If things go according to plan, Larry’s funeral will most likely be the first of the following week – about Sept 7th. They are going to contact me as soon as the plans are finalized and I will post that information here.
To those who knew Larry:
We need to be there in full force. I ask that you do all you can to adjust your schedules to be there for Larry, as he was for us on so many occasions. I also ask that you take the time to write down some thoughts about Larry that can can be compiled and given to his family. This compilation should be ready for the reception after his funeral. Please take some time and get this together and email it (or add as comment to this post) to me (jhansen@hivalley.com) as soon as you can, and I will do the rest.
Please share this link with anyone you think would like to be involved.
Allie’s Birthday Gift
Me: Allie, what do you want for your birthday? (June 26th)
Allie: An elephant with a button on it and when you push the button it eats cow poop.
Anyone know where I can get one of those?
The Next Thing
What is a serial entrepreneur?
A serial entrepreneur is an entrepreneur who starts a new business after having already started a previous business venture. In contrast with an entrepreneur who starts a single company and operates it as a career, a serial entrepreneur may treat entrepren-eurship as a profession.
That pretty much defines me… once you get *it* in your blood *it* doesn’t just go away, regardless of success or failure, *it* defines who you are, what you do and how you do it. It is the most wonderful, exciting, scary thing in the world. Risk and reward. However, you control your future, no one else, and that is a liberating feeling.
All that said — the next project I am working on is called “Identity Exchange“. You can take a look at the landing page here. We are still a few months out on this project, but here is a quick summary:
Identity Exchange will serve as an online marketplace for identities… more commonly referred to as ‘leads’ by most. The Identity Exchange will bring lead buyers and sellers together in a marketplace that allows the leads to be exchanged for real market value based on qualifiers and location of the lead (and market of course)… real-time. Identity Exchange will facilitate the actual delivery of the lead as well as the exchange of the money. This provides great value to both buyers and sellers as it dramatically reduces the amount of time spent managing relationships and seeking funds.
I have been working on the project in my mind for about 3 years now… and now it is finally starting to take shape. Sweet.
New Blahg Home
Welcome, this is the new home for Jeff’s Blahg.
Well, we have a well
Well, well, well. Who would have ever thought this could be so much fun? We called a month or so ago about getting a well dug (ok, drilled) on our land. We were told that the price was $48 / foot and they wouldn’t be able to get to us until next spring.
No problem. We knew we were going to have to wait a bit… time to save some money for it.
Well… they called a week or so ago and asked: “Can you meet us at your land in 30 minutes?”. I guess they had some other job fall though and since our land is close to where the drill was they wanted to come do it NOW. Wow. That’s cool and all, don’t get me wrong, but the thought of finding that extra 10K to pay for it right now was a big unnerving. But more unnerving that that was having no idea how deep this sucker was really going to have to go… 120′, 166′, 200′, 300′, 400′ ??? We have people around us at all those different depths… one even down to 700′!!! Now that is a pricy hole in the ground.
Well… a couple days later they were at it. I just sat back and watched them go… $4 per inch… every pound of the drill … cha-ching. Every 20′ casing that went down.. $960 worth of cha-ching. Wow, that was nerve racking to me.
Well… It all turned out well and we only had to go down to 157′, which was nice because I was planning on around 200′. So, we didn’t have to spend quite as much as I was planning on.
Man, I wish I wasn’t such a worry wart sometimes! But, on the flip side, I now know quite a bit about the whole process… which probably won’t come in handy anytime soon.
Read this book
I don’t read much… at least material that comes in the form of a book. And, whenever I do read I insist that it be in the form of some geeky computer book that doesn’t ‘waste my time.’ It’s sad, but I feel guilty if I just sit down and read The Lord of The Rings or something worthless like that. What is the point? I guess it is the entrepreneurial / workaholic spirit of mine.
Well, after several friends and family members gave rave reviews to Lone Survivor: The Eyewitness Account of Operation Redwing and the Lost Heroes of SEAL Team 10 I decided it was something worth taking the time to read. Needless to say I was not in the least bit disappointed.
This description puts it much better than I ever could:
This gripping, inspiring take-no-prisoners combat memoir of Navy Seal Marcus Luttrell, the lone survivor from his unit during Operation Redwing, a post-9/11 military operation on the Afghanistan-Pakistan border, grabs the listener from the opening lines and won’t let go. Unabashedly patriotic and unapologetic, it is a testament to the power of duty and honor, commitment to country, and enduring bonds forged by teammates. Kevin Collins’s galvanizing performance as Luttrell takes us from his youth on an East Texas horse ranch to Seal training in Coronado, to fighting the Taliban in remote, isolated villages. With a slight Texas accent, Collins exudes the confidence and strength of a young warrior going into battle, determined to protect and defend. With almost spitting anger, he conveys the dilemma of soldiers committed to honoring ³rules of engagement,² knowing the enemy does not follow those same rules. This masterful production transcends political persuasion. M.H.N. Winner of AudioFile Earphones Award © AudioFile 2008, Portland, Maine– Copyright © AudioFile, Portland, Maine
Buy it and read it.
