dapurhosting.com Blog for Tech

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 19, 2013

Instlall Iftop

Filed under: Stat — dh @ 8:07 am


yum -y install ncurses-devel libpcap-devel
cd /usr/local/src/
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar xvfvz iftop-*
cd iftop-*
./configure
make
make install

Referensi: http://xmodulo.com/2012/06/how-to-install-iftop-on-linux.html

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

April 21, 2013

Disable Joomla User Registration

Filed under: CMS — dh @ 1:26 pm

disable use registration in Joomla 1.5
phpmyadmin > jos_component > User Manager > params > allowUserRegistration=0

disable use registration in Joomla 2.5
phpmyadmin > jos_extension > mod_user > params > allowUserRegistration=0

March 22, 2013

Migrasi Email Akun

Filed under: Email — dh @ 11:33 am

Code untuk migrasei email

http://snipplr.com/view/50756/transfer–migrate-messages-between-two-imappop-email-accounts/

March 21, 2013

Mod_evasive untuk Mengatasi DDOS

Filed under: Apache — Tags: — dh @ 4:00 am

Install Mod_Evasive untuk mengatasi DDOS

http://syslint.com/syslint/how-to-install-mod_evasive-in-cpanel-server/

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 '

September 27, 2012

Menyembunyikan Icon di cPanel

Filed under: cPanel/WHM — dh @ 8:53 am

In order to get rid of icons (if you use x3):
1) in /usr/local/cpanel/base/frontend/x3/dynamicui/ create a new file called remove_items_dynamicui.conf
(the name of the file can actually be whatever as long as it includes dynamicui and is a .conf file, ex abc_dynamicui_xyz.conf)

2) enter one line for each item you do not want to show. For hiding mysql-remoteaccess, emailroute and legacy file manager, the following needs to be added:

file=>mysql-remoteaccess,skipobj=>1
file=>emailroute,skipobj=>1
file=>legacy_filemanager,skipobj=>1

You can find all file names to use for each icon in /usr/local/cpanel/base/frontend/x3/dynamicui.conf

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

August 13, 2012

Webmail User ‘useraccount’ is over quota

Filed under: cPanel/WHM — dh @ 3:06 am

Webmail User ‘useraccount’ is over quota
But useraccount is not over quota

Go to
/var/cpanel/overquota/
ll

delete cpanel username from list

« Newer PostsOlder Posts »

Powered by WordPress