Tuesday, October 21, 2014

Fix the connection time out error in Direct Admin file manager.

Issue : When you try to login in Direct Admin file manager section you see the following error :

Your connection has timed out
Details
Consider disabling the Folder Usage Count.


Fix : This connection error can be easily fixed by running the below commands.

1.Edi/usr/local/directadmin/conf/directadmin.conf file and add the line filemanager_du=0

echo "filemanager_du=0" >> /usr/local/directadmin/conf/directadmin.conf

2.Add the line action=directadmin&value=restart in the file /usr/local/directadmin/data/task.queue 

#echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue

3.Also run the below command.

#/usr/local/directadmin/dataskq

Now you are able to login the Direct Admin file manager. 

Thursday, October 16, 2014

Fix POODLE SSLV3 Security Vulnerability or the Poodle CVE-2014-3566 bug

POODLE :- Padding Oracle On Downgraded Legacy Encryption

WHAT IS :

It is a newly discovered vulnerability on the basic protocol used for encrypting the web traffic. POODLE affects SSLv3 or version 3 of the Secure Sockets Layer protocol.

HOW IS :

It’s not as serious as the recent Shellshock and Heartbleed vulnerabilities, but POODLE could allow an attacker to hijack and de-crypt the session cookie that is used for identifying the user without repeatedly giving the password, each time when you using the web services like email, social networking and more account related ones.

Browsers are particularly vulnerable because session cookies are short and an ideal target for plain text recovery, and the way HTTPS works allows an attacker to generate passwords. Browsers are also most likely to implement the compatibility fallback.

FIX :

It has already been fixed through iterative protocol improvements, leading to the current TLS version.
But many of the browsers are still using the SSLv3, So it become important to resolve this issue

FOR RESOLVING :

Disabling SSL 3.0 will obviously prevent exposure to future SSL 3.0-specific issues. 

For doing this, there is a simple method

For apache :: (tested and verified)
Add the below to apache configuration file and restart apache.

#vi /usr/local/apache/conf/httpd.conf
Add the below line
SSLProtocol all -SSLv2 -SSLv3

For cPanel servers, also update distiller through following command
#/usr/local/cpanel/bin/apache_conf_distiller --update

Then restart apache service.

#/etc/init.d/httpd restart


For Nginx :: (tested and verified)

Remove SSLv3 from nginx configuration file usually located in 
/etc/nginx/nginx.conf 
or
/usr/local/nginx/conf

Locate the directive ssl_protocols in the configuration file.
This may look like

ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;

Remove the directives, SSLv3
Then it will be like :

ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;

Now restart your nginx service

#nginx -s reload


For verifing that the sslv3 is disabled :
Create a file "test.sh" and copy the following scripts

#!/bin/bash
ret=$(echo Q | timeout 5 openssl s_client -connect "${1-`hostname`}:${2-443}" -ssl3 2> /dev/null)
if echo "${ret}" | grep -q 'Protocol.*SSLv3'; then
  if echo "${ret}" | grep -q 'Cipher.*0000'; then
    echo "SSL 3.0 disabled"
  else
    echo "SSL 3.0 enabled"
 fi
else
  echo "SSL disabled or other error"
fi

then run the script using "./test.sh" command

The command will return 'SSL 3.0 enabled' if vulnerable and 'SSL 3.0 disabled' if not.


Thank you for visiting..
Please feel free to post your comments
Visit again.......!

Tuesday, October 14, 2014

Configuration of Remote mysql in cPanel

Follow the steps below to connect your Database from a remote client running in your PC.

For that configure the following parameters in your remote client.

Host name = Put your server IP here (Eg :64.20.23.56)
Database name = cpanelUsername_databaseName
Database username = cpanelUsername_databaseUsername
Database password = the password you entered for that database user
MySQL Connection Port = 3306
TCP or UDP, either is fine.


Also you need to allow your public IP address in your cpanel.Please follow the below instructions to do the same.

Log into cPanel and click on "Remote MySQL" under the Databases Heading.
Next, you'll need to add your IP address into the field on the page and select "Add Host". (You can find your IP here in this link http://cpanel.net/myip)


Monday, October 13, 2014

PostgreSQL Error

Issue : Unable to connect to PostgreSQL server

Error :
Warning: pg_connect (): Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host ":: 1", user "username_root" database "username_coop", SSL off in / home / username/ public_html /
Solution.

Edit the PostgreSQL file /var/lib/pgsql/data/pg_hba.conf and add ipv6 lines as shown below (enable ipv6)

host    all         all         ::1/128               md5

Restart PostgreSQL  service and check your connection.

KLOXO Admin Password Reset

The following are the steps to reset the kloxo admin password.

1.Login to the server with root privileges.

2.Simply execute the command below.

# /script/resetpassword master NEWPASSWORD

3.Do not restart the kloxo service.

"Counter datafile "/var/cpanel/Counters/counter-name.dat" must be created in cpanel first!"

Issue : Unable to create counter script from CGI Center in cpanel.

Error Message :"Counter datafile

"/var/cpanel/Counters/counter-name.dat" must be created in cpanel first!"



Solution :

This can be resolved by creating the counter name data file in the cpanel

counter directory.
Execute the following commands as root user.

1. # cd /var/cpanel/counters
2. # touch counter-name.dat           where counter-name is the name of new

counter to be created.

3.Change the ownership of this file as cpanel user.

#chown cpanelusername:cpanelusername counter-name.dat