Update Lisensi key cPanel

Published on February 14, 2017, by in Tutorial.

Lisensi cPanel yang sebelumnya trial bisa kita update menggunakan lisensi perbayar. Setelah membeli lisensi, patikan terlebih dahulu lisensi yang kita beli tersebut statusnya sudah aktif dengan melakukan pengecekan pada wesite berikut :

https://verify.cpanel.net

Masukan ip server cpanel kita :

contoh tampilan seperti diatas, point 2 sebagai Package 15-DAY-TEST dan point 1 sebagai BUYCPANEL-EXTERNAL-VPS karena beli nya di BuycPanel, lihat pada kolom status ‘active’.

kemudian jika lisensi kita telah aktif, lakukan refresh pada server cpanel kita, masuk ke terminal menggunakan user root, masukan perintah refresh berikut :

/usr/local/cpanel/cpkeyclt

silakan masuk ke WHM/cPanel dan lihat status aktif

Aktifasi lisensi cPanel berhasil.

Semoga bermanfaat.

Lupa Port SSH Reset via WHM/cPanel

Published on February 3, 2017, by in Download.

Adakalanya kita sudah mengganti port default ssh 22 dan kemudian lupa port ssh tersebut diganti menjadi port berapa. Pusing pastinya bagaimana cara mengembalikan port ssh tersebut menjadi port default 22. Di server WHM/cPanel ada satu cara yang sangat ampuh untuk melakukan reset port ssh supaya kembali menjadi port default ssh yaitu port 22. Caranya adalah sebagai berikut :

Silakan copy url di bawah ini, ganti “ip-server” dengan ip publik server anda :

http://ip-server:2086/scripts2/doautofixer?autofix=safesshrestart

paste di browser kesayangan anda lalu enter

:

masukan password root anda

 

dan selesai …. port ssh anda kembali ke default yaitu port 22.

Semoga bermanfaat.

Install LetsEncrypt di VestaCP Error Status

Published on January 17, 2017, by in Download.

Install LetsEncrypt di VestaCP muncul pesan error seperti berikut :

/usr/local/bin/letsencrypt-vesta: line 226: /usr/local/certbot/certbot-auto: No such file or directory
Let’s Encrypt returned an error status. Aborting.

Solusinya dengan install certbort

You don’t have permission to access /phpmyadmin on this server.

Published on January 14, 2017, by in Download.

Setelah install phpmyadmin di server centos 7 secara default phpmyadmin tidak bisa diakses dari browser diluar server lokal seperti berikut muncul warning berikut :

You don’t have permission to access /phpmyadmin on this server.

solusinya yaitu edit file config phpmyadmin :

nano /etc/httpd/conf.d/phpMyAdmin.conf

kemudian beri tanda ‘#’ pada Require dan tambahkan all granted seperti dibawah ini :

<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8

<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#Require ip 127.0.0.1
#Require ip ::1
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>

Versi Beta: update Alt-PHP ionCube Loader

Published on January 13, 2017, by in Download.

Versi baru dari Alt-PHP ionCube Loader sudah ada bisa langsung indtalasi melalui repository.

Perubahan :

alt-php44-ioncube-loader (Cloud Linux 5/6)
alt-php51-ioncube-loader (Cloud Linux 5/6/7)
alt-php52-ioncube-loader (Cloud Linux 5/6/7)
alt-php53-ioncube-loader (Cloud Linux 5/6/7)
alt-php54-ioncube-loader (Cloud Linux 5/6/7)
alt-php55-ioncube-loader (Cloud Linux 5/6/7)
alt-php56-ioncube-loader (Cloud Linux 5/6/7)

  • ionCube Loader updated to version 4.7.5;
  • fixed loader crash on PHP 5.5 and PHP 5.6 if a call to eval() contained invalid code;
  • fixed Serializable interface class implementation for the __sleep and __wakueup functions.

Untuk installasi :

yum groupinstall alt-php –enablerepo=cloudlinux-updates-testing

semoga bermanfaat.

Cara Resize Disk KVM Proxmox 4

Published on January 7, 2017, by in Download.

Ada saatnya kita resize disk di KVM proxmox kita. Skenarionya disk partisi tambahan mau ditambahkan ke direktori home pada /dev/sda2. Di Proxmox caranya cukup rumit jika yang baru pertama kali melakukan hal ini, tapi sabar saja ikuti langkah-langkah berikut ;

Lakukan resize di gui proxmox untuk kvm yang dipilih :

lakukan perintah berikut untuk mengetahui type kvm :

# pvdisplay
# vgdisplay
# lvdisplay

