Tuesday, June 19, 2012

cpanel error.

Main >> Account Functions >> Password Modification

Iam getting error:
[a fatal error or timeout occurred while processing this directive]

 Read of CDB_File failed: Protocol error at /usr/local/cpanel/Cpanel/CPAN/Locale/Maketext.pm line 217.
Cpanel::CPAN::Locale::Maketext::maketext() called at /usr/local/cpanel/whostmgr/docroot/templates/_pkg_hover.tmpl line 9
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_pkg_hover.tmpl line 9
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_pkg_hover.tmpl line 16
Template::Provider::__ANON__('Template::Context=HASH(0x15fefc90)') called at /usr/local/cpanel/perl/Template/Document.pm line 151
eval {...} called at /usr/local/cpanel/perl/Template/Document.pm line 149
Template::Document::process('Template::Document=HASH(0x1604d220)', 'Template::Context=HASH(0x15fefc90)') called at /usr/local/cpanel/perl/Template/Context.pm line 347
eval {...} called at /usr/local/cpanel/perl/Template/Context.pm line 321
Template::Context::process('Template::Context=HASH(0x15fefc90)', '_pkg_hover.tmpl') called at /usr/local/cpanel/whostmgr/docroot/templates/userlist.tmpl line 156
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/userlist.tmpl line 16
Template::Provider::__ANON__('Template::Context=HASH(0x15fefc90)') called at /usr/local/cpanel/perl/Template/Document.pm line 151
eval {...} called at /usr/local/cpanel/perl/Template/Document.pm line 149
Template::Document::process('Template::Document=HASH(0x16039910)', 'Template::Context=HASH(0x15fefc90)') called at /usr/local/cpanel/perl/Template/Context.pm line 347

Solution :
 /usr/local/cpanel/bin/build_locale_databases --force

Monday, June 11, 2012

Firefox is already running

Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system:

Iam getting this message while opening my firefox.

Fix:-
cd /home/ajeesh/.mozilla/firefox/b8pnxnp6.default
ajeesh@tech4:~/.mozilla/firefox/b8pnxnp6.default$ rm .parentlock

Saturday, June 9, 2012

can not login cpanel as Root

I have an issue with cpanel root loging. I have checked in iptables whether my ip has denied but all are safe.


 [/]# tail -f /usr/local/cpanel/logs/cphulkd.log

Sat  9 07:35:14 20 [info] Connection service=system ip=115.119.57. port=2086 user=root blocked by cphulkd (IP Address is blacklisted matched 115.119.57.)



So I have executed the following command and which fixed my issue.
[/]# /scripts/cphulkdwhitelist 115.119.57.
115.119.57. has been whitelisted

Monday, June 4, 2012

ezeelogin 500 Internal Server Error

Ezeelogin 500 Internal Server Error The request was not completed. The server met an unexpected condition.        ajeeshbkannan.com/ezeelogin/ (port 443)          Please forward this error screen to ajeeshbkannan.com's WebMaster

Error log:-

Mon Jun 04 10:47:52 2012] [error] [client 115.119.57.2] SoftException in Application.cpp:357: UID of script "/usr/local/apache/htdocs/ezeelogin/index.php" is smaller than min_uid
[Mon Jun 04 10:47:52 2012] [error] [client 115.119.57.2] Premature end of script headers: index.php
[Mon Jun 04 10:47:52 2012] [error] [client 115.119.57.2] File does not exist: /usr/local/apache/htdocs/ezeelogin/sys_cpanel, referer: https://ajeeshbkannan.com/ezeelogin/

Fix:
your ezeelogin index.php file permission should be nobody.nobody

+++++++++++++++++++++++++++++++++
-rw-r--r-- 1 nobody nobody  4364 Jun  4 10:19 index.php

Please note the other folder permission should be root.root
+++++++++++++++++++++++++++++++++

/etc/hosts for windows

Programmers test their web sites by calling the links http://IP/~username when the dns is not transferred completely for a domain.

But some times this function will not work due to the following reasons.
1. Some hosting providers enabled "mod_userdir" on their apache tweak for security reasons.
2. Once you transferred your domain to another server and your domain is installed with some scripts like wordpress,joomla etc( Because their db's host name should be yourdomainname.com not IP/~username

In that time you can edit the following file in your windows machine
c:\WINDOWS\system32\drivers\etc\hosts 
as
IP_current_server   domainname.com