By Digital Ocean, Inc.

About WordPress


WordPress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality.

Step One—Prerequisites!


This tutorial covers installing WordPress. Before you go through it, make sure your server is ready for WordPress.
You need root privileges (check out steps 3 and 4 for details):
Initial Server Setup

You need to have nginx, MySQL, and PHP-FPM installed on your server:
LEMP tutorial

Only once you have the user and required software should you proceed to install wordpress!

Step Two—Download WordPress


We can download WordPress straight from their website:

wget http://wordpress.org/latest.tar.gz

This command will download the zipped wordpress package straight to your user’s home directory. You can unzip it the the next line:

tar -xzvf latest.tar.gz

Continue reading

setting dns server

  1. tambahkan zone sarunkgenk.com di file /etc/bind/named.conf
    user@computer:$ sudo vim /etc/bind/named.conf
    zone "sarunkgenk.com" IN {
    type master;
    file "/etc/bind/db.sarunkgenk.com";
    allow-update { none; };
    };
  2. ubah file /etc/bind/db.sarunkgenk.com
    user@computer:$ sudo vim /etc/bind/db.sarunkgenk.com
    ;
    ; BIND data file for local loopback interface
    ;
    $TTL    604800
    $ORIGIN sarunkgenk.com.
    @       IN      SOA     ns1.sarunkgenk.com. me.cuplis.net. (
    128       ; Serial
    604800         ; Refresh
    86400         ; Retry
    2419200         ; Expire
    604800 )       ; Negative Cache TTL

    IN      NS      ns1.sarunkgenk.com.
    ns1                     IN      A       192.168.22.115
    @                       IN      A       192.168.22.115

    www                     IN      CNAME   @
    *                       IN      A       192.168.22.115
    @                       IN      MX      5 ASPMX.L.GOOGLE.COM.
    IN      MX      10 ALT2.ASPMX.L.GOOGLE.COM.
    IN      MX      1 ASPMX2.GOOGLEMAIL.COM.
  3. cek konfigurasi dns
    user@computer:$ sudo named-checkzone sarunkgenk.com /etc/bind/db.sarunkgenk.com
    zone sarunkgenk.com/IN: loaded serial 128
    OK
  4. restart bind
    user@computer:$ sudo /etc/init.d/bind9 restart
  5. cek hasil
    user@computer:$ dig sarunkgenk.com;
    ; <<>> DiG 9.4.2 <<>> sarunkgenk.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22729
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;sarunkgenk.com.            IN    A

    ;; ANSWER SECTION:
    sarunkgenk.com.        604800    IN    A    192.168.22.115

    ;; AUTHORITY SECTION:
    sarunkgenk.com.        604800    IN    NS    ns1.sarunkgenk.com.

    ;; ADDITIONAL SECTION:
    ns1.sarunkgenk.com.    604800    IN    A    192.168.22.115

    ;; Query time: 0 msec
    ;; SERVER: 192.168.22.115#53(192.168.22.115)
    ;; WHEN: Sun Oct  4 15:41:20 2009
    ;; MSG SIZE  rcvd: 82

Continue reading