jessyhoule

Install Ghost

Jun 15th, 2017
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1.  
  2. GHOST INSTALL
  3. =============
  4.  
  5. sudo apt-get update
  6. sudo apt-get install nodejs
  7. sudo apt-get install npm
  8.  
  9. sudo apt-get update
  10. sudo aptitude install zip wget
  11.  
  12. sudo npm install npm@2.5.0 -g
  13.  
  14. sudo mkdir -p /var/www/
  15. cd /var/www/
  16. sudo wget https://ghost.org/zip/ghost-latest.zip
  17.  
  18. sudo unzip -d ghost ghost-latest.zip
  19. cd ghost/
  20.  
  21. sudo npm install --production
  22.  
  23. sudo cp config.example.js config.js
  24.  
  25. sudo nano config.js
  26. # url: 'http://yourdomain.com'
  27. # host: '127.0.0.1',
  28. # port: '2368'
  29.  
  30. sudo npm start --production
  31.  
  32. # http://yourdomain.com:2368
  33.  
  34. # ===========
  35.  
  36. https://www.thefanclub.co.za/how-to/how-secure-ubuntu-1604-lts-server-part-1-basics
  37.  
  38. # ===========
  39. sudo apt-get install nginx
  40.  
  41. cd /etc/nginx/
  42. sudo rm sites-enabled/default
  43.  
  44. sudo touch /etc/nginx/sites-available/ghost
  45. sudo nano /etc/nginx/sites-available/ghost
  46.  
  47.     server {
  48.         listen 80;
  49.         server_name your_domain.tld;
  50.         location / {
  51.             proxy_set_header   X-Real-IP $remote_addr;
  52.             proxy_set_header   Host      $http_host;
  53.             proxy_pass         http://127.0.0.1:2368;
  54.         }
  55.     }
Advertisement
Add Comment
Please, Sign In to add comment