Ghost CLI installer
Starting the comand line installer will prompt you for the site URL, your database details as well as help configure Nginx and Systemd.
$ sudo ghost install
✔ Checking system Node.js version
✔ Checking current folder permissions
✔ Checking operating system
✔ Checking MySQL is installed
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v1.0.0-rc.1
✔ Finishing install process
? Enter your blog URL: http://site1.cdetest.info
? Enter your MySQL hostname: localhost
? Enter your MySQL username: root
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: site1ghost
✔ Configuring Ghost
✔ Setting up instance
Running sudo command: useradd --system --user-group ghost
Running sudo command: chown -R ghost:ghost /var/www/ghost/site1/content
✔ Setting up "ghost" system user
? Do you wish to set up Nginx? Yes
✔ Creating nginx config file at /var/www/ghost/site1/system/files/site1.cdetest.info.conf
Running sudo command: ln -sf /var/www/ghost/site1/system/files/site1.cdetest.info.conf /etc/nginx/sites-available/site1.cdetest.info.conf
Running sudo command: ln -sf /etc/nginx/sites-available/site1.cdetest.info.conf /etc/nginx/sites-enabled/site1.cdetest.info.conf
Running sudo command: service nginx restart
✔ Setting up Nginx
? Do you wish to set up SSL? Yes
? Enter your email (used for Let's Encrypt notifications) me@example.com
Running sudo command: service nginx restart
✔ Creating ssl parameters file at /var/www/ghost/site1/system/files/ssl-params.conf
Running sudo command: service nginx restart
✔ Setting up SSL
? Do you wish to set up automatic SSL renewal? Yes
✔ Setting up automatic SSL renewal
? Do you wish to set up "ghost" mysql user? Yes
✔ Setting up "ghost" mysql user
? Do you wish to set up Systemd? Yes
✔ Creating systemd service file at /var/www/ghost/site1/system/files/ghost_site1-cdetest-info.service
Running sudo command: ln -sf /var/www/ghost/site1/system/files/ghost_site1-cdetest-info.service /lib/systemd/system/ghost_site1-cdetest-info.service
Running sudo command: systemctl daemon-reload
✔ Setting up Systemd
Running sudo command: -E -u ghost /usr/lib/node_modules/ghost-cli/node_modules/.bin/knex-migrator-migrate --init --mgpath /var/www/ghost/site1/current
[2017-07-19 19:25:10] INFO Finished database migration!
✔ Running database migrations
? Do you want to start Ghost? Yes
✔ Validating config
Running sudo command: systemctl start ghost_site1-cdetest-info
✔ Starting Ghost
Running sudo command: systemctl enable ghost_site1-cdetest-info --quiet
✔ Starting Ghost
You can access your blog at http://site1.cdetest.info