Analog On Ubuntu

This is a step by step process to install Analog logging server for apache on Ubuntu Server.

Update your ubuntu server
sudo apt-get update
sudo apt-get upgrade

Install analog
sudo apt-get install analog

Edit analog config file
sudo nano /etc/analog.cfg

Now I ended up putting in the following:

OUTFILE /var/www/stats/report.html
HOSTNAME “My Site”
MONTHLY ON
WEEKLY ON
DAILYREP ON
REQUEST ON
DIRECTORY ON
SEARCHWORD ON
SEARCHQUERY ON
BROWSERSUM ON
OSREP ON
FAILURE ON
REQLINKINCLUDE pages
REFLINKINCLUDE *
REDIRREFLINKINCLUDE *
FAILREFLINKINCLUDE *
SUBBROW */*
SUBTYPE *.gz,*.Z

And I kept all the search engine and page include stuff by default.

You can then run a crontab to allow the script to run every hour or day or month.
For everyone’s reference, here’s my settings in Crontab:
sudo crontab -e
15-45 * * * * /usr/bin/analog
That forces analog to run 15 and 45 minutes after every hour, every day, every week, every month.

VHCS On Ubuntu

I was given the project of DNS entries for several customers. After playing around with BIND9 for several hours (I actually got it to work for all sites EXCEPT http://sitename.tld – it worked fine for subdomains), a colleague suggested that I try VHCS. VHCS is a free software suite that allows for Virtual Hosts, DNS, and other web related items to be shared and easily managed between several groups. You can grab more data here: VHCS.net

I also chose to put this on Ubuntu because debian packages are easy to install, Ubuntu is fully supported by a huge user base, and Ubuntu also uses a very small footprint.

Once you download the suite, follow the Install directions all the way until you get an error similar to this:
If specified by -literal_key, then the key length must be equal to the chosen cipher's key length of 56 bytes at /var/www/vhcs2/engine/setup/../vhcs2_common_code.pl line 1443
Compilation failed in require at ./vhcs2-setup line (line whatever)
.

Here’s the fix:
nano /var/www/vhcs2/engine/vhcs2_common_code.pl
Control + W and search for db_pass_key
Any time you see 'key' => $main::db_pass_key fill in the following ABOVE the line:
'keysize' => 32,

Then rerun the script ./vhcs2-setup

P.S. By the way even, the instructions don’t really mention that you have to copy some folders over. Make sure you copy everything in the vhcs2-2.4.7.1/configs folder to /etc/vhcs2/ otherwise it will fail out. If you get some postfix errors, that’s probably ok.

P.S. Part 2 There is a much easier product to setup: ISPConfig. You can find it at ISPConfig.com. I recommend using ISPConfig as it is actively maintained.

Webmin Install Ubuntu 8.04 Server

1.) Log into your server. You can use SSH or your TTY.
2.) wget http://prdownloads.sourceforge.net/webadmin/webmin_1.340_all.deb
3.) sudo dpkg -i webmin_1.340_all.deb
4.) If you get errors, just type sudo apt-get install -f (this will install all the required pre-reqs)

EDIT: I had this as 8.06 server, when in fact it’s 8.04. My mistake. And since I always seem to install this right after installing the server, it’s a good idea to apt-get update, then apt-get upgrade

EDIT PT 2: The newest package is webmin_1.430_all.deb

EDIT PT3: if you’re installing on a CENTOS 5 box (like I am right now), you’ll need to wget http://downloads.sourceforge.net/webadmin/webmin-1.430-1.noarch.rpm
and then rpm -i webmin-1.430-1.noarch.rpm

EDIT PT4: Newest package is webmin_1.470_all.deb (http://prdownloads.sourceforge.net/webadmin/webmin_1.470_all.deb)

EDIT PT 5: Newest is webmin_1.490_all.deb (http://prdownloads.sourceforge.net/webadmin/webmin_1.490_all.deb)