hasil dari perintah diatas :

[root@core ~]# pvdisplay
— Physical volume —
PV Name /dev/sda2
VG Name centos_core
PV Size 63.51 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 16258
Free PE 0
Allocated PE 16258
PV UUID OndcBJ-OmdL-uGlb-SZwp-CT3U-YubJ-eueZ62

“/dev/sda3” is a new physical volume of “100.00 GiB”
— NEW Physical volume —
PV Name /dev/sda3
VG Name
PV Size 100.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID BWUHsk-Z5tq-IiLP-E6cQ-Wosx-wDu1-fWZ5LO

[root@core ~]# vgdisplay
— Volume group —
VG Name centos_core
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 7
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 63.51 GiB
PE Size 4.00 MiB
Total PE 16258
Alloc PE / Size 16258 / 63.51 GiB
Free PE / Size 0 / 0
VG UUID owyMdo-GhSE-rg2n-jnn5-fAAd-qEUn-Bb9jSA

[root@core ~]# lvdisplay
— Logical volume —
LV Path /dev/centos_core/root
LV Name root
VG Name centos_core
LV UUID 3QwDJ4-HVww-Cgb5-T3xh-ryMg-wf9X-TnfQFi
LV Write Access read/write
LV Creation host, time core.xsxxx.biz.id, 2017-01-05 19:04:31 +0700
LV Status available
# open 1
LV Size 35.35 GiB
Current LE 9050
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 8192
Block device 253:0

— Logical volume —
LV Path /dev/centos_core/home
LV Name home
VG Name centos_core
LV UUID lU9p1I-ZkcS-B5c0-mqHE-62aS-fw9V-HOVizc
LV Write Access read/write
LV Creation host, time core.xsxxx.biz.id, 2017-01-05 19:04:35 +0700
LV Status available
# open 1
LV Size 20.16 GiB
Current LE 5160
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 8192
Block device 253:2

— Logical volume —
LV Path /dev/centos_core/swap
LV Name swap
VG Name centos_core
LV UUID jvstxU-OLpd-0gJO-w6tf-Ri9o-hCbj-a3cJUg
LV Write Access read/write
LV Creation host, time core.xsxxx.biz.id, 2017-01-05 19:04:38 +0700
LV Status available

Sekarang kita cek partisi baru /dev/sda3 :

[root@core ~]# fdisk /dev/sda3
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0xb4b3bb07.

Command (m for help): p

Disk /dev/sda3: 113.8 GB, 113816633344 bytes, 222298112 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xb4b3bb07

Device Boot Start End Blocks Id System

Command (m for help):

karena type partisinya dari /dev/sda adalah dos, maka disk partisi baru harus dirubah type nya menjadi Linux LVM dengan cara sebagai berikut :

 

[root@core ~]# fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p

Disk /dev/sda: 182.5 GB, 182536110080 bytes, 356515840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00036b17

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 134217727 66595840 8e Linux LVM
/dev/sda3 134217728 356515839 111149056 83 Linux

Command (m for help): t
Partition number (1-3, default 3): 3
Hex code (type L to list all codes): 8e
Changed type of partition ‘Linux’ to ‘Linux LVM’

Command (m for help): p

Disk /dev/sda: 182.5 GB, 182536110080 bytes, 356515840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00036b17

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 134217727 66595840 8e Linux LVM
/dev/sda3 134217728 356515839 111149056 8e Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

Cek lagi, pastikan perubahan jenis partisi seudah benar :

[root@core ~]# fdisk -l /dev/sda

Disk /dev/sda: 182.5 GB, 182536110080 bytes, 356515840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00036b17

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 134217727 66595840 8e Linux LVM
/dev/sda3 134217728 356515839 111149056 8e Linux LVM
[root@core ~]#

Baiklah, jenis partisi sudah berubah menjadi Linux LVM.

Sekarang kita tambahkan partisi /dev/sda3 ke Volume Group centos_core dengan cara sebagai berikut :

[root@core ~]# vgextend centos_core /dev/sda3
Volume group “centos_core” successfully extended
[root@core ~]#

Pastika hasilnya kita cek menggunakan perintah vgdisplay :

[root@core ~]# vgdisplay
— Volume group —
VG Name centos_core
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 163.50 GiB
PE Size 4.00 MiB
Total PE 41857
Alloc PE / Size 16258 / 63.51 GiB
Free PE / Size 25599 / 100.00 GiB
VG UUID owyMdo-GhSE-rg2n-jnn5-fAAd-qEUn-Bb9jSA

[root@core ~]#

