Monday, July 2, 2012

Downloading jdk package

We are facing downloading issues for jdk packages from oracle web site

http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html

The downloaded file should be in the form of some html file and which is not useful for our installation.

Example:
root@server [/usr/local/src]# wget http://download.oracle.com/otn-pub/java/jdk/6u33-b03/jdk-6u33-linux-x64.bin

100%[====================================================================================================================>] 5,307       --.-K/s   in 0s     

2012-07-01 14:57:24 (298 MB/s) - `download-fail-1505220.html' saved [5307/5307]

Here you can see that our downloaded file is a .html file.

Oracle web site is asking for license agreement and we need to confirm this , then only we can upload the original file to our server.

Here is the steps to direct jdk package from oracle web site to your server.

1.  root@server [/usr/local/src]# wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-7u3-download-1501626.html;" http://download.oracle.com/otn-pub/java/jdk/6u33-b03/jdk-6u33-linux-x64.bin


Saving to: `jdk-6u33-linux-x64.bin?AuthParam=1341167305_9b2519bdbfdd528c07670b1edf6b1762'

100%[====================================================================================================================>] 72,029,591   144K/s   in 10m 25s

2012-07-01 13:37:27 (113 KB/s) - `jdk-6u33-linux-x64.bin?AuthParam=1341167305_9b2519bdbfdd528c07670b1edf6b1762' saved [72029591/72029591]

2. root@server [/usr/local/src]# mv jdk-6u33-linux-x64.bin\?AuthParam\=1341167305_9b2519bdbfdd528c07670b1edf6b1762 jdk-6u33-linux-x64.bin


Thats it now you have downloaded the latest jdk file from oracle web site to your server.

 wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com"    ----> without ssl

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

Thursday, May 31, 2012

installing cagefs incpanel server.

First you need to check your cloudlinux version. If the version is higher than lve0.8.54. Do the following steps.

yum install cagefs
/usr/sbin/cagefsctl --init
By default cagefs is disabled for all users


/usr/sbin/cagefsctl --enable-all

/usr/sbin/cagefsctl --list-enabled  -> list all the cagefs enabled users

FYI:  We need to enable normal shell for any users using SFTP. Jailshell will not connect sftp.

Sometimes your ffmpeg path will not recognize.Issues can be affected application like clip bucket, phpmotion,

While converting this will shows sh:ffmpeg path not found also while checking the server modules this will not recognize ffmpeg,flvtool,mp4box

Solution
cagefsctl --addrpm ffmpeg
cagefsctl --update
in latest version you may need to run the below command:

]# cagefsctl --force-update



OR
[/etc/cagefs/conf.d]# cat clipbucket.cfg
[clipbucket]
comment=ClipBucket
paths=/usr/local/bin/ffmpeg, /usr/bin/php, /usr/local/bin/flvtool2, /usr/local/bin/MP4Box




For updating cagefs to the latest version:

 Using the following command i have updated using following :
 # yum update lve-utils lve-stats cagefs
 

lve-utils-0.6-10.el5.cloudlinux to => lve-utils-1.0-34.el5.cloudlinux
lve-stats-0.8-2.el5.cloudlinux to => lve-stats-0.9-6.el
cagefs-3.5-2.el5.cloudlinux to => cagefs-3.6-4.el5.cloudlinux