Home Website Cara Mudah Install Ghost Sebagai Blog Platform di Ubuntu

Cara Mudah Install Ghost Sebagai Blog Platform di Ubuntu

310
0
Cara Mudah Install Ghost Sebagai Blog Platform di Ubuntu
Cara Mudah Install Ghost Sebagai Blog Platform di Ubuntu
Cara Mudah Install Ghost Sebagai Blog Platform di Ubuntu

Ghost adalah salah satu platform bloging (website) selain wordpress. Menurut info yang Content.id terima, Ghost tidak membutuhkan resource besar untuk menjalankannya.

Ghost setangguh wordpress dalam dunia website dan bloging. Berikut cara mudah install Ghost sebagai Platform Blog di Ubuntu. Domain disini Content.id gunakan adalah resort.id

Prerequisites

Untuk saat ini vps yang digunakan adalah vps berbasis ubuntu. Untuk distro linux lainnya command mengikuti distro yang akan dipakai.

Sebelum memulai, Anda harus sudah menseting Domain Name dan mengarah ke IP Server yang anda pakai (Baca: Cara Daftar dan Setting DNS Cloudflare)

Cara Mudah Setum Ubuntu Untuk Install Ghost

Berikut langkah-langkah cara mudah install ghost sebagai blog platform di Ubuntu

1.  Login ke VPS melalui SSH menggunakan PuTTY

root@host:~#

2. Buat user name dengan menggunakan perintah “adduser”

root@host:~# adduser lombok
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Adding user `lombok' ...
Adding new group `lombok' (1000) ...
Adding new user `lombok' (1000) with group `lombok' ...
Creating home directory `/home/lombok' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for lombok
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]

3. Tambah superuser group untuk membuka admin previlege# Add user to superuser group to unlock admin privileges

root@host:~# usermod -aG sudo lombok

4. Login sebagai user

root@host:~# su lombok
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.

lombok@host:/root$

5. Lakukan update dan upgrade Ubuntu dengan perintah “sudo apt-get update”

lombok@host:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu disco InRelease
Hit:2 http://archive.ubuntu.com/ubuntu disco-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu disco-security InRelease
Reading package lists... Done
lombok@host:~$

6. Upgrade Ubuntu anda

lombok@host:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
lombok@host:~$

7. Install NGINX sebagai webserver di Ubuntu

lombok@host:~$ sudo apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip libnginx-mod-http-image-filter 
libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxslt1.1 
nginx-common nginx-core
Suggested packages:
  libgd-tools fcgiwrap nginx-doc
The following NEW packages will be installed:
  libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip libnginx-mod-http-image-filter 
libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxslt1.1 
nginx nginx-common nginx-core
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 1367 kB of archives.
After this operation, 4781 kB of additional disk space will be used.
Do you want to continue? [Y/n]

7. Buka firewall agar NGINX bisa di akses dari luar dengan perintah “sudo ufw allow ‘Nginx Full'”

lombok@host:~$ sudo ufw allow 'Nginx Full'
Rules updated
Rules updated (v6)
lombok@host:~$

8 Install MySQL Server dengan perintah “sudo apt-get install mysql-server”

lombok@host:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.1-6 libfcgi-perl libgdbm-compat4 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
liblwp-mediatypes-perl libmecab2 libperl5.28 libtimedate-perl liburi-perl mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 perl perl-modules-5.28
Suggested packages:
libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx tinyca perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl
The following NEW packages will be installed:
libaio1 libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.1-6 libfcgi-perl libgdbm-compat4 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
liblwp-mediatypes-perl libmecab2 libperl5.28 libtimedate-perl liburi-perl mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server mysql-server-5.7 mysql-server-core-5.7 perl perl-modules-5.28
0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 210 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

9. Masuk ke mysql dengan perintah

sudo mysql

10. Ganti password dengan cara merubah ‘password’ dengan password yang anda inginkan

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

11. Keluar dari mysql dengan perintah quit

quit

12. Login ke Ubuntu dengan user lagi

su lombok

13. Tambahkan NodeSource APT repository Node 10
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash

14. Install Node.js

sudo apt-get install -y nodejs

sudo npm install ghost-cli@latest -g

Cara Mudah Install Ghost

Setelah server Ubuntu anda di setup sesuai dengan kebutuhan dan langkah cara mudah install ghost diatas serta ghost-cli telah terinstall, maka saatnya kita melakukan instalasi Ghost.

Langkah mudah menginstall Ghost Platform ikuti langkah berikut ini

1. Buat direktori untuk Ghost

sudo mkdir -p /var/www/ghost

2. Rubah kepemilikan direktori

sudo chown lombok:lombok /var/www/ghost

3. Rubah directory permission menjadi 755

sudo chmod 775 /var/www/ghost

4. Masuk ke direktori tersebut

cd /var/www/ghost

5. Lanjutkan ke proses instalasi Ghost dengan perintah

ghost install

6. Lanjutkan instalasi dengan mengisi option yang diberikan pada saat instalasi

lombok@host:/var/www/ghost$ ghost install
✔ Checking system Node.js version
✔ Checking logged in user
✔ Checking current folder permissions
System checks failed with message: 'Linux version is not Ubuntu 16 or 18'
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend using `ghost install local` instead.
? Continue anyway? Yes
System stack check skipped
ℹ Checking operating system compatibility [skipped]
✔ Checking for a MySQL installation
✔ Checking memory availability
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v3.0.2
✔ Finishing install process
? Enter your blog URL: (http://localhost:2368)

7. Lanjutkan proses instalasi dengan mengisi command promp yang diberikan
8. Ghost sebagai platform blog siap digunakan

Nah cukup mudah kan melakukan Install Ghost Sebagai Blog Platform di Ubuntu. Lakukan cara diatas untuk Install Ghost Sebagai Blog Platform di Ubuntu.
Sekian Cara Mudah Install Ghost Sebagai Blog Platform di Ubuntu dari Content.id

Salam