KONFIGURASI SHARE HOSTING




Shared hosting adalah layanan hosting di mana sebuah account hosting ditaruh bersama-sama beberapa account hosting lain dalam satu server yang sama, dan memakai services bersama-sama. Keuntungan shared hosting adalah harganya yang murah.

Sementara Dedicated Hosting adalah layanan hosting di mana sebuah server yang dipakai oleh 1 account (atau 1 website, 1 klien) saja. Keuntungannya adalah performa dan privasi yang lebih baik, karena server tidak dipakai oleh pihak ketiga. Terdiri dari Colocation (di mana mesin disediakan oleh klien sendiri dan ditaruh di data center penyedia hosting) dan Dedicated Server (di mana mesin disediakan oleh pihak penyedia hosting).



Apa saja yang saya dapat dari hosting?

Dengan berlangganan account hosting pada penyedia hosting, Anda biasanya mendapatkan nama domain, sejumlah ruang disk yang bisa diisi dengan file-file Anda, alamat/account email. Sehingga Anda dapat membuat website dan berinteraksi dengan pengunjung website dan/atau staf Anda menggunakan website dan email.

Berikut konfigurasinya :

#. Konfigurasi IP Address

1. Setting network pada viritualbox adapter 1 :



2. Setting network pada viritualbox adapter 2 :



3. Konfigurasi pada ip address disini dapat dilihat interface ether 2 dibuat ip virtual dengan  settingan auto agar dia memebaca interface secara langsung. dan untuk ether 1 akan tetap menggunakan allow-hotplug:


root@rizka:/home/rizka# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet static

# The primary network interface
auto enp0s3
iface enp0s3 inet static
        address 15.15.15.15/24
		gateway 15.15.15.1
auto enp0s8:1
iface enp0s8:1 inet static
	address 15.15.15.2/24
auto enp0s8:2
iface enp0s8:2 inet static
	address 15.15.15.3/24
auto enp0s8:3
iface enp0s8:3 inet static
	address 15.15.15.4/24    

#KONFIGURASI PADA DNS

. Tentukan 3 nama dns yng akan didaftarkan 


4.Kemudian instal paket yang dibutuhkan yaitu (Bind9, dnsutils, apache2 )

root@rizka:/home/rizka# apt install bind9 dnsutils apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils bind9utils libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap libirs141 liblua5.2-0 ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
  bind9-doc resolvconf ufw rblcheck openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils bind9 bind9utils dnsutils
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libirs141
  liblua5.2-0 ssl-cert
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,698 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]  

5. Kemudian Konfigurasi pada dns untuk masuk ke folder dns yaitu dengan cara cd /etc/bind/, selanjutnya kalian masuk ke file dengan command nano named.conf.local


// // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; zone"belajarbismillah.net"{ type master; file"/etc/bind/belajar"; }; zone"smkku.com"{ type master; file"/etc/bind/smkku"; }; zone"akubisa.ok"{ type master; file"/etc/bind/akubisa"; zone "15.15.15-in.addr-arpa"{ type master; file "/etc/bind/ip"; };

6. Selanjutntya kalian Copy file yang dibutuhkan dan diseseuaikan dengan nama file yang sebelumnya kita konfigurasikan.

root@rizka:/etc/bind# cp db.local belajar
root@rizka:/etc/bind# cp db.local smkku
root@rizka:/etc/bind# cp db.local akubisa
root@rizka:/etc/bind# cp db.127 ip
root@rizka:/etc/bind# 

7. Konfigurasi ip address pada domain masing -masing
root@rizka:/etc/bind# nano ip 

  GNU nano 2.7.4                       File: ip

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     belajarbismillah.net. root.belajarbismillah.net. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      belajarbismillah.net.
2.      IN      PTR     belajarbismillah.net.
3.      IN      PTR     smkku.com.
4.      IN      PTR     akubisa.ok. 

8. konfigurasi zone belajar
root@rizka:/etc/bind# nano belajar

 GNU nano 2.7.4                    File: belajar

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     belajarbismillah.net. root.belajarbismillah.net. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      belajarbismillah.net.
@       IN      A       15.15.15.2
www     IN      A       15.15.15.2 

