Archive for January, 2009

Upgrade mysql to latest version in parallels plesk

Monday, January 26th, 2009

Note: It is good practice to back up your data before installing any new version of software. Although MySQL has done its best to ensure a high level of quality, you should protect your data by making a backup. MySQL generally recommends that you dump and reload your tables from any previous version to upgrade [...]

Reset root password on Xen DomU

Wednesday, January 7th, 2009

Heres a simple method to get this accomplished.What we normally do on a PC if root password is lost is..console the machine and when the grub boot menu startsup edit the kernel commandline parameter to include init=/bin/sh which makes the kernel to use the sh shell as the init program instead of the hardcoded /sbin/init [...]

Errors with Sugar CRM installation

Monday, January 5th, 2009

You might come across errors like the following during a Sugar CRM installation:-
PHP Warning:  require_once(modules/Administration/UpgradeHistory.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/<username>/public_html/crm/install/install_utils.php on line 48
[Sun Jan 04 22:44:43 2009] [error] [client 61.95.196.73] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required ‘modules/Administration/UpgradeHistory.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/<username>/public_html/crm/install/install_utils.php on line 48
This can [...]

cleanup old mails in maildir mailbox

Friday, January 2nd, 2009

If we want to selectively delete messages from a maildir format mail account the following python script comes handy
============
http://svn.houseofnate.net/unix-tools/trunk/cleanup-maildir
============
An example usage i had for deleting messages older than 7 days in the Spam folder is
dir=”/the/path/to/my/maildir”
cleanup-maildir –maildir-root=$dir –age=7 delete ‘Spam’

Custom mail filtering in plesk9 postfix

Friday, January 2nd, 2009

This arcticle desribes how we can implement custom mail filtering in a plesk9 server having postfix as the MTA. This can be used for mailfiltering tasks like moving over spam messages to a spam or .Spam folder at delivery time etc.This is only a single use that i have described here..but you can devise do [...]