Senin, 13 Februari 2023
Selasa, 07 Februari 2023
UKK
Persiapan
- bikin topologi
- reset
pengerjaan
1. konek internet
eth1 dhcp client
: ip dhcp client add interface=eth1
NAT => out-int eth1
bridge eth2 dan eth3
ip bridge 10.10.x.129/26 (dhcp server pool 10.10.x.131-10.10.x.181)
ip wlan 10.10.x.1/25
ip hotspot-hotspot setup
user-profile (+) shared user 100
rate limit = 128k
user (+) profile yang sudah dibuat
queue (+) target=bridge
upload 256k
download 256k
2. set up debian server
a. ip address
#nano /etc/network/interfaces
auto enp0s3
iface enp0s3 inet static
address
netmask
gateway
dns-nameservers
#systemctl restart networking.service
#ip a
#ping google.com
b. ganti repository
#nano /etc/apt/sources.list
#apt update && apt upgrade
c. install apache2
#apt install apache2
#apt remove apache2
d. install database
#apt install mariadb-server
#systemctl enable mariadb
#systemctl status mariadb
#mysql_secure_installation
#mysql -u root -p
>CREATE DATABASE wordpressdb;
>CREATE USER 'rohim'@'localhost' IDENTIFIED by '123';
>GRANT ALL PRIVILEGES ON wordpressdb.* to 'rohim'@'localhost' IDENTIFIED by '123';
>SHOW DATABASES;
>EXIT
e. install php
#apt install php php-mysql
f. install wordpress
#wget https://wordpress.org/latest.zip
#apt install zip
#unzip latest.zip
#mv wordpress /var/www/
#chmod -R 755 /var/www/wordpress
#chown -R www-data:www-data /var/www/wordpress
g. setting file apache ke wordpress
#nano /etc/apache2/sites-available/000-default.conf
DocumentRoot /var/www/html -> /var/www/wordpress
#systemctl restart apache2
Rabu, 01 Februari 2023
INSTALL WORDPRESS ON DEBIAN 11
1 - config ip (jgn lupa restart)
-systemctl restart networking
-reboot
-ping
2 - apt update && apt upgrade
3 - install apache2
-apt install apache
-cek masukkan ip di browser
4 - edit file 000-default
- nano /etc/apache2/sites-available/000-default.conf
- cari baris (document /var/www/html => /var/www/wordpress)
- mengubah direktori document ke wordpress
5 - restart apache
- systemctl restart apache2
6 - install php
- apt install php
7 - mariadb
- mysql -U root -P (bikin database dan user)
- CREATE DATABASE
- CREATE USER
- GRANT PRIVILEGES (DATABASE TO USER)
- FLUSH PRIVILAGES
- EXIT