Archive for August, 2010

SBDavid

chkservd service monitor

chkservd service monitor

chkservd is a service running on Cpanel servers. chkservd service monitors other service, if any of the service that is monitored by chkservd is found down, chkservd will restart the service and notify server admin

You can start, stop chkservd with following commands

service chkservd start
service chkservd stop
/etc/rc.d/init.d/chkservd start
/etc/rc.d/init.d/chkservd stop

cPanel offers ‘chkservd’, a monitoring daemon that monitors the services on the server and restart them if found offline.

How to access psa database in Plesk Server

We can access plesk psa database, from the Linux command line (via ssh) and from the Plesk control panel.

The /etc/psa/.psa.shadow file contains the Plesk admin password.

So to access the database run the following command.

mysql -uadmin -p`cat /etc/psa/.psa.shadow`

Select the psa database.

mysql> use psa;

To view all the tables

mysql> show tables;

Localdomains and remotedomains in cPanel Server.

Problem : A user that pointed their MX records to another server but email from their website or users on the same server isn’t going out of the server.

This is because Exim on the server is configured to use files called localdomains and remotedomains, which tell Exim whether a domain’s email is hosted locally or remotely.

The files controlling these actions are:

/etc/localdomains: email hosted locally

/etc/remotedomains: email hosted remotely

* The remotedomains file takes precedence, so if a domain is located in both files, the mail server should use remotedomains.

Common Errors:

*Email from the user’s site is not being delivered to their outside mail server - add the domain to remotedomains
*lowest numbers MX record points to localhost - adding the domain to localdomains will resolve the issue.
*Email bouncing stating the user does not exist - add the domain to remotedomains

SBDavid

Error: rpmdb open failed

Error: rpmdb open failed

Error: rpmdb open failed

The “rpmdb open failed” error message is mostly received when the rpm databases __db.00* located under /var/lib/rpm directory are corrupted. This results in a “error: cannot open Packages database” message while installation/updatation of a package via yum.

[/var/lib/rpm]# ls -l *db*
-rw-r–r– 1 root root 0 Jul 20 21:45 __db.000
-rw-r–r– 1 root root 24576 Aug 4 09:25 __db.001
-rw-r–r– 1 root root 1318912 Aug 4 09:25 __db.002
-rw-r–r– 1 root root 450560 Aug 4 09:25 __db.003

The common fix is to delete the rpm databases and run rebuilddb, like

yum clean all
rm -f /var/lib/rpm/__db*
rpm –rebuilddb
yum update

However, in case of a VPS, yum may still not work with rebuilding rpm database and you have to try create a /dev/urandom device. Login to your VPS and execute

rm /dev/urandom
mknod -m 644 /dev/urandom c 1 9

[/dev]# ls -ld urandom
cr–r–r– 1 root root 1, 9 Jul 19 10:27 urandom

To fix the problem permanently, login to Hardware Node and execute:

vzctl stop VEID
mknod –mode 644 /vz/private/VEID/fs/root/dev/urandom c 1 9
vzctl start VEID

Lowest numbered MX record points to local host

temporarily rejected RCPT : lowest numbered MX record points to local host

If you see the following in exim’s main_log: /var/log/exim_mainlog

This indicates that the domain doesn’t exist in /etc/localdomains. Edit the file with and ensure it’s listed there.

Please also ensure that it isn’t listed in /etc/remotedomains.

« Prev - Next »