Categories

Friday, 28 December 2012

Ftp command to download all the subdirectories and files in a directlry

Hello,

 Please use the command wget -r ftp://username:password@1.2.3.4/dir/* for downloading all the subdirectories and files under a directory.

Regards


Tuesday, 25 December 2012

Script to enable Spam Assasin in all the Cpanel Accounts

Hello,

 Below is the script to enable spam assassin in all the cpanel accounts in WHM.


#!/bin/bash
cd /home
for user in `ls /var/cpanel/users`
do
test ! -d $user && continue
touch  $user/.spamassassinenable $user/.spamassassinboxenable
chown $user:$user  $user/.spamassassinenable $user/.spamassassinboxenable
echo $user complete
done

Regards




Monday, 24 December 2012

Minecraft Failed to Bind port error in CentOS

Hello,

 If you got the error on running ./minecraft.sh on the Centos

14:11:07 [WARNING] **** FAILED TO BIND TO PORT!

 exception was: java.lang.NoSuchMethodError: method java.net.ServerSocket.setPerformancePreferences with signature (III)V was not found

Then please check the java version on the Centos.The application need jav version >1.6 to run the application.

So please install it..

Java installation steps

Please follow the link http://blog.secaserver.com/2011/10/installing-java-1-6-centos-6/ to get more information regarding the installation of latest Java using RPM forge repository.

After java is installed please run the application again.It will work!!!!!!!!!!!!!!!!

Regards

Friday, 21 December 2012

ssh password less authentication

Hello,

 Please follow the link  http://www.philchen.com/2007/07/28/how-to-enable-passwordless-authentication-with-ssh to get more information about configuring ssh with passwordless authentication.

How to fix Wordpress Permlink showing blankpage

Hello,

 If you encountered any blank page issue on the permlink on wordpress,please do the following,

Just open the configuration file wp-admin/includes/misc.php
And replace the code of got_mod_rewrite with below

website link http://wordpress.org/support/topic/blank-permalink-admin-page-after-changing-permalink-type


function got_mod_rewrite() {
 //$got_rewrite = apache_mod_loaded('mod_rewrite', true); //old line with false negative;
 $got_rewrite = true;//force the response to true as we know mod_rewite is installed;
 return apply_filters('got_rewrite', $got_rewrite);
}                                                                                          

Thursday, 6 December 2012

Quota Unlimited issue in CPanel Openvz

Hello,

You can fix this issue by following the steps shown below.

1. Login to HN as root user.

2. [root@HN ~] # vzlist -a | grep <IP of VPS>

                  <VPSID>         59 running   <IP>  server.example.com

3. [root@HN ~] # vzctl stop <VPSID>

4. [root@HN ~] # vzctl set <VPSID> --quotaugidlimit 1000 --save

                  CT configuration saved to /etc/vz/conf/<VPSID>.conf

5. [root@HN ~] # vzctl start <VPSID>

If you are facing Case1 issue only, try creating new accounts.


If you are facing Case2 issue you have to do the following steps too.

6. [root@HN ~] # vzctl enter <VPSID>

7. [root@vps ~] # /scripts/fixquotas


Reference-http://linuxadmintips4u.blogspot.in/2012/10/cpanel-unlimited-quota-issue-in-openvz.html

Saturday, 1 December 2012

remove IP ban due to bruteforce

Please follow the link http://forums.cpanel.net/f5/help-i-have-been-locked-out-brute-force-sistem-112341.html.

openvz pptpd VPN installation

Hello,

 Please follow the link http://docs.cslabs.clarkson.edu/wiki/Install_PPTP_on_CentOS_5 to get more information regarding the pptpd installation(there need a lot of work on the iptables to work)

Also change the venet0 to the main IP of the server instead of localhost IP(127.0.0.1).

Thanks

Ad