Jika /dev/sda3 sudah ditambahkan ke volume group centos_core, selanjutnya kita meng-extend logical volume dari /home :

[root@core ~]# lvextend -l 100%FREE /dev/centos_core/home
Size of logical volume centos_core/home changed from 20.16 GiB (5160 extents) to 100.00 GiB (25599 extents).
Logical volume centos_core/home successfully resized.

Extend Logical Volume sekarang sudah menjadi/home dan selanjutnya adalah resize file systemnya, dengan cara sebagai berikut :

# resize2fs /dev/centos_core/home

Kalau muncul pesan :

resize2fs: Bad magic number in super-block while trying to open /dev/centos_core/home
Couldn’t find valid filesystem superblock

artinya proses pemindahan ke direktori /home dengan perintan resize2fs tidak berhasil, ini disebabkan partisi disk tidak menggunakan ext3 atau ext4 ada kemungkinan xfs. Maka gunakan perintah berikut untuk cek jenis partisi :

[root@core ~]# mount | grep centos_core-home
/dev/mapper/centos_core-home on /home type xfs (rw,relatime,attr2,inode64,usrquota)

Ternyata benar, jenis partisinya adalah xfs, jadi untuk memindahkan ke direktori /home kita gunakan perintah berikut :

[root@core ~]# xfs_growfs /dev/mapper/centos_core-home
meta-data=/dev/mapper/centos_core-home isize=256 agcount=4, agsize=1320960 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0 spinodes=0
data = bsize=4096 blocks=5283840, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=2580, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 5283840 to 26213376

Kemudian cek hasil perubahan partisi :

[root@core ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos_core-root 36G 9.6G 26G 27% /
devtmpfs 485M 0 485M 0% /dev
tmpfs 495M 0 495M 0% /dev/shm
tmpfs 495M 6.8M 488M 2% /run
tmpfs 495M 0 495M 0% /sys/fs/cgroup
/dev/mapper/centos_core-home 100G 97M 100G 1% /home
/dev/sda1 497M 186M 312M 38% /boot
/dev/loop0 1.4G 2.5M 1.4G 1% /tmp
tmpfs 99M 0 99M 0% /run/user/0

Selamat ya partisi /home sudah berubah menjadi 100GB. Demikian, semoga bermanfaat.

Enable Advance DNS Zone di WHM/ cPanel

Published on January 3, 2017, by in Download.

Secara default Advance DNS Zone tidak aktif di cPanel kita. Jadi setelah kita selesai membuat server cPanel kita harus aktif kan Advance DNS Zone yaitu dengan tahap berikut

Login ke sever WHM, cari featar manager

Selanjutnya klik pada “default” akan muncul cekbox

centang Advance DNS Zone Editor, klik Save

Demikian, semoga bermanfaat.

 

direktori hasil download apt-get

Published on January 1, 2017, by in Download.

direktori hasil download apt-get ada pada :

/var/cache/apt/archives/

Plugin Let’s Encrypt untk cpanel gratis

Published on December 31, 2016, by in Download.

Plugin Let’s Encrypt untk cpanel gratis :

https://github.com/Prajithp/letsencrypt-cpanel

Cara Install di Centos 6/7 :

/usr/local/cpanel/3rdparty/bin/git clone https://github.com/Prajithp/letsencrypt-cpanel.git
cd letsencrypt-cpanel
./install.sh

Cara Upgrade :

cd letsencrypt-cpanel
/usr/local/cpanel/3rdparty/bin/git pull
./upgrade.sh

Cara Uninstall :

cd letsencrypt-cpanel
./uninstall.sh

Demikian semoga bermanfaat

Sumber : https://github.com/Prajithp/letsencrypt-cpanel

Note : Kalau mau coba yang berbayar juga ada https://letsencrypt-for-cpanel.com/

Cara edit network di centos 6

Published on September 2, 2016, by in Tutorial.

Setelah selesai install centos 6 mungkin akan bingung karena network tidak terdeteksi

cara nya kita lihat dulu dengan perintah ip a di terminal root

# ip a

maka akan terlihat interface yang tersedia, disini contohnya sebagai eth0

kemudian edit menggunakan perintah berikut :

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

simpan dengan menggunakan alt+Q kemudan shift + :wq

kemudian ubah onboot dari “no” menjadi “yes”

DEVICE=“eth0”
HWADDR=“00:22:19:09:4D:3C”
NM_CONTROLLED=“yes”
ONBOOT=“yes”    # Interface enabled
BOOTPROTO=“dhcp”  #Assigning IP from DHCP

diakhiri dengan perintah restart network

# service network start

demikian, semoga bermanfaat