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:


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 di file /etc/bind/named.conf
    user@computer:$ sudo vim /etc/bind/named.conf
    zone "" IN {
    type master;
    file "/etc/bind/";
    allow-update { none; };
  2. ubah file /etc/bind/
    user@computer:$ sudo vim /etc/bind/
    ; BIND data file for local loopback interface
    $TTL    604800
    @       IN      SOA (
    128       ; Serial
    604800         ; Refresh
    86400         ; Retry
    2419200         ; Expire
    604800 )       ; Negative Cache TTL

    IN      NS
    ns1                     IN      A
    @                       IN      A

    www                     IN      CNAME   @
    *                       IN      A
    @                       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 /etc/bind/
    zone loaded serial 128
  4. restart bind
    user@computer:$ sudo /etc/init.d/bind9 restart
  5. cek hasil
    user@computer:$ dig;
    ; <<>> DiG 9.4.2 <<>>
    ;; 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

    ;            IN    A

    ;; ANSWER SECTION:        604800    IN    A

    ;; AUTHORITY SECTION:        604800    IN    NS

    ;; ADDITIONAL SECTION:    604800    IN    A

    ;; Query time: 0 msec
    ;; SERVER:
    ;; WHEN: Sun Oct  4 15:41:20 2009
    ;; MSG SIZE  rcvd: 82

Continue reading