Webalizer not working on Ubuntu

One of my Ubuntu based VPS had Webalizer installed to collect stats from webserver but it was not working because I could see not stats at /webalizer/. If thats the case with you try the following

1) Try running the webalizer crontab

root@backups:~# /etc/cron.daily/webalizer
Error Opening file /usr/share/GeoIP/GeoIP.dat

So we have identified the culprit that geoip-database is not installed.

2) Fix this by installing geoip-database

root@backups:~# apt-get install geoip-database

Continue reading

VPSLatch VPS Benchmark

Unix Benchmark results from VPSLatch (OpenVZ running Ubuntu 10.04 LTS 32bit on their Orlando, FL node) using unixbench v 5.1.2

Specs: 1024MB / 60GB OpenVZ running Ubuntu 10.04 LTS 32bit

Note: This VPS has the best benchmark that I have ever seen, wow, no doubt Adam is having busy managing the best VPS+CPanel combination ever!

Continue reading

Spacerich VPS Benchmark

Update (26-Aug-2010): From my experience, they have very huge iowait and hence I/O problems on their VPS servers. You have to wait for like 10-15 seconds for a ‘uptime’ command to execute which is pretty pathetic. So in my opinion, it was useless for me.

Unix Benchmark results from Spacerich (OpenVZ running Ubuntu 10.04 LTS 32bit on their Munich, Germany node) using unixbench v 5.1.2

Specs: 256MB / 25GB OpenVZ running Ubuntu 10.04 LTS 32bit

Note: Being in Europe, it has the best response time to Asia especially Pakistan

Continue reading

ThrustVPS XEN HVM Benchmark

Update (25-Aug-2010): Rus Foster from ThrustVPS.com is a blackmailer and a person with low self-esteem. He actually blackmailed me to hand him over certain domain names which he thinks believes is breaching the AUP. My accounts, VPS and the $60 of affiliate commission was terminated. I will advise everyone to KEEP AWAY from Rus Foster and ThrustVPS.com (click here to read the full review)

Unix Benchmark results from ThrustVPS (XEN HVM running Ubuntu 10.04 LTS on their West Coast (LA) node) using unixbench v 5.1.2

Specs: 512MB / 15GB XEN HVM running Ubuntu 10.04 LTS 32bit

Note: Although the test results from the previous bechmark on their XEN PV is just average, this one is the best benchmark I had on a 512MB VPS ever!

Continue reading

Installing Lighttpd, PHP and MySQL on Ubuntu

If you are not getting a package on Ubuntu, please check to see if your /etc/apt/sources.list file is updated. This is common with most VPS providers

On VPS, especially with challenging small memory limit (e.g. 64MB or 128MB) lighttpd is the best option instead of Apache. In this article I will show you how to do that. On a fresh box (which has no apache installed) type this to get lighttpd webserver installed

apt-get install lighttpd

Now install PHP5 CGI package and PHP5 command line package

apt-get install php5-cgi php5-cli

Edit the following file

nano /etc/php5/cgi/php.ini

and uncomment this line

cgi.fix_pathinfo = 1

Now enable fastcgi module

lighty-enable-mod fastcgi

Restart Lighttpd

/etc/init.d/lighttpd restart

You get the welcome page

Lets install MySQL 5.1 server and client

apt-get install mysql-server mysql-client

and optionally phpMyAdmin

apt-get install phpmyadmin

Now create a test page to see if phpinfo is all Ok

nano /var/www/info.php

Type in the following


PHP Depreciated errors on Ubuntu 10.04 LTS

If you have installed LAMP (Apache, MySQL and PHP on Ubuntu 10.04 LTS) then running this on SSH

php -v

would be giving you certain PHP Depreciated warning like these

root@sea:~# php -v
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/idn.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP 5.3.2-1ubuntu4 with Suhosin-Patch (cli) (built: Apr  9 2010 08:23:39)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Its a noted bug with Ubuntu and changes may be pushed soon but to fix this just edit each of these files and replace comments starting with ‘#‘ to ‘;‘.

Installing T1LIB on Ubuntu

I recently found out about T1LIB. But I had no clue how to install this. Lucky for me I am on Ubuntu and I have the ability to search for a package.

T1LIB is actually in the latest Ubuntu 10.04 LTS. You can install it by punching in the following command

apt-get install t1lib-bin

Build-Essentials in CentOS?

If you are like me, you may be doing this to install essential build libraries to compile something from source

# wrong method
yum install build-essential

🙂 Build essential is a Ubuntu / Debian package. On CentOS, you need to do this

yum groupinstall "Development Tools"

Warning: This will install all development tools approx 49 packages closing to 65MB

Installing PHP’s SSH2 extension on Ubuntu

On Ubuntu 10.04 LTS, Do this (there’s no need to do any compiling anymore)

apt-get install libssh2-1-dev libssh2-php

You can now test if PHP recognizes it’s new ssh2 extension by running:

php -m |grep ssh2

Don’t forget to restart Apache

service apache2 restart