Wednesday, July 9, 2008

RvSkin Issue

Hello,

When you are trying to login to cPanel and getting fatal error message like

[a fatal error or timeout occurred while processing this directive]
Can't locate DynaLoader.pm in @INC (@INC contains: /usr/local/cpanel
/usr/local/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Digest
/usr/local/cpanel/build-tools/stubs /usr/lib/perl5/5.6.2/i686-linux
/usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux
/usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl . /usr/local/cpanel
/usr/local/cpanel/Cpanel /usr/local/cpanel /usr/local/cpanel/Cpanel
/usr/local/cpanel /usr/local/cpanel/Cpanel /usr/local/cpanel/Cpanel
/usr/local/cpanel) at /usr/local/cpanel/Cpanel/RvHtmlRenderer.pm line 50.
Compilation failed in require at /usr/local/cpanel/Cpanel/Rvall.pm line 50.
Cpanel::Rvall::BEGIN() called at /usr/local/cpanel/Cpanel/RvHtmlRenderer.pm
line 50 eval {...} called at /usr/local/cpanel/Cpanel/RvHtmlRenderer.pm line 50
require Cpanel/Rvall.pm called at /usr/local/cpanel/Cpanel/Rvskin.pm line 39
Cpanel::Rvskin::BEGIN() called at /usr/local/cpanel/Cpanel/RvHtmlRenderer.pm
line 50 eval {...} called at /usr/local/cpanel/Cpanel/RvHtmlRenderer.pm line 50
require Cpanel/Rvskin.pm called at (eval ) line 1 main::BEGIN() called at ]

=============================================
Check if x skin is working properly on server. If yes then you need to reinstall RvSkin. Use following command:

To reinstall:

rm -f /usr/local/cpanel/Cpanel/rvversion; perl /root/rvadmin/auto_rvskin.pl

"License File Expired" error

Hello,

The WHM was showing "License File Expired" error. After running command /usr/local/cpanel/cpkeyclt we were getting following error.

[root@maui ~]# /usr/local/cpanel/cpkeyclt
Updating Internal cPanel Information...........................................................................................................................Unable to establish connection. This may indicate a misconfigured firewall hardware device, or faulty hardware.
Done
.Done

FIX: I have added 4.2.2.6 in /etc/resolv.conf to resolve the domain for cpkeyclt to run properly.

Tuesday, July 1, 2008

user’s having mail account size more than 20 MB

Today I met with an issue wherein I need to find out the entire user’s having mail account size more than 20 MB on Linux server.

I have created a script for the same.

cd /home

ll /var/cpanel/users | awk '{print $9}' > list

pico test

Copy and paste following code in test file

for user in `cat list`
do
find /home/$user/mail/ -size +20480k
done
echo "~~~~~~~~~~~~~~~~D~O~N~E~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

chmod 755 test

./test

This will generate a list of user name one bye one

Linux / UNIX find out size of email account or mailbox

Linux / UNIX find out size of email account or mailbox

Use awk command to print user mailbox size along with username

Finally sort command will sort mailbox size.

Type the command:
$ ls -lL /var/mail | awk '{print $5, $9}' | sort -rn
OR
$ ls -lL /var/mail | awk '{print $5, $9}' | head -10

==========================================================
cd /var/spool/mail;ll -lh | grep 15M