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

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.

An error occurred while attempting to commit your command for processing.

Return from whence you came


Just do the following

root@nagios:~# ls -l /var/lib/nagios3/rw/nagios.cmd
prw-rw---- 1 nagios nagios 0 Aug 11 22:27 /var/lib/nagios3/rw/nagios.cmd
root@nagios:~# chmod -R g+x /var/lib/nagios3/rw
root@nagios:~# ls -l /var/lib/nagios3/rw/nagios.cmd
prw-rwx--- 1 nagios nagios 0 Aug 11 22:27 /var/lib/nagios3/rw/nagios.cmd
root@nagios:~# service nagios3 restart

Also change group of the file

root@nagios:~# ls -l /var/lib/nagios3/rw/nagios.cmd
prw-rw---- 1 nagios nagios 0 Aug 11 22:27 /var/lib/nagios3/rw/nagios.cmd
root@nagios:~# chown nagios:www-data /var/lib/nagios3/rw/nagios.cmd

And also, you may need to do the following and restart apache afterwards

root@nagios:~# usermod -G nagios www-data
root@nagios:~# service apache2 restart

Note: This tutorial is written keeping in mind Ubuntu distribution, on CentOS, things are a little different

PTV’s Shaista Zaid delivers last bulletin after 43 years

Eversince I was a child, I can recall her face in the evenings when there was just PTV and later STN. I am sure a generation can recall her face seeing on PTV English Bulletin @ 7pm everyday

A little bio of Shaista Zaid, the legend

There were people on twitter recalling her and expressing sorrow on her retirement news

So sad that Shaista Zaid is retiring. She is the face that launched a thousand Kashmir reports, Eid moons and coups. End of an era. #PTV
Ali Dayan Hasan
Respect for the refined lady. A true inspiration. ' Shaista Zaid last bulletin on PTV news 1969-2012' http://t.co/4nNgQglI
Rida Imran
A national icon, and beacon for generations to come - I'm lucky to have anchored the news with Shaista Zaid - http://t.co/GoHK30Fr #ptv
Wes Malik
If you don't know who is Shaista Zaid .. Then dude, you are too young for twitter :)
Saad Khan
It was an honor to watch Shaista Zaid's last bulletin. Her grace and elegance unmatched for those 43 years when she remained on-air.
Mansoor Ali Khan
A long and satisfying career at PTV. Well-earned retirement. Good luck. RT @: Shaista Zaid. End of an era. http://t.co/XGDnilZz

HTC Helpline

I needed to get my HTC Desire HD‘s volume key repaired even though it was

  • Nnot in warrenty and
  • Not purchased from Brightex

but to my surprise the helpline was very proactive and welcome-ing in offering their services. Of course the services were paid for but at least I had the peace of mind for getting them fixed from the pros.

Thats another reason to buy HTC hardware

HTC Helpline in Lahore is being offered by Brightex, the official distributor of HTC at 111-111-HTC (111-111-482)

PTCL EVO device with Tenda Portable 3G wireless router with battery (3G150B)

As promised, I previously reviewed the 3G150M model (without battery) and this time I am going to review the 3G150B (with battery model)

Tenda Portable 3G wireless router 3G150B

Tenda Portable 3G wireless router 3G150B

Although the battery model is more attractive and more widely used (Im using 3G150B more as compared to 3G150M) it control panel interface is fairly basic which is a set back for me and im sure for most other users as well. But still, its the best out there

There was also an advertisement in Spider magazine for the month of April 2012 as can be seen in the following photo

Spider Advertisement of Tenda Portable 3G wireless router 3G150B in April 2012

Spider Advertisement of Tenda Portable 3G wireless router 3G150B in April 2012

This Tenda device cost approx Rs. 4200 in the market and its model is 3G150B. The only difference from 3G150M is that it has battery to give backup of approx 5 hours. I configured it using the same PTCL EVO configuration settings for 3G routers.

cPanel/WHM 11.30 now supports MySQL TRIGGERS and VIEW privileges

I just noticed that cPanel/WHM 11.30 now supports MySQL TRIGGERS and VIEW privileges. From the official release notes

In 11.30 we are adding support for the MySQL TRIGGER and VIEW privileges.

  • Systems using MySQL 5.0 and higher can use the VIEW privilege. This privilege will grant the database user the CREATE VIEW and SHOW VIEW MySQL privileges.
  • When using MySQL 5.0, the SUPER privilege is required for the TRIGGER privilege. Due to this caveat, we will not support the TRIGGER privilege on systems using MySQL 5.0.
  • Systems using MySQL 5.1 and higher can enable and use the TRIGGER privilege. However, this privilege is not available if binary logging is enabled for the MySQL service.

Neither TRIGGER nor VIEW is available to systems using MySQL 4.0 or 4.1.