Shared Hosting Reseller Hosting Virtual Private Server Dedicated Servers

Starting sshd:PRNG is not seeded

SSHD not restarting ?

below is the fix

cd /dev/

./MAKEDEV generic

Now try restarting SSH

 

 

Comments Off more...

Converting a database containing tables to utf8

mysqldump -uusername -ppassword -c -e –default-character-set=utf8 –single-transaction –skip-set-charset –add-drop-database -B dbname > dump.sql cp dump.sql dump-fixed.sql vim dump-fixed.sql :%s/DEFAULT CHARACTER SET latin1/DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci/ :%s/DEFAULT CHARSET=latin1/DEFAULT CHARSET=utf8/ :wq mysql -uusername -ppassword < dump-fixed.sql


Converting an empty database to utf8

use the below command in Mysql 

ALTER DATABASE mydatabasename charset=utf8;

SERVICE CURRENTLY NOT AVAILABLE! Error No. [500]

How to fix the 500 error on roundcube

/usr/local/cpanel/bin/update-roundcube –force


Postix on ubuntu

How to install postfix on Ubuntu

 

sudo apt-get install postfix sudo dpkg-reconfigure postfix 
sudo postconf -e 'home_mailbox = Maildir/'   sudo /etc/init.d/postfix restart 
sudo apt-get install dovecot-common 
sudo apt-get install dovecot-imapd 
sudo apt-get install dovecot-pop3d 
sudo useradd -d /home/testuser -m testuser

sudo passwd testuser

Increase phpmyadmin upload size in cPanel

How to increase the memory for PHPmyadmin in cPanel server

vi  /usr/local/cpanel/3rdparty/etc/php.ini

and change
upload_max_filesize = 150M
post_max_size = 150M

then run in SSH

/usr/local/cpanel/bin/install_php_inis

service cpanel restart

 

Comments Off more...

iptables v1.3.5: Couldn’t load match `statistic’

 

Getting error in iptables ?

use below steps to get it resolved

yum -y update

iptables -m statistic -h

modprobe -l |grep statistic

rpm -q iptables

wget http://pkgs.org/centos-5-rhel-5/centalt-x86_64/ipt_statistic-0.1-1.el5.x86_64.rpm.html

wget http://pkgs.org/centos-5-rhel-5/centalt-x86_64/ipt_statistic-0.1-1.el5.x86_64.rpm

wget http://centos.alt.ru/repository/centos/5/x86_64/centalt-release-5-3.noarch.rpm

rpm -Uvh centalt-release*rpm

 


How to mitigate DDOS ?

Getting DDOS from rival companies ?

Even we had but we do have a tachnique to mitigate its impact

Use the below IPTABLES rule on your server and it should get mitigated

A INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –set
/sbin/iptables -A INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –update –seconds 8 –hitcount 13 -j DROP

You can contact us for any assistance for any issues related to Linux.

 

Comments Off more...

vzquota on failed [3]

“vzquota on failed [3]”

vzquota : (error) Quota on syscall for id 8001: No such file or directory
vzquota on failed [3]

Getting above error in openvz vps ?

This is due to disk quota being on in config file.

Did this post help you ? if yes do visit us for your hosting needs

 

 

Login to main hardware node

open below config file associated with VPS  whre my  VPSID is 8001

vi /etc/sysconfig/vz-scripts/8001.conf

Add below line in config file

DISK_QUOTA=no

Now restart vps and all should work as charm
Comments Off more...

Limit connection on port 80 using IPTABLES

iptables -I INPUT -p tcp –dport 80  -i eth0 -m state –state NEW -m recent  –update –seconds 60 –hitcount  5 -j DROP

This will allow only 5 connection simultanously from per IP.

This can also be to stop ddos attack on webserver.

 

 

 


Hillock's Wiki

Unlimited Hosting Solutions
  • Categories

  • Twitter Updates

    • Calendar

      May 2012
      M T W T F S S
      « Apr    
       123456
      78910111213
      14151617181920
      21222324252627
      28293031  
    • SMS Text Message

      Phone number

      Carrier

      *Standard text messaging rates may apply from your carrier*
    • © 2011 Hillock Hosting. All rights reserved
      Jarrah theme by Templates Next | Powered by WordPress