0% found this document useful (0 votes)
15 views2 pages

UKK - Database Server - Webserver

This document provides instructions for configuring the network interface, installing software repositories, and installing packages like SSH, Apache2, MariaDB, and PHP on a Debian system. It includes commands to configure the network interface with a static IP address, edit the sources.list and resolv.conf files, restart networking, install and configure key packages, and verify their status and functionality.

Uploaded by

Kun Satria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

UKK - Database Server - Webserver

This document provides instructions for configuring the network interface, installing software repositories, and installing packages like SSH, Apache2, MariaDB, and PHP on a Debian system. It includes commands to configure the network interface with a static IP address, edit the sources.list and resolv.conf files, restart networking, install and configure key packages, and verify their status and functionality.

Uploaded by

Kun Satria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

setting network

#nano /etc/network/interfaces

auto ens18
iface ens18 inet static

address 130.130.180.nomer absen/16


netmask 255.255.0.0
network 130.130.0.0
broadcast 130.130.255.255
gateway 130.130.130.nomer server

kemudian di simpan
ctrl+O kemudian enter,ctrl + x

- cek pada resolv

#nano /etc/resolv.conf
130.130.130.254
di simpan =ctrl+O kemudian enter,ctrl + x
z x
#/etc/init.d/networking restart
pastikan ping www.google.com jalan (Berhasil dapat Internet)

2.setting apt-get install repository


#nano /etc/apt/sources.list
- tulisan sources sebelumnya ditutup menggunakan tanda #
- deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main


contrib
deb-src http://security.debian.org/debian-security bullseye-security
main contrib

deb http://deb.debian.org/debian/ bullseye-updates main contrib


deb-src http://deb.debian.org/debian/ bullseye-updates main contrib
kemudian di simpan
#apt-get update
3.install ssh
#apt-get install ssh
4.install apache2
#apt-get install apache2
- cet status apache sudah aktif apa belum?
#systemctl status apache2
- matikan
#systemctl stop apache2
- kemudian nyalakan lagi
#systemctl start apache2
#systemctl enable apache2
5.install maria db
#apt-get install mariadb-server
#mysql_secure_installation
memberi passwd:
change the root:n
Remove anonymous:n
Disallow root:n
Remove test:y
Reload privilege:y
- cek status
#systemctl status mariadb
- mematikan
#systemctl stop mariadb
#systemctl start mariadb
#systemctl enable mariadb
#mysql -u root -p
#masukin passwd yang dibuat sebelumnya
#mysql -u root -p
#show databases;
#quit
6. install php
#apt-get install
#apt-get install php libapache2-mod-php php-cli php-mysql php-zip php-curl
php-xml
# nano /var/www/html/info.php
<?php
phpinfo();
?>
di simpan
kemudian buka di browser
130.130.200.10
130.130.200.10/info.php

You might also like