Reset Your Linux Password In Single Mode

This step will work on especially on CentOS, RedHat, and Fedora. Make sure you didn’t put any password for your GRUB during installation or this tutorial won’t be any help.

1) Turn on the server until the loading screen appears.

2) While on countdown, press any key to cancel the countdown

3) Select your current Linux kernel:

Read the rest of this entry »

How to install mytop

Mytop adalah solusi open source yang membantu memantau aktivitas dan kinerja database MySQL. Untuk menginstal Mytop, pastikan bahwa instalasi berada di server yang sama dengan server MySQL.
Langkah pertama tambahkan repositori EPEL dengan perintah:
yum -y install epel-release

Kemudian install mytop dengan perintah:
yum -y install mytop

Selanjutnya buat file konfigurasi di folder root dengan perintah:
nano /root/.mytop
Read the rest of this entry »

Migrasi massal akun antar server cpanel

Step 1. Buat backup di server lama tanpa homedir, copy ke server baru dan delete backup setelah dicopy.

for x in `ls -A1 /var/cpanel/users/`; do /scripts/pkgacct --skiphomedir ${x} ; rsync -aP /home/cpmove-${x}.tar.gz -e ssh root@NEW-SERVER-IP:/home/ ; rm -f /home/cpmove-${x}.tar.gz ; done

Step 2. Lakukan restore backup di server baru
for x in `ls -A1 /home/cpmove*` ; do /scripts/restorepkg /home/${x} ; done

Step 3. Lakukan rsync folder /home dari server lama ke server baru
rsync -aP /home/ -e ssh root@NEW-SERVER-IP:/home/

That’s all folk.