Freshclam daemon not running

Normally, I have two things on every Linux box so that I know whats going on

  1. NAGIOS monitoring (nrpe)
  2. Logwatch

Today, I got something in my logwatch email and it was strange because just the other day, I upgraded the clamav to latest version using epel reo.

 --------------------- clam-update Begin ------------------------

 The ClamAV update process (freshclam daemon) was not running!
 If you no longer wish to run freshclam, deleting the freshclam.log
 file will suppress this error message.

 ---------------------- clam-update End -------------------------

It appears that the latest version has some permission issues on the log file because when I try to run freshclam on command line I get this

root@cpanel [~]# freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

The solution?

The solution is very simple :) just do the following

touch /var/log/clamav/freshclam.log
chown clamav /var/log/clamav/freshclam.log
chmod 666 /var/log/clamav/freshclam.log

and after that, run freshclam (the service that updates the virus-definition for clamav)

root@cpanel [~]# freshclam

Installing EPEL repo

Installing EPEL repo in CentOS is simple, if you do not know what EPEL is, read more about it here.

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

To configure epel or disable it use

nano /etc/yum.repos.d/epel.repo

and then switch the config enabled to 0 (or vice versa)

Don’t forget to do the following

yum clean all

Ubuntu – Unable to load dynamic library ‘/usr/lib/php5/20090626+lfs/sqlite.so’

The other day, I was getting this weird error

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/sqlite.so' - /usr/lib/php5/20090626+lfs/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

Fix it by doing this

root@beta:~# rm -fr /etc/php5/conf.d/sqlite.ini

Because this extension does not exist, you can verify it by running this, you will see that there is already sqlite3.ini file there

root@beta:~# ls -lh /usr/lib/php5/20090626+lfs/ | grep sqlite

Native Screenshots in Android Ice Cream Sandwich

Like native Panoramic mode in the Android Ice Cream Sandwich camera (Android v 4.0.4), I also have Native screenshots capability (just didn’t knew how to use it until 3 weeks ago) with my OTA update to ICS. All I have to do is, hit the power and the volume down key at once to take the screenshot.

Uninstalling "No Root Screenshot It" since Android Ice Cream Sandwich has native screenshot

Uninstalling "No Root Screenshot It" since Android Ice Cream Sandwich has native screenshot

hence uninstalled “No Root Screenshot It“.

Review: The Avengers Live Wallpapers for Android

So, I installed the The Avengers Live Wallpapers for my Android Phone since it was on Google Play’s (previously known as Google Market) feature list

The Avengers Live Wallpaper as featured on Google Play

The Avengers Live Wallpaper as featured on Google Play

Almost immediately after installing it, I could see annoying little nag screens on every screen unlock, like the one you can see in the screenshot below.

The Avengers Live Wallpaper nag screens

The Avengers Live Wallpaper nag screens

Which is pretty nasty way to convince me to buy the pro version. I uninstalled it right away. I highly recommend everyone not to install it on their cell else you’ll have to uninstall it later.

Update: I have posted a review on Google Play, you can read it here

TechieVPS Review

So, I was tempted by one posting on WHT a few months ago but it was Rus Foster’s who posted about this new web outlet. The specs and the price was great. I opted for quarterly and it dropped to $2.5/mo with the following specs

  • 250MB memory
  • 10GB storage
  • 1TB of data transfer
  • 1 x IPv4
  • No IPv6 at the moment
  • XEN-HVM / SolusVM

Yes, its the same UK2 Group which also owns VPS.NET, ThurstVPS.com etc. At first the test results were very good and tempting but I wanted to see how well it goes before putting something serious on it.

Support is decent, replies within 15-20minutes. After using it (idling) for the last 4 months, I must say that the server’s performance has degraded a lot and this is the latest test result

root@redmine ~# dd if=/dev/zero of=iotest bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 115.089 s, 9.3 MB/s

 

root@redmine ~# wget cachefly.cachefly.net/100mb.test
--2012-04-17 10:00:38--  http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net... 205.234.175.175
Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: `100mb.test'

100%[======================================>] 104,857,600 2.42M/s   in 28s

2012-04-17 10:01:06 (3.55 MB/s) - `100mb.test' saved [104857600/104857600]

 

root@redmine ~# cat /proc/cpuinfo | head -8
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 30
model name      : Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz
stepping        : 5
cpu MHz         : 2666.263
cache size      : 8192 KB

Contacted support and got this in return so … this may not get fixed anytime soon. I was hoping to be suggested to transfer to another node or something.

techieVPS.com Support Ticket #223280

techieVPS.com Support Ticket #223280

View the complete image by clicking here

Yes, I have cancelled my VPS effective immediately because I just cannot drag a VPS that I may not use. Rus Foster was nice enough to handle the request for me to refund the future invoice that I already paid in advance (due 24th April, paid 10th April).

EasyPaisa Pakistan website showing SQL query

Go to EasyPaisa Pakistan and go to EasyPaisa Shop –> Find an Easypaisa Merchant and once you are there, search for something and hit “Submit”

Telenor EasyPaisa "Find an Easypaisa Merchant" search form

Telenor EasyPaisa "Find an Easypaisa Merchant" search form

On the new page with listing, select Control+A or highlight the page with a mouse to see a “debug info” SQL query right there in white text. I really do wish someone does not use the info to plan an SQL injunction

Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page

Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page

FULL VIEW - Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page

FULL VIEW - Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page

#WhyIhateGEO trending on Twitter Pakistan at the moment

#WhyIhateGEO (Why I hate GEO) is one of the hashtags trending in Twitter Pakistan to condemn the non-Pakistani culture promoting in Pakistan by GEO TV. Including but not limited to promoting Indian Movies, Indian culture and an overall pro-Indian approach. Go ahead and read the blog post that started it all.

Any freedom comes with some moral obligations. Media in Pakistan got its freedom but unfortunately it forgot all its obligations to society, culture and religion. The recent wave of projecting Indian culture on Pakistani Media has raised concern among Pakistanis. At times such news item appear on screen that one feels embarrassing to watch on particularly when accompanying family.

There is a growing concern among the masses that Geo is openly promoting Indian culture and values in Pakistan through its private channels Geo News, Geo Entertainment and Geo Super.  It is a known fact that India has been promoting its culture through bollywood movies and dramas, but seeing a Pakistani channel promoting it so vigorously raises concerns for their credibility and intentions about working on some other “hidden agenda”.

 

I could not have put more beautifully as the blog post has already described it. but still there are morons out there who still think they KNOW-IT-ALL and as if everyone’s the same

Aisha Qadir (@Aero_dudette) on Twitter defending GEO TV and somewhat promoting Indian Modia

Aisha Qadir (@Aero_dudette) on Twitter defending GEO TV and somewhat promoting Indian Modia

You can read this tweet online too, if not deleted by its original author. I believe its a duty for all of us to protect our local culture in the best possible way