9. konfigurasi zone smkku
root@rizka:/etc/bind# nano smkku

   GNU nano 2.7.4                     File: smkku

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     smkku.com. root.smkku.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      smkku.com.
@       IN      A       15.15.15.3
www     IN      A       15.15.15.3

10.konfigurasi zone akubisa
root@rizka:/etc/bind# nano akubisa

  GNU nano 2.7.4                    File: akubisa

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     akubisa.ok. root.akubisa.ok. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      akubisa.ok.
@       IN      A       15.15.15.4
www     IN      A       15.15.15.4

11.Konfigurasi pada file option 
root@rizka:/etc/bind# nano named.conf.options

 GNU nano 2.7.4               File: named.conf.options

        // the all-0's placeholder.

        // forwarders {
        //      8.8.8.8;
        // };

        //=====================================================================$
        // If BIND logs error messages about the root key being expired,
        // you will need to update your keys.  See https://www.isc.org/bind-keys
        //=====================================================================$
        dnssec-validation no;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};

12.Kemudian kalian uji dengan ping 


root@rizka:/etc/bind# ping smkku.com
PING smkku.com (15.15.15.3) 56(84) bytes of data.
64 bytes from 15.15.15.3: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 15.15.15.3: icmp_seq=2 ttl=64 time=0.041 ms
^C
--- smkku.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1003ms
rtt min/avg/max/mdev = 0.024/0.032/0.041/0.010 ms
root@rizka:/etc/bind# ping belajarbismillah.net
PING belajarbismillah.net (15.15.15.2) 56(84) bytes of data.
64 bytes from 15.15.15.2: icmp_seq=1 ttl=64 time=0.045 ms
^C
--- belajarbismillah.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.045/0.045/0.045/0.000 ms
root@rizka:/etc/bind# ping akubisa.ok
PING akubisa.ok (15.15.15.4) 56(84) bytes of data.
64 bytes from 15.15.15.4: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 15.15.15.4: icmp_seq=2 ttl=64 time=0.041 ms
^C
--- akubisa.ok ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1003ms
rtt min/avg/max/mdev = 0.024/0.032/0.041/0.010 ms
root@rizka:/etc/bind#

13.kemudian verifikasi dengan nslookup

root@rizka:/etc/bind# nslookup belajarbismillah.net
Server:         15.15.15.15
Address:        15.15.15.15#53

Name:   belajarbismillah.net
Address: 15.15.15.2

root@rizka:/etc/bind# nslookup smkku.com
Server:         15.15.15.15
Address:        15.15.15.15#53

Name:   smkku.com
Address: 15.15.15.3

root@rizka:/etc/bind# nslookup akubisa.ok
Server:         15.15.15.15
Address:        15.15.15.15#53

Name:   akubisa.ok
Address: 15.15.15.4

root@rizka:/etc/bind#

16. verifikasi dengan dig


; <<>> DiG 9.10.3-P4-Debian <<>> belajarbismillah.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26005
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;belajarbismillah.net.          IN      A

;; ANSWER SECTION:
belajarbismillah.net.   604800  IN      A       15.15.15.2

;; AUTHORITY SECTION:
belajarbismillah.net.   604800  IN      NS      belajarbismillah.net.

;; Query time: 0 msec
;; SERVER: 15.15.15.15#53(15.15.15.15)
;; WHEN: Sun Aug 16 19:34:16 WIB 2020
;; MSG SIZE  rcvd: 79

root@rizka:/etc/bind#


KONFIGURASI PADA WEBSERVER

17. Masuk ke konfigurasi apache rubah terlebih dahulu path default ke home 
root@rizka:/etc/bind# nano /etc/apache2/apache2.conf

GNU nano 2.7.4           File: /etc/apache2/apache2.conf

        AllowOverride None
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /home/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

#<Directory /srv/>
#       Options Indexes FollowSymLinks
#       AllowOverride None
#       Require all granted


18.Pindah ke folder site-availabel kemudian copy file default menjadi belajar
root@rizka:/etc/apache2/sites-available# cp 000-default.conf belajar.conf

19. Edit file belajar dan ubah pada server dan decumentroot
root@rizka:/etc/apache2/sites-available# nano belajar.conf

  GNU nano 2.7.4                  File: belajar.conf

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t$
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName www.belajarbismillah.net

        ServerAdmin webmaster@localhost
        DocumentRoot /home/belajar

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn


20. Edit file smkku dan ubah pada server dan decumentroot 
root@rizka:/etc/apache2/sites-available# nano smkku.conf

  GNU nano 2.7.4                  File: belajar.conf

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t$
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName www.smkku.com

        ServerAdmin webmaster@localhost
        DocumentRoot /home/smkku

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn


21. Edit file akubisa dan ubah pada server dan decumentroot
  root@rizka:/etc/apache2/sites-available# nano akubisa.conf

  GNU nano 2.7.4                  File: belajar.conf

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t$
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName www.akubisa.ok

        ServerAdmin webmaster@localhost
        DocumentRoot /home/akubisa

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn


22. Cek defautl site yang aktif
root@rizka:/etc/apache2/sites-available# a2ensite 000-default.conf


root@rizka:/etc/apache2/sites-available# ls
000-default.conf  akubisa.conf  belajar.conf  default-ssl.conf  smkku.conf
root@rizka:/etc/apache2/sites-available# a2ensite 000-default.conf
Site 000-default already enabled
root@rizka:/etc/apache2/sites-available#

23. Kemudian nonaktifkan file tersebut
root@rizka:/etc/apache2/sites-available# a2ensite 000-default.conf


root@rizka:/etc/apache2/sites-available# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2
root@rizka:/etc/apache2/sites-available#

24. lalu aktifkan site yang sudah didaftar

 
root@rizka:/etc/apache2/sites-available# a2ensite belajar.conf
Enabling site belajar.
To activate the new configuration, you need to run:
  systemctl reload apache2 enabled
root@rizka:/etc/apache2/sites-available# a2ensite smkku.conf
Enabling site smkku.
To activate the new configuration, you need to run:
  systemctl reload apache2 enabled
root@rizka:/etc/apache2/sites-available# a2ensite akubisa.conf
Enabling site akubisa.
To activate the new configuration, you need to run:
  systemctl reload apache2 enabled
root@rizka:/etc/apache2/sites-available#


25. Masuk ke Home kemudian tambahkan user belajar, smkku dan aku bisa

root@rizka:/home# adduser belajar
Adding user `belajar' ...
Adding new group `belajar' (1001) ...
Adding new user `belajar' (1001) with group `belajar' ...
Creating home directory `/home/belajar' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for belajar
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y
root@rizka:/home#

26. copy index.html yang ada di /var/www/html ke direktori home masing-masing

root@rizka:/var/www/html# cp index.html /home/belajar/
root@rizka:/var/www/html# cp index.html /home/akubisa/
root@rizka:/var/www/html# cp index.html /home/smkku/

27. Edit file yang terdapat pada /home/belajar/index.html dengan mengganti title. Pertama masuk ke cd /var/www/belajar. lalu masuk ke nano index.html. kemudian ubah menjadi belajar.

  GNU nano 2.7.4                   File: index.html


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.o$
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Belajar</title>
    <style type="text/css" media="screen">
  * {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }

  body, html {
    padding: 3px 3px 3px 3px;

    background-color: #D8DBE2;

    font-family: Verdana, sans-serif;
    font-size: 11pt;


28.Kemudian Default page ganti menjadi selamatdatang di belajarbismillah

GNU nano 2.7.4                   File: index.html

        <img src="/icons/openlogo-75.png" alt="Debian Logo" class="floating_ele$
        <span class="floating_element">
          Selamatdatang di belajar bismillah.net
        </span>
      </div>
<!--      <div class="table_of_contents floating_element">
        <div class="section_header section_header_grey">
          TABLE OF CONTENTS
        </div>
        <div class="table_of_contents_item floating_element">
          <a href="#about">About</a>
        </div>
        <div class="table_of_contents_item floating_element">
          <a href="#changes">Changes</a>
        </div>
        <div class="table_of_contents_item floating_element">
          <a href="#scope">Scope</a>
        </div>
        <div class="table_of_contents_item floating_element">

29.kemudian ctrl + W ketik It works ! ganti menjadi Selamat belajar dan berusaha 

  GNU nano 2.7.4                   File: index.html

        <div class="table_of_contents_item floating_element">
          <a href="#files">Config files</a>
        </div>
      </div>
-->
      <div class="content_section floating_element">


        <div class="section_header section_header_red">
          <div id="about"></div>
          Selamat belajar dan berusaha
        </div>
        <div class="content_section_text">
          <p>
                This is the default welcome page used to test the correct
                operation of the Apache2 server after installation on Debian sy$
                If you can read this page, it means that the Apache HTTP server$
                this site is working properly. You should <b>replace this file<$
                <tt>/var/www/html/index.html</tt>) before continuing to operate$


30. ubah owner file index.html menjadi www-datar

root@rizka:/home# root@Jhony:/home# cd /home/
root@rizka:/home# chown www-data:www-data belajar/index.html
root@rizka:/home# chown www-data:www-data akubisa/index.html
root@rizka:/home# chown www-data:www-data smkku/index.html

31.Kemudian restart paket apache2

root@rizka:/home/belajar# /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.
root@rizka:/home/belajar#


40.kemudian pengujian pada server sebelum itu kalian donwolad apt install w3m.
untuk mengujinya kalian bisa menggunakan command.Dan nanti akan muncul tampilan seperti ini 
root@rizka:/home/belajar# w3m www.belajar.net:


KONFIGURASI NAT

41. Hilangkan tanda pagar pada sysctl.conf agar bisa diforward ip addressnya:
root@rizka:/var/www/html# nano /etc/sysctl.conf

GNU nano 2.7.4                File: /etc/sysctl.conf

# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.

42. lakukan pengecekan pada :
root@rizka:/var/www/html# sysctl -p

root@rizka:/home# sysctl -p
net.ipv4.ip_forward = 1
root@rizka:/home#

43.install paket iptables:
root@rizka:/var/www/html# apt install iptables-persistent

 root@rizka:/home#  apt install iptables-persistent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  netfilter-persistent
The following NEW packages will be installed:
  iptables-persistent netfilter-persistent
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/19.5 kB of archives.
After this operation, 79.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Media change: please insert the disc labeled
 'Debian GNU/Linux 9.5.0 _Stretch_ - Official i386 DVD Binary-2 20180714-11:11'
in the drive '/media/cdrom/' and press [Enter]

44.Buat rule iptables sesuaikan dengan nama interface pada ip address enp0s3 jika menggunakan virtualbox ens33 jika menggunakan vmware : 
root@rizka:/var/www/html# iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE

 
root@rizka:/home# iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE
root@rizka:/home#


45. jangan lupa disimpan iptablesnya:
 root@rizka:/var/www/html# iptables-save >/etc/iptables/rules.v4

 
root@rizka:/home# iptables-save >/etc/iptables/rules.v4
root@rizka:/home# 

46.Cek ip tables : menghilangkan configurasi iptables -F 
root@rizka:/var/www/html# iptables -t nat -L

root@rizka:/home# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere
root@rizka:/home# root@Jhony:/home#

VERIFIKASI PADA WINDOWS

1. Arahkan terlebihdahulu dnsya pada server yang sudah dibuat

2. lakukan pengujian dengan ping terhadap website.
 

3. setelah itu uji pada web browser  http://www.akubisa.ok



3. setelah itu uji pada web browser  http://www.belajarbismillah.net



5. setelah itu uji pada web browser  http://www.smkku.com





  • Langkah-langkah penambahan WordPress

1. Untuk langkah pertama kita lakukan penginstalan paket terlebih dahulu 
root@rizka:/home/jhony# apt install mysql-server mysql-client


root@rizka:/home/jhony# apt install mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  default-mysql-client default-mysql-server galera-3 gawk libaio1
  libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl
  libencode-locale-perl libfcgi-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
  libjemalloc1 liblwp-mediatypes-perl libmariadbclient18 libmpfr4 libsigsegv2
  libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.1
  mariadb-client-core-10.1 mariadb-common mariadb-server-10.1
  mariadb-server-core-10.1 mysql-common psmisc rsync socat
Suggested packages:
  gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl
  libsql-statement-perl libdata-dump-perl libipc-sharedcache-perl libwww-perl
  mailx mariadb-test netcat-openbsd tinyca
The following NEW packages will be installed:
  default-mysql-client default-mysql-server galera-3 gawk libaio1
  libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl
  libencode-locale-perl libfcgi-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
  libjemalloc1 liblwp-mediatypes-perl libmariadbclient18 libmpfr4 libsigsegv2
  libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.1
  mariadb-client-core-10.1 mariadb-common mariadb-server-10.1
  mariadb-server-core-10.1 mysql-client mysql-common mysql-server psmisc rsync
  socat
0 upgraded, 36 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/26.8 MB of archives.
After this operation, 183 MB of additional disk space will be used.
Do you want to continue? [Y/n]

2. Untuk langkah selanjutnya kalian bisa login ke mysql dengan command mysql -u root -p, lalu kalian masukan password 


3. Kemudian kalian install myadmin dengan command ap install myadmin.

4. Setelah itu akan muncul seperti gambar dibawah ini lalu pilih yes 

5. Lalu masukan password 


6. Confirguring password yang sebelumnya 


7. pilih bagian yang atas yaitu apache2


8. selanjutnya masuk ke mysql dengan perintah mysql -u root -p


-Kemudian jika sudah konfiguarasi mysql maka kita kan install unzip dengan perintah "apt isntall unzip" lalu masukan debian 9.5 cd binary1
root@Jhony:/home/jhony# apt install unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  zip
The following NEW packages will be installed:
  unzip
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/168 kB of archives.
After this operation, 575 kB of additional disk space will be used.
Media change: please insert the disc labeled
 'Debian GNU/Linux 9.5.0 _Stretch_ - Official i386 DVD Binary-1 20180714-11:11'
in the drive '/media/cdrom/' and press [Enter] 


9. Pindah ke File zila setelah itu kalian extract trelebih dahulu, jika sudah kalian pindkan dengan cara di drag and drop.


  • Berikut adalah Command untuk memindahkan file WordPress

root@Jhony:~# cd /home
root@Jhony:/home# ls
akubisa  belajar  jhony  smkku
root@Jhony:/home/jhony# cp wordpress/ -r /home/akubisa/
root@Jhony:/home/jhony# cp wordpress/ -r /home/belajar/
root@Jhony:/home/jhony# cp wordpress/ -r /home/smkku/
root@Jhony:/home/jhony#

10.Jika sebelum belum di chmod maka silahkan dilakukan dengan perintah "chmod 777 ../wordpress -R. Kemudian setelah itu masuk ke directory "/etc/apache2/sites-available

root@Jhony:~# cd /etc/apache2/sites-available/
root@Jhony:/etc/apache2/sites-available# ls
000-default.conf  akubisa.conf  belajar.conf  default-ssl.conf  smkku.conf

11.Kemudian masuk kedalam "000-default.conf" untuk menambahkan ServerName,ServerAlias dan /wordpress

GNU nano 2.7.4                  File: akubisa.conf                  Modified

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t$
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName www.akubisa.ok

        ServerAdmin webmaster@localhost
        DocumentRoot /home/akubisa/wordpress

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".

12. Sebelum itu kita tambahkan Databasenya terlebih dahulu

 

13. Berikut Configurasi untuk mengaktifkan dan memintah hak akses untuk WordPress

root@rizka:/home/akubisa# chwon akubisa:akubisa wordpress/ -R
root@rizka:/home/akubisa# chmod 777 -R wordpress/
root@rizka:/home/akubisa# ls -l
total 16
-rw-r--r-- 1 www-data www-data 10698 Aug 16 20:42 index.html
drwxrwxrwx 5 akubisa  akubisa   4096 Aug 18 16:37 wordpress

14. Selanjutnya kita Restart apache2nya 

root@Jhony:/etc/apache2/sites-available# /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.
root@Jhony:/etc/apache2/sites-available#


15. Setelah itu kalian ke Web lalu buka domain kalin seperti di bawah ini Contoh : http://www.akubisa.ok , setelah itu kalian masukan Domain kalian yang sudah kalian buat tadiseperti gambar dibawah :


17. Lalu kalian konfigurasikan dibawha ini lalu klik Install WordPress.


18. Setelah itu kalian Akan di arahkan untuk login. 


19. Jika sudah berhasil Login akan muncul tampilan WordPress .


Sekian dari saya semoga bermanfaat kurang lebihnya saya mohon maaf bila ada salah sala kata.
Terimaksih dan sampai jumpa 
KONFIGURASI SHARE HOSTING KONFIGURASI SHARE HOSTING Reviewed by Rizka Maulana on August 16, 2020 Rating: 5

No comments:

Powered by Blogger.