GithubHelp home page GithubHelp logo

hwdsl2 / setup-ghost-blog Goto Github PK

View Code? Open in Web Editor NEW
140.0 14.0 36.0 294 KB

Script to install your own Ghost blog, with Nginx and ModSecurity/Naxsi web application firewall. Supports multiple blogs.

License: Other

Shell 100.00%
ghost-blog naxsi modsecurity nginx wordpress ghost blog nodejs node javascript

setup-ghost-blog's Introduction

Ghost Blog Auto Setup Scripts

Project archived

This project is deprecated and has been archived.

To learn more about the latest version of Ghost blog, see here.

Read this in other languages: English, 简体中文.

Scripts to install your own Ghost blog on Ubuntu, Debian or CentOS, with Nginx (as a reverse proxy) and ModSecurity or Naxsi web application firewall for optimal performance and security.

Powered by Node.js, Ghost blog is a simple and modern WordPress alternative which puts the excitement back into blogging. It's beautifully designed, easy to use, completely open source, and free for everyone.

New: Install multiple blogs on the same server! Simply re-run the script with a new full domain name.

» Related tutorial: Ghost Blog Auto Setup with Nginx and ModSecurity (or Naxsi)

Requirements

A dedicated server or virtual private server (VPS), freshly installed with:

  • Ubuntu 16.04 (Xenial) or 14.04 (Trusty)
  • Debian 9 (Stretch) or 8 (Jessie)
  • CentOS 7 or 6

Note: A minimum of 512 MB RAM is required.

⚠️ DO NOT run these scripts on your PC or Mac! They should only be used on a server!

Installation

This project is deprecated and has been archived.

To learn more about the latest version of Ghost blog, see here.

First, update your system with apt-get update && apt-get dist-upgrade (Ubuntu/Debian) or yum update (CentOS) and reboot. This is optional, but recommended.

Select ModSecurity WAF:

wget https://git.io/ghost-nginx-modsecurity -O ghost-setup.sh
sudo bash ghost-setup.sh BLOG_FULL_DOMAIN_NAME

Select Naxsi WAF:

wget https://git.io/ghost-nginx-naxsi -O ghost-setup.sh
sudo bash ghost-setup.sh BLOG_FULL_DOMAIN_NAME

Note: Replace the above with your blog's full domain name.

⚠️ Newer Ghost blog versions (such as 2.x) can be found in the official repo. However, if you wish to install the older 0.11.14 version, you may use these scripts.

License

Copyright (C) 2015-2018 Lin Song View my profile on LinkedIn
Based on the work of Herman Stevens (Copyright 2013)

Special thanks to Remy van Elst and Phil Bayfield for their helpful suggestions.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

setup-ghost-blog's People

Contributors

hwdsl2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

setup-ghost-blog's Issues

Restart not working

I get: nfo: No forever processes running
-su: ./starter.sh: No such file or directory

after :
su - $ghost_user -s /bin/bash -c 'forever stopall; ./starter.sh'

naxsi error when change password

i can not change password when i install with Naxsi in Debian 8 and in Centos 7,all work ok only problem when change password i get this in error.log :
2016/11/14 22:19:41 [error] 3346#0: *18 NAXSI_FMT: ip=x.my.ipx&server=domain.com&uri=/ghost/api/v0.1/users/password/&learning=0&vers=0.55&total_processed=20&total_blocked=3&block=1&cscore0=$SQL&sco$

Transaction check error conflicts

Hi my friend
After install you script on debien everything is ok but i want install on other server with Centos 7 everything work great but when i want update i get this error how bypass it:

Transaction check error:
  file /usr/lib/node_modules/npm/node_modules/node-gyp from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/doc from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/html from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/man from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/abbrev from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/ansi-regex from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/ansicolors from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/ansistyles from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/archy from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/chownr from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/cmd-shim from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/columnify from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/config-chain from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/dezalgo from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/editor from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/fs-vacuum from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/fs-write-stream-atomic from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/fstream from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/fstream-npm from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/glob from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/graceful-fs from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/hosted-git-info from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/imurmurhash from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/inflight from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/inherits from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/ini from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/init-package-json from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/lockfile from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/mkdirp from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/npmlog from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/nopt from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/normalize-git-url from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/normalize-package-data from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/npm-cache-filename from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/npm-install-checks from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/npm-package-arg from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/npm-registry-client from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/readable-stream from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/retry from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/npm-user-validate from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/once from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/opener from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/osenv from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/path-is-inside from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/read from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/read-installed from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/read-package-json from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/realize-package-specifier from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/request from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/rimraf from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/semver from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/sha from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/slide from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/sorted-object from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/strip-ansi from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/tar from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/text-table from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/uid-number from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/umask from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/validate-npm-package-license from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/validate-npm-package-name from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/which from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/wrappy from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/node_modules/write-file-atomic from install of npm-1:3.10.8-1.6.9.1.1.el7.x86_64 conflicts with file from package nodejs-1:4.6.2-1nodesource.el7.centos.x86_64

Error Summary
-------------

ERR_TOO_MANY_REDIRECTS

Hi
Everything work great but when I setup ghost private with password from the dashboard i get error. ERR_TOO_MANY_REDIRECTS , when enter website,any solution thank you

failed (13: Permission denied),

hi
after a fresh install on centos 7 and debian 8 also with naxsi or with mode security,i get this error : /content/themes/casper/assets/js/index.js" failed (13: Permission denied),all js file get permission denied its fresh install with casper theme,this the logs nginx

2016/10/23 15:59:17 [error] 21281#0: *1 open() "content/themes/casper/assets/css/screen.css" failed (13: Permission denied), client: 
2016/10/23 15:59:17 [error] 21281#0: *1 open() "content/themes/casper/assets/js/jquery.fitvids.js" failed (13: Permission denied), client: 
2016/10/23 15:59:17 [error] 21281#0: *3 open() "content/themes/casper/assets/js/index.js" failed (13: Permission denied), client
2016/10/23 15:59:23 [error] 21281#0: *4 open() "content/themes/casper/assets/css/screen.css" failed (13: Permission denied), client
2016/10/23 15:59:23 [error] 21281#0: *5 open() "content/themes/casper/assets/js/jquery.fitvids.js" failed (13: Permission denied), client
2016/10/23 15:59:23 [error] 21281#0: *6 open() "content/themes/casper/assets/js/index.js" failed (13: Permission denied), client

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.