Process older log files in AWStats

Published on 21 March 2013 - 7:22am
Look for your DataDir of your website and remove the particular month of the file. In our case, we are using Virtualmin that installs the AWStats and by default the DataDir of the site is stored in /var/www/awstats/[site-domain]. For example, if the site domain is gix.my, the directory that stores all the AWstats data files would be in /var/www/awstats/gix.my. You may want to backup that folder first before you start to do anything with the files. Make sure that you have the old log files that needs to be processed by AWStats.

Fix corrupted filesystem in Amazon EC2

Published on 20 June 2012 - 8:36pm

Is your Amazon EC2 having the similar problem below?

fsck died with exit status 8
failed (code 8).
*File system check failed.
A log is being saved in /var/log/fsck/checkfs if that location is writable.
Please repair the file system manually.
*A maintenance shell will now be started.
CONTROL-D will terminate this shell and resume system boot.
Give root password for maintenance
(or type Control-D to continue):

MySQL Can't open file (Errno: 24)

Published on 17 March 2012 - 8:16pm
[ERROR] /usr/sbin/mysqld: Can't open file: './database/table.frm' (errno: 24)

If you are facing this irritating problem, which not only took me hours to figure it out but also caused a little panic because it wasn't fixed although I rebooted the MySQL and the server itself - do not worry as this can be fixed very easily!

Postfix Gmail SMTP Relay for Ubuntu

Published on 23 February 2012 - 8:10pm
postfix-gmail.jpg

I realize that there are too many tutorials on getting your Relaying Postfix SMTP via smtp.gmail.com to work. Most of them are long and complicated, but I found a tutorial from this particular website which provides the shortest, simplest, and the clearest tutorial on how to get it work in less than 5 minutes. I would like to post it here for my future use again, so that I don't need to spend hours finding the right tutorial to get it done :)

FTP Login Problem (Error 530)

Published on 23 February 2012 - 7:44pm

If you are having trouble with your FTP login even though you entered the correct username and password, there is a high possibility that this problem was due to SELinux.

I've encountered this problem on my CentOS 6 box and after disabling SELinux, the issue is resolved! To disable SELinux (for CentOS 6):

  1. Type nano /etc/selinux/config
  2. Change value SELINUX=disabled
  3. Reboot your server

Hope it helps! It took me hours to get this solved.