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

        

0 komentar:

Posting Komentar