Archive for August, 2010

Exim started generating error message in /var/log/exim_mainlog after update.

ACL: ratelimit database not available

The cause for this issue is exim cache database might be corrupted. To fix this error the exim cache database on the server needs to be remove(Exim rebuilds this database again after exim restart)

To fix this run the following command as root to remove the cache database.

rm -fv /var/spool/exim/db/*

Then restart the exim :

/etc/init.d/exim restart
SBDavid

Yum error: No module named sqlite

Yum error: No module named sqlite

yum seems to be showing sqlite error.

yum clean all

There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:

No module named sqlite

Reference : http://wiki.linux.duke.edu/YumFaq

To fix this download the latest python-sqlite rpm from CentOS mirror and peform a forceful upgrade.

rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm –force

yum clean all

yum update

How to reconfigure and change status for domain in plesk database.

Reconfigure Domain:

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=domain.com

Change the status for domain:

/usr/local/psa/bin/domain -u domain.com -status enabled

You should get a message the Object successfully enabled, once that is done the domain should be unsuspended in Plesk.

SBDavid

How to extract a .war file

How to extract a .war file

If your hosting provider supports Tomcat, but not .war files, then you can extract .war file in your public_html folder to run your Tomcat application from there.

jar xvf file-name.war

How to Setup Reseller Private Nameservers in WHM

First we need to register the name servers before we set them up on the server.
Resellers can also have their own private name servers for their own clients making the server provider more anonymous.

Login to your WHM account as root.
Click on Reseller Center on the left hand side.
Under Edit Reseller Privileges/Nameservers, select the reseller account you want to provide with private name servers.
Scroll down to the very bottom of the page until you see: Primary Nameserver.

In the Primary Nameserver field enter the primary nameserver.
Click “Assign IP Address”
Click “Add an A Entry for this nameserver”
In the Secondary Nameserver field enter the secondary.
Click Save

« Prev - Next »