RSS

Daily Archives: January 13, 2012

Problem accessing server via SSH

While doing SSH with correct details we get Access denied quite strange!! but you can elimivnate the error with ease cgheck the /var/log/messaages

You might see following error in the error logs:
===========================================================================================
su(pam_unix)[17977]: session opened for user root by (uid=0)
PAM-shells[23966]: /etc/shells is either world writable or not a normal file
sshd: sshd shutdown succeeded
===========================================================================================
Now just check the permission of /etc/shells on the server.
You might see
[root@vpxxx~]# ls -ld /etc/shells
-rwxrwxrwx  1 root root 32 Jun 18 20:17 /etc/shells
here the permisions are incorrect the permission must be 755 i.e
[root@vpxxx~]# ls -ld /etc/shells
-rwxr-xr-x  1 root root 32 Aug 31 07:46 /etc/shells

Just make the permission to 755 thats it now log into your server via SSH bingo you are in. 😉

Advertisements
 
Leave a comment

Posted by on January 13, 2012 in Uncategorized

 

How to install mailman on plesk server

How to install mailman on plesk server

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1] Download the link :

http://download1.parallels.com/Plesk/Plesk8.3/CentOS5/swsoft_installer_v3.3.0_build080201.09_os_CentOS_5_i386
2] after downloading the above tar file make it permission to 755
3] execute it and the scripts automatically starts and follow the steps.

 
Leave a comment

Posted by on January 13, 2012 in Uncategorized

 

error: Unable to fetch the cPanel user file for clients

When cPanel is upgraded to higher version we get an error when we are trying to swap username of any domain tghe error is as follows:
===============================================================
error: Unable to fetch the cPanel user file for clients
===============================================================
For solving the above issue just follow following steps:

cd /var/cpanel/users

Here the username will be  the cPanel username. The correct permissions on the file should look like the following:

-rw-r—–  1 root username  xxx Aug  8 21:00 username

Now if the above permission and ownership is correct edit the username

vi username

Now search for “USER=”
This feild must contain:
USER=cpanelusername
In my case there was
USER=clients instead of cpanel username

Just change it to cpanel username if it is not thats it now try adding any username for your domain..

 

It works…. 😎

 
Leave a comment

Posted by on January 13, 2012 in Uncategorized

 

DNS not getting updated unable edit dns zone from WHM

DNS not getting updated

unable edit dns zone from WHM

error log cpanel :

tail /usr/local/cpanel/logs/error_log
Cpanel::SafeFile::safelock(‘/var/cpanel/dnsrequests’) called at /usr/local/cpanel/Cpanel/SafeFile.pm line 24
Cpanel::SafeFile::safeopen(GLOB(0x88dc038), ‘>’, ‘/var/cpanel/dnsrequests’) called at whostmgr/bin/dnsadmin-ssl.pl line 1344

This is a cpanel bug and is caused by corrupted dnsrequest lock file. This can be fixed by manually dleteing the lock file

# rm /var/cpanel/dnsrequests.lock

😎

 

 
Leave a comment

Posted by on January 13, 2012 in Uncategorized

 

We’re sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.

While dealing with mailman we get following error

In cPanel >> Mailing Lists >> Modify

Getting the follwing error
*******************************************************************************************************
Bug in Mailman version 2.1.9.cp2

We’re sorry, we hit a bug!

Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.

***********************************************************************************************************
Please look for the error in mailman if you find the error as shown below:

vi /usr/local/cpanel/3rdparty/mailman/logs/error

**********************************************************************************************************
self._parsebody(root, fp, firstbodyline)
File “/usr/local/cpanel/3rdparty/mailman/pythonlib/email/Parser.py”, line 265, in _parsebody
msg = self.parse(fp)
File “/usr/local/cpanel/3rdparty/mailman/pythonlib/email/Parser.py”, line 64, in parse
self._parsebody(root, fp, firstbodyline)
File “/usr/local/cpanel/3rdparty/mailman/pythonlib/email/Parser.py”, line 206, in _parsebody
raise Errors.BoundaryError(
BoundaryError: No terminating boundary and no trailing empty line

*********************************************************************************************************

The Resolution for the above error is as follows:

/scripts/fixmailman
cd /usr/local/cpanel/3rdparty/mailman
chmod -R 2775 ./*

 
Leave a comment

Posted by on January 13, 2012 in Uncategorized

 

rpmdb: PANIC: fatal region error detected; run recovery

rpmdb: PANIC: fatal region error detected; run recovery

So to resolve the above issue Just do following things:

– Clean all yum cache

– Rebuild the rpm database

– Perform a fresh and clean yum update again

1. Clean all yum cache

This is easy just perform the following command :

yum clean all

rm -f /var/lib/rpm/__db*

That will get rid all the yum caches and refresh everything and of course deletes the rpm database package.

2. Rebuild the rpm database

Rebuild the rpm database packages again by executing:

rpm –rebuilddb

It may takes some times for this process and once it done, you should get the command prompt back.

3. Perform a fresh and clean yum update again

And normal practice, perform the yum update again

yum update -y

And yum update will run the update again with a fresh rpm database package and updates it cache as well … and so yum lives happily ever after.

It Really Solves The Problem 😉

 
Leave a comment

Posted by on January 13, 2012 in Uncategorized

 

Recirecting WWW to without WWW

How to redirect http://www.example.com to example.com:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^/?$ “http\:\/\/example\.com\/” [R=301,L]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

RewriteCond %{HTTP_HOST} ^www\.example\.co\.uk$
RewriteRule ^/?$ “http\:\/\/example\.co\.uk\/” [R=301,L]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
Leave a comment

Posted by on January 13, 2012 in Uncategorized