dapurhosting.com Blog for Tech

November 17, 2015

eth Reset Adapter

Filed under: Server — dh @ 2:51 am

network card restart terus menerus

tambahkan pcie_aspm=off ke akhir kernel line di /etc/grub.conf
tambahkan intremap=off ke akhir kernel line di /etc/grub.conf

reboot server

August 15, 2015

Mendapatkan Proses Tertentu

Filed under: Server — dh @ 5:36 am

ps aux |grep cron

December 24, 2014

Disable Browser Cache

Filed under: Apache,Server — dh @ 8:22 am

(more…)

August 27, 2014

Install iRedMail

Filed under: Server — dh @ 6:07 pm
cd /root/
wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.7.tar.bz2
tar xjf iRedMail-0.8.7.tar.bz2
cd /root/iRedMail-0.8.7
bash iRedMail.sh

September 1, 2013

Check Mod Security Version

Filed under: Securtiy,Server — Tags: — dh @ 6:17 pm

/scripts/restartsrv_httpd
grep "modsecurity" /usr/local/apache/logs/error_log

Output:

[Mon Sep 02 00:32:46 2013] [notice] ModSecurity for Apache/2.7.5 (http://www.modsecurity.org/) configured.

July 18, 2013

Check Hard Drive Health In Linux With HDSentinel

Filed under: Server — Tags: — dh @ 3:55 am


cd /home/status/
wget http://www.hdsentinel.com/hdslin/hdsentinel_008_x64.zip
unzip hdsentinel*
chmod 755 HDSentinel
./HDSentinel

October 9, 2012

More History

Filed under: Server — dh @ 5:47 am

15 Examples To Master Linux Command Line History

1. Display timestamp using HISTTIMEFORMAT

export HISTTIMEFORMAT='%F %T '

August 16, 2012

Install Bonnie++

Filed under: Server — Tags: , — dh @ 5:29 pm

Download the latest atrpms-repo rpm from http://dl.atrpms.net/el6-x86_64/atrpms/stable/

Install atrpms-repo rpm:

rpm -Uvh atrpms-repo*rpm

Install bonnie++ rpm package:

yum install bonnie++

Source: http://pkgs.org/centos-6-rhel-6/atrpms-x86_64/bonnie++-1.03e-6.el6.x86_64.rpm.html#howto

July 9, 2012

Check Motherboard Type

Filed under: Server — dh @ 12:01 pm

/usr/sbin/dmidecode

July 1, 2012

Error ip_conntrack: table full, dropping packet

Filed under: Apache,Server — Tags: , — dh @ 1:57 pm

Error ip_conntrack: table full, dropping packet terjadi karena banyaknya kunjungan ke server dan menyebabkan database iptable menjadi penuh

solusi:

1. naikkan kapasitas iptable

echo 131072 > /proc/sys/net/ipv4/ip_conntrack_max

2. flush kosongkan iptable

iptables -P
iptables -F

« Newer PostsOlder Posts »

Powered by WordPress