Mengatasi penggunaan CPU tinggi pada clamav

Seringkali kita menjumpai masalah penggunaan CPU yg tinggi yg disebabkan oleh proses scanning antivirus clamav, padahal kita sudah atur scanning antivirus untuk jalan pada saat jam tidak sibuk.

Untuk mengatasi masalah tersebut kita bisa batasi penggunakan cpu untuk clamav sbb:

Edit clamav startup, untuk CentOS 7 anda bisa gunakan perintah
# nano /etc/systemd/system/clamd.service

Kemudian tambahkan baris berikut ini. Tentu saja silakan sesuai dengan kebutuhan Anda. Read the rest of this entry »

Migrasi DA ke cPanel

Sebelum melakukan migrasi pastikan software yg terinstall di kedua server sama atau kompatible.
Langkah-langkah berikut dilakukan di server DA:
Langkah 1. Buat domain list utk keperluan migrasi
wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/updateuserdomains-universal
chmod +x updateuserdomains-universal
./updateuserdomains-universal

Langkah 2. download script
wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-da
chmod +x pkgacct-da

Langkah 3. buat file cpmove dari akun yg akan ditransfer
./pkgacct-da user

Langkah 4. Transfer file ke server cpanel
scp /home/cpmove-user.tar.gz root@x.x.x.x:/home

Selanjutnya lakukan restore akun di server cpanel
cd /home
/scripts/restorepkg cpmove-user.tar.gz

Demikian langkah melakukan migrasi akun dari DA ke cpanel.

Manual Installation of Grub2 Boatloader

GRUB2 is the latest version of GNU GRUB, the GRand Unified Bootloader. A bootloader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel.

Normally, GRUB2 will be installed and set up by the installer, Anaconda, during the installation process. You will probably never have to deal with manual installation of GRUB2. However, in certain situations , you will want to install GRUB2 manually, especially if you need to repair the existing GRUB2 installation or you want to change its configuration.

This procedure shows the steps to install GRUB2 on your Master Boot Record (MBR) of your primary hard disk.

1. Install grub2
# yum -y install grub2

2. Create a configuration file for GRUB2.
# grub2-mkconfig -o /boot/grub2/grub.cfg

3. List block devices available on the system. Identify the primary hard disk. Usually, it is the sda device.
# lsblk

4. Install GRUB2 in the MBR of the primary hard disk.
# grub2-install /dev/sda

5. Reboot your computer to boot with the newly installed bootloader.