Minggu, 06 Maret 2022

debian

 ngatur ip address

Systemctl restart networking

Nano /etc/resolv.conf(ngatur name server) 

Hostnamectl set-hostname ServerPeserta20

su -l

adduser

ukktkj2022

passwd

123

Ke cmd /putty

ssh ukktkj2022@192.168.20.2

update repository (kartolo) 

apt update

apt install bind9 dnsutils apache2 mariadb-server php php-mysql links unzip -y

Masuk ke deritory bind

cd /etc/bind

cat named.conf.default-zones

copy zone localhost sampai db 127

masuk ke nano named.conf.local

Ubah localhost = Peserta20.sch.id

ubah db local = db ukk

ubah ip dari belakang

cp db.local db.ukk

cp db.127 db.192

masuk nano db.ukk

ctrl w ctrl r ketik localhost enter ketik Peserta20.sch.id

Ganti ip menjadi ip kita

ubah @ menjadi www dan AAA menjadi A

Masuk ke nano db.192

Ubah localhost menjadi peserta20.sch.id

Ubah 1.0.0 menjadi 2

nano named.conf.options

Hapus // dan ganti 0.0 menjadi 8.8.8.8; dan 8.8.4.4;

Ganti auto menjadi no

Tulis allow-recursion { any; };  ENTER

systemctl restart bind9

systemctl status bind9

mysql_secure_installation

mysql -u root -p

create database kay;

Jika masih di deritory mariadb harus memakai (;) 

show databases;

create user kay@localhost identified by '1234'; ENTER

grant all privileges on kay.* to kay@localhost identified by '1234'; ENTER

flush privileges; ENTER

exit

cd /var/www/html/

wget http://wordpress.org/latest.zip

unzip latest.zip

nano /etc/apache2/sites-available/000-default.conf

Membuat ServerName www.Peserta20.sch.id

Di samping html di ketik /wordpress

Buat lagi bawahnya ServerAlias Peserta20.sch.id

system restart apache2

cd /var/www/html/wordpress/

cp wp-config-sample.php wp-config.php

nano wp-config.php

Ganti db name user dan password sesuai soal/konfig kita

systemctl restart apache2

nslookup Peserta20.sch.id

Masuk ke chrome

Klik Peserta20.sch.id

Setting wordpress

Tidak ada komentar:

Posting Komentar

Sharing

 *SHARING & PRINTER* -Ping ip penguji (192.168.103.47) harus TTL ```pokok ospf wes dadi kenek wayae``` -Ketik \\192.168.103.47 di window...