Apa Itu Optimasi Speed Website

Cara Install WHM/Cpanel di Microsoft Azure

1. Pilih OS Centos 7.3 based, size yang 2vCPU 4GB RAM, tanpa GB local SSD
2. Buat IP menjadi static
3. Setting cpanel-nsg, inbound security rules, add new, buka port 80-8080
4. Stop VM, edit disk, tambah jadi 50GB
5. Jalankan VM, resize OS-disk menjadi 50GB dengan cara sebagai berikut :

a) Login to the VM using SSH, we can check the size of the disk by using:
sudo dmesg | grep -i sda

We should see something similar to the output below (assuming you changed the size to 100GB on the portal for the disk):
[ 3.100914] sd 2:0:0:0: [sda] 209715200 512-byte logical blocks: (107 GB/100 GiB)

b) To proceed with the partition resize, we will use:
sudo fdisk /dev/sda

type: p
this will show both partitions /dev/sda1 and /dev/sda2 which are basically partitions 1 and 2

type: d then 2 (to delete partition 2)
type: n then p , 2 (to recreate partition 2) you can accept the default values
type: w (to save the new partition)
type: q (to exit fdisk)
sudo reboot (to reboot the VM so the partition is updated)

c) To finalize the resize, after the reboot, execute the command:

For Red Hat 7.3 and CentOS 7.3:
sudo xfs_growfs /dev/sda2

For Oracle 7.3:
sudo btrfs filesystem resize max /

d) Use the command: df -h to verify its size:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 100G 1.6G 98G 2% /
________________________________________________________

6. Install cpanel :

a. Ubah password root, caranya ketik di terminal ssh :

sudo -s
passwd
Ketik password baru kamu

b. Sebelum menginstall WHM/Cpanel kita perlu untuk mendisable Network Manager, caranya ketik di terminal ssh :
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
yum install nano
nano /etc/sysconfig/network-scripts/ifcfg-eth0
Tambahkan ini tulisan ini :
NM_CONTROLLED=”no”
Kemudian untuk menyimpan hasil settingan tekan tombol Ctrl+X kemudian ketik Y dan tekan tombol Enter.
Kemudian ketik di terminal ssh :
systemctl enable network.service
systemctl start network.service

Baca juga >>
Denah Rumah Type 45 Beserta Tampak Dan Potongan Pdf

c. Isi hostname kamu, caranya ketik di terminal SSH :
hostname ns1.namadomainmu.com

d. Install WHM/Cpanel dengan cara ketik di terminal SSH :
yum update -y
yum install -y perl
yum install -y wget
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Kemudian tunggu proses instalasi selesai, biasanya sekitar setengah jam

e. Setelah selesai kamu bisa login ke WHM/Cpanel dengan mengakses di browser https://ipVPSkamu:2087
Masukkan username root dan passwordnya

Leave a Comment

Order via Whatsapp !