Join the community today
Register Now

Install Ghost blog?

Discussion in 'Blogs & CMS usage' started by hardousse, Jul 12, 2017.

  1. hardousse

    hardousse Active Member

    135
    31
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +47
    Local Time:
    6:11 PM
    1.11.*
    10.1*
    any help how install Ghost on centminmod last beta ?
     
  2. eva2000

    eva2000 Administrator Staff Member

    39,746
    8,767
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,488
    Local Time:
    1:11 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Tried doing it yourself ? Seems Ghost install has changed dramatically from when I last tried with ghost-cli command
    Centmin Mod Node.js can be installed via /usr/local/src/centminmod/addons/nodejs.sh

    For Nginx as a reverse proxy in front of Ghost only need from NGINX Config · Ghost Docs the reverse proxy rules pointing to Ghost backend port i.e. 2368
    Code (Text):
     location / {
         proxy_set_header   X-Real-IP $remote_addr;
         proxy_set_header   Host      $http_host;
         proxy_pass        http://127.0.0.1:2368;
    }
    
     
  3. hardousse

    hardousse Active Member

    135
    31
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +47
    Local Time:
    6:11 PM
    1.11.*
    10.1*
    Thanks @eva2000 for fast reply,right Ghost Change fast they prepare fit the Ghost version1, i will try and see i was worry about nginx reverse but i think will be Ok.thanks
     
  4. eva2000

    eva2000 Administrator Staff Member

    39,746
    8,767
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,488
    Local Time:
    1:11 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Do tests on test VPS or local virtualbox/vmware server first ;)
     
  5. hardousse

    hardousse Active Member

    135
    31
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +47
    Local Time:
    6:11 PM
    1.11.*
    10.1*
    After long time rest I want try play with the new version of ghost blog on centminmod.
    @eva2000 do I need to make file proxy.conf and include it to nginx conf to let ghost behind nginx proxy?because I try more solution but evrytime I get 502 bad gateway error?
     
  6. eva2000

    eva2000 Administrator Staff Member

    39,746
    8,767
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,488
    Local Time:
    1:11 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    which instructions you following for proxy.conf ? you do need a valid nginx proxy config to use in front of ghost either way
     
  7. hardousse

    hardousse Active Member

    135
    31
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +47
    Local Time:
    6:11 PM
    1.11.*
    10.1*
    Thank you for reply,I am trying to adapting your old instructions for ghost,ghost it's installed without problem,just I need to adapted website nginx conf
     
  8. hardousse

    hardousse Active Member

    135
    31
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +47
    Local Time:
    6:11 PM
    1.11.*
    10.1*
    I found it ;)
    Soon I will write guide to install ghost with centminmod.
    Thank you for your help
     
    • Like Like x 1
  9. hardousse

    hardousse Active Member

    135
    31
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +47
    Local Time:
    6:11 PM
    1.11.*
    10.1*
    Hi again I have problem I hope you can help,after restart server ghost not start and all time I get 502 bad gateway and I try the same method in other server with centminmod mod ghost start but I get 502 bad gateway I don't know it's problem with nginx or node?can anyone try ghost help.thank you
     
  10. eva2000

    eva2000 Administrator Staff Member

    39,746
    8,767
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,488
    Local Time:
    1:11 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    been ages since i used ghost but node.js needs a way to setup startups after server reboots as it isn't done by default unless you set it up - so nginx gives 502 error as it can't connect to node.js server. When you start node.js server it is only for the life of the server instance. So after server reboot, you need to start up ghost node.js server again.
     
..