dapurhosting.com Blog for Tech

January 20, 2012

Speed Up Software Raid Resync And Building

Filed under: Server — Tags: , — dh @ 5:53 am

Check speed and time required to finish sync
cat /proc/mdstat

echo value > /proc/sys/dev/raid/speed_limit_min

OR

sysctl -w dev.raid.speed_limit_min=value

Check speed and time required again to see the perfomance

cat /proc/mdstat

January 14, 2012

Disable wp-cron.php

Filed under: Worpress — dh @ 4:26 am

Disable wp-cron.php

add this to wp-config.php
define('DISABLE_WP_CRON', true);

comment this line on public_html/wp-includes/Cron.php
//spawn_cron( $local_time );

add this to user cron job

php -q /home/cPanel_User/public_html/wp-cron.php > /dev/null 2>&1

January 9, 2012

Linux Malware Detect

Filed under: Securtiy,Server — dh @ 4:39 am

source:

  • http://www.rfxn.com/projects/linux-malware-detect/
  • http://www.webhostingtalk.com/wiki/Linux_Malware_Detect

Installation


wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar xfz maldetect-current.tar.gz
cd maldetect-*
./install.sh

Configure Linux Malware Detect


vi /usr/local/maldetect/conf.maldet

Manual Scan


maldet --scan-all /home?/?/public_html

Cron Job

vi /etc/cron.daily/maldet

January 5, 2012

Exim, refused: too many connections

Filed under: Server — Tags: , — dh @ 2:39 pm

2012-01-05 08:11:18 Connection from [x.x.x.x] refused: too many connections
2012-01-05 08:11:18 Connection from [x.x.x.x] refused: too many connections
2012-01-05 08:11:18 Connection from [x.x.x.x] refused: too many connections
2012-01-05 08:11:18 Connection from [x.x.x.x] refused: too many connections
2012-01-05 08:11:18 Connection from [x.x.x.x] refused: too many connections
2012-01-05 08:11:18 Connection from [x.x.x.x] refused: too many connections
2012-01-05 08:11:18 Connection from [x.x.x.x] refused: too many connections

Edit /etc/exim.conf

smtp_accept_max = nn
smtp_accept_max_per_host = nn

restart exim /etc/init.d/exim restart

Powered by WordPress