Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-10, 10:41:00

Author Topic: Instal Ghost di Kloxo-MR  (Read 8970 times)

0 Members and 1 Guest are viewing this topic.

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Instal Ghost di Kloxo-MR
« on: 2014-05-20, 06:46:31 »
permisi pak, numpang tanya

kalo instalasi ghost di kloxo mr gimana ya?
soalnya secara default kan ghost jalan di localhost:2368
kemudian di vhost (apache) ditambah begini

Code: [Select]
ProxyRequests off
ProxyPass / http://127.0.0.1:2368/
ProxyPassReverse / http:/127.0.0.1:2368/

atau di server block nginx ditambah ini

Code: [Select]
location ~ ^/(img/|css/|lib/|vendor/|fonts/|robots.txt|humans.txt) {
      root /var/www/core/client/assets;
      access_log off;
      expires max;
    }

    location ~ ^/(shared/|built/) {
      root /var/www/core;
      access_log off;
      expires max;
    }

    location ~ ^/(favicon.ico) {
      root /var/www/core/shared;
      access_log off;
      expires max;
    }

    location ~ ^/(content/images/) {
      root /var/www;
      access_log off;
      expires max;
    }
    location / {
      proxy_redirect off;
      proxy_set_header   X-Real-IP            $remote_addr;
      proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
      proxy_set_header   X-Forwarded-Proto $scheme;
      proxy_set_header   Host                   $http_host;
      proxy_set_header   X-NginX-Proxy    true;
      proxy_set_header   Connection "";
      proxy_http_version 1.1;
      proxy_cache one;
      proxy_cache_key ghost$request_uri$scheme;
      proxy_pass         http://localhost:2368;
    }

kalo di kloxo-mr ditambah di mana ya pak?
saya belum nemu nih pak
trims banyak pak

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #1 on: 2014-05-20, 06:50:08 »
Ghost itu apa?. Link.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Instal Ghost di Kloxo-MR
« Reply #2 on: 2014-05-20, 06:58:03 »
platform blogging baru pak
memang belum begitu terkenal sih pak

ini link ke officialnya ghost pak
http://ghost.org
github nya pak
https://github.com/tryghost/Ghost

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #3 on: 2014-05-20, 06:59:44 »
Memangnya anda install di domain tertentu ada masalah?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Instal Ghost di Kloxo-MR
« Reply #4 on: 2014-05-20, 07:26:30 »
masalahnya cuma ada di bagian nambah beberapa setting ke apache atau nginx tadi pak
di file setting ghost (config.js) harus adjust port dan ip
kalo saya setting pake ip vps + port 80, semua website yg ada di satu vps itu larinya ke ghost semua

makanya di tutorialnya pake proxy pass
ghost jalan di 127.0.0.1 port 2368 (default)
terus di setting virtualhost atau serverblock ditambah proxypass tadi pak

salah satu tutorialnya ada di sini pak
http://0v.org/installing-ghost-on-ubuntu-nginx-and-mysql/

kalo panduan resmi dari ghost ada di sini
http://docs.ghost.org/installation/linux/

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #5 on: 2014-05-20, 07:35:21 »
Kloxo-MR untuk php-fpm pakai 'unix socket' dan bukan 'tcp/ip port'. Pertanyaannya apakah ghost bisa komunikasi pakai 'unix socket' (misalnya '/tmp/ghost.sock') dan bukan '127.0.0.1:2368'.

Dari tutor yang ada tinggal dicari setting ghost yang ada '127.0.0.1 port 2368'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Instal Ghost di Kloxo-MR
« Reply #6 on: 2014-05-20, 07:50:11 »
php-fpm berarti untuk web yg pake php ya pak?benar tidak?
dari basic tutorial yg saya baca, ghost jalannya ngikut node.js pak

mungkin saya coba cari2 dulu yg pake unix socket pak
=================edit=================

ternyata bisa pak
Quote
To change to a Unix socket, in config.js replace host: and port: with socket: true to use our default or socket: '/path/' to define your own.

kalo gitu saya ganti pertanyaannya pak
isi dari file 'socket' itu apa aja pak?
(extensinya *.sock ya pak?)
« Last Edit: 2014-05-20, 07:52:37 by Wibowo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #7 on: 2014-05-20, 08:13:34 »
Untuk php-fpm itu hanya contoh. Socket bisa digunakan untuk yang lain. Misalnya mysql (anda bisa lihat /etc/my.cnf tentang socket apa yang dipakai).

Socket tidak ada isi apa-apa. Ia tidak beda dengan 'tcp/ip port' tapi ditujukan ke socket file.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #8 on: 2014-05-20, 08:40:23 »
Coba buat file /home/nginx/conf/defaults/ghost.conf dengan isi:
Code: [Select]
server {
    disable_symlinks if_not_owner;

    listen 127.0.0.1:2368;

    server_name _;

    location ~ ^/(img/|css/|lib/|vendor/|fonts/|robots.txt|humans.txt) {
        root /var/www/core/client/assets;
        access_log off;
        expires max;
    }

    location ~ ^/(shared/|built/) {
        root /var/www/core;
        access_log off;
        expires max;
    }

    location ~ ^/(favicon.ico) {
        root /var/www/core/shared;
        access_log off;
        expires max;
    }

    location ~ ^/(content/images/) {
        root /var/www;
        access_log off;
        expires max;
    }

    location / {
        proxy_redirect off;
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
        proxy_set_header   Host $http_host;
        proxy_set_header   X-NginX-Proxy true;
        proxy_set_header   Connection "";
        proxy_http_version 1.1;
        proxy_cache one;
        proxy_cache_key ghost$request_uri$scheme;
        proxy_pass http://localhost:2368;
    }
}
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Instal Ghost di Kloxo-MR
« Reply #9 on: 2014-05-20, 10:26:32 »
saya coba dulu pak

kalo untuk yg pake socket, konfigurasi di sisi apache nya seperti apa pak?
saya baca di sini http://httpd.apache.org/docs/trunk/mod/mod_proxy.html#proxypass
di contohnya saya baca

Code: [Select]
ProxyPass / unix:/home/www/socket|http://localhost/whatever/
versi saya
Code: [Select]
ProxyPass / unix:/home/ghost.sock|http://website.tld/
tapi habis restart malah apache-nya gak bisa jalan
muncul
Code: [Select]
ProxyPass URL must be absolute!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #10 on: 2014-05-20, 10:36:18 »
Yang 'ProxyPass' itu ambil dari 'mod_proxy_fcgi' yang sayangnya hanya ada di apache 2.4.

Rasanya bisa diganti dengan module 'mod_fastcgi' yang selama ini dipakai oleh php-fpm.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Instal Ghost di Kloxo-MR
« Reply #11 on: 2014-05-20, 10:59:49 »
untuk peng-aplikasiannya jd seperti apa ya pak kalo boleh tau?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #12 on: 2014-05-20, 12:42:16 »
Yang jadi pertanyaan ghost ingin bisa diakses oleh semua domain atau domain tertentu saja?.

Ghost itu pakai php atau bahasa lain?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Instal Ghost di Kloxo-MR
« Reply #13 on: 2014-05-20, 13:01:05 »
di vps yg saya pake, memang ada beberapa domain

tapi yg untuk mengakses ghost hanya satu domain pak,
rencana sih setelah upgrade dan nambah server, akan ada 4 domain lg yg menggunakan ghost, tapi ya masing2 mandiri pak, bukan share 1 blog untuk 4 domain

yg wajib diinstal sebelum menjalankan ghost sih node.js pak
berarti pakai javascript kan pak?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Instal Ghost di Kloxo-MR
« Reply #14 on: 2014-05-20, 17:18:52 »
Terus, ghost sendiri pakai bahasa apa (php kah)?. Kuncinya dari sini.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.038 seconds with 21 queries.

web stats analysis