Archive

Archive for the ‘cPanel Help’ Category

Cpanel Access Denied.

December 7th, 2008

If you are getting following message when you access your cpanel ..

Functions in cPanel / WHM are available only directly through the cPanel and WHM interfaces or through our XML API. It appears that this request is coming from a referring site and might be malicious.

You can get login prompt by clicking on Clink Here to authroise Request. orTo avoid this your hosting provider should do this

WHM - Tweak Settings

Disable the Option:

Only permit cpanel/whm/webmail to execute functions that have a referrer that matches one of the domains/ip on this server. This will help prevent XSRF attacks, but may break integration with other systems, login applications, and billing software.

cPanel Help

How to disable webmail interface for single account

December 4th, 2008

If you want to disable any of the webmail interface for an account you can follow the procedure given below.

Login to shell as Root

For example if you want to disable ‘Horde‘ and ‘Neomail’ for the user ‘test’

Open the file:
vi /var/cpanel/users/test

Then add the following lines ::
skiphorde = 1
skipneomail = 1
skipsqmail=0

save the file and exit.

Note: ‘1′ is for disable and ‘0′ is for enable

The line “skipsqmail=0″ is not required if it is already enabled.

Then restart the cpanel

service cpanel restart or /etc/init.d/cpanel restart Thats it Smile

This will disable ‘Horde‘ and ‘Neomail’ for the user ‘test’ for all email accounts under that hosting account.

cPanel Help

Horde Mail Login Failed Error

December 4th, 2008

Whenever we see any login errors like

“Login failed” or
“Notice: (null)(): Connection failed to localhost,143: Connection refused (errflg=2) in Unknown on line 0″

for the horde mail, ssh as a root and just restart the imap service using anyone of the scripts

/scripts/restartsrv_imap
/scripts/restartsrv_inetd

cPanel Help

No Input File Specified

December 2nd, 2008

No Input File Specified .. this error occur when you click on Fantastico icon in Cpanel and this can be resolved by running following script …

/scripts/makecpphp

Above script will make new cpanel php.ini file, please note that this is not related to apache,  php.

cPanel Help

Email accounts quota in cpanel

November 28th, 2008

Some times cpanel may show that you exceeded quota of your email accounts, but inobox has no emails in it and you may get invalid maildir size error in exim_mainlog. In this case run the following commands tofix it.

find /home/*/mail/ -name maildirsize | xargs rm -vf

/scripts/generate_maildirsize --force --allaccounts

cPanel Help

Problem with /scripts/runweblogs

November 28th, 2008

If you get following error when you run /scripts/runweblogs on server to update webalizer stats ..

ERROR:
/usr/bin/perl: relocation error: /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so: undefined symbol: Perl_Gthr_key_ptr
/usr/bin/perl: relocation error: /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.pm: undefined symbol: Perl_Gthr_key_ptr

Solution:

Go through the following steps:

Login to server as root

cd /usr/local/src/

wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.x/rrdtool-1.0.49.tar.gz

tar -zxf rrdtool-1.0.49.tar.gz

cd rrdtool*

./configure

make

make install

make site-perl-install

mv /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so.bk

cp /usr/local/src/rrdtool-1.0.49/perl-shared/blib/arch/auto/RRDs/RRDs.so /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so

mv /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm.bk

cp /usr/local/src/rrdtool-1.0.49/perl-shared//RRDs.pm /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm

Now try to run /scripts/runweblogs username

cPanel Help

Horde won’t delete emails

November 28th, 2008

Some times cleints getting following error when they are trying to delete emails in HORDE, even the account and email account disk space is not full.

There was an error moving messages from “Inbox” to “trash”. This is what the server said: [ALERT] COPY failed - no write permission or out of disk space.

Don’t waste your time by running scripts, just try the following method

- make copy of files for backup and move somewhere else
- remove mail account in Cpanel
- create exact mail account
- copy backup inbox file over new
- re-log into Horde and try delete now

cPanel Help

Cpanel Cron Job for taking mysql database backup

November 27th, 2008

Command for taking backup of your database..
you can take the database backup through the following cron job

0 0 * * * mysqldump -hlocalhost -uusername --password=password --opt yourdbname >
/home/username/public_html/dbdump.sql

Repalce username and passwd with your mysql database_user and passwd

The above cron job would take the backup of your database
daily at 12:00

cPanel Help