Webalizer not working on Ubuntu

Linux, Tutorials, 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 [code]root@backups:~# /etc/cron.daily/webalizer Error Opening file /usr/share/GeoIP/GeoIP.dat[/code] So we have identified the culprit that geoip-database is not installed. 2) Fix this by installing geoip-database [code]root@backups:~# apt-get install geoip-database[/code] (more…)
Read More

package-cleanup: command not found

CentOS, How to, Linux, Tips and Tricks
I tried to do package-cleanup and found this [code highlight="2"]root@ns1 [~]# package-cleanup --problems -bash: package-cleanup: command not found[/code] If I was on Ubuntu, I would have done "apt-get install package-cleanup" but it does not work that way on CentOS, its actually available in yum-utils package, install it by typing [code]yum install yum-utils[/code] Enjoy!!
Read More

Freshclam daemon not running

CentOS, How to, Linux
Normally, I have two things on every Linux box so that I know whats going on NAGIOS monitoring (nrpe) 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. [code title="This is what I got in logwatch today" highlight="3,4,5"] --------------------- 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 ------------------------- [/code] 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 [code]root@cpanel [~]# freshclam ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check…
Read More

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

Linux, Tips and Tricks, Tutorials, Ubuntu
The other day, I was getting this weird error [code]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[/code] Fix it by doing this [code]root@beta:~# rm -fr /etc/php5/conf.d/sqlite.ini[/code] Because this extension does not exist, you can verify it by running this, you will see that there is already sqlite3.ini file there [code]root@beta:~# ls -lh /usr/lib/php5/20090626+lfs/ | grep sqlite[/code]
Read More

EasyPaisa Pakistan website showing SQL query

Pakistan, Thoughts
Go to EasyPaisa Pakistan and go to EasyPaisa Shop --> Find an Easypaisa Merchant and once you are there, search for something and hit "Submit" [caption id="attachment_1095" align="aligncenter" width="681" caption="Telenor EasyPaisa "Find an Easypaisa Merchant" search form"][/caption] 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 [caption id="attachment_1096" align="aligncenter" width="300" caption="Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page"][/caption] [caption id="attachment_1097" align="aligncenter" width="584" caption="FULL VIEW - Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page"][/caption]
Read More

My local weather is San Miguel de Tucumán?

Today, I woke up and realized that my local weather showing on my Android via GPS was showing San Miguel de Tucumán (weird!!) which is not where I was (PAKISTAN). [caption id="attachment_1077" align="aligncenter" width="480" caption="San Miguel de Tucumán as location on my cell? #fail since I am in Pakistan"][/caption]
Read More