If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:
- What version of Ghost are you using? v5.4.1
I just installed Ghost for my website using a DigitalOcean droplet. My website is running fine except that I’m trying to get an SSL certificate for the www. domain. I’ve been trying to follow the steps here, but I literally can’t run a single ghost command in the terminal.
The only command that outputs anything (and doesn’t just freeze) is ghost
and it outputs: No command specified. Run 'ghost help' for usage
.
If I try to run ghost help
, it just stalls, nothing comes up and I need to interrupt it.
When I first installed it, everything seemed fine, but I didn’t try using any of the ghost commands. sudo -i -u ghost-mgr
does work though. However, I can’t run any ghost
commands there either.
Here’s the output I got when I first installed Ghost:
-------------------------------------------------------------------------------
Configuring DigitalOcean 1-Click Ghost installation.
Please wait a minute while your 1-Click is configured.
Once complete, you are encouraged to run mysql_secure_installation to ready
your server for production. The root MySQL password has been saved to:
root/.digitalocean_password
-------------------------------------------------------------------------------
mysqld is alive
Ensuring Ghost-CLI is up-to-date...
+ sudo npm i -g ghost-cli@latest
added 3 packages, changed 488 packages, and audited 492 packages in 32s
41 packages are looking for funding
run `npm fund` for details
6 vulnerabilities (5 moderate, 1 high)
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
npm notice
npm notice New minor version of npm available! 8.5.5 -> 8.15.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.15.0
npm notice Run npm install -g npm@8.15.0 to update!
npm notice
Ghost will prompt you for two details:
1. Your domain
- Add an A Record -> [IP] & ensure the DNS has fully propagated
- Or alternatively enter http://[IP]
2. Your email address (only used for SSL)
Press enter when you're ready to get started!
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
✔ Checking system Node.js version - found v16.15.0
✔ Checking logged in user
✔ Checking current folder permissions
✔ Checking system compatibility
✔ Checking for a MySQL installation
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v5.4.1
✔ Finishing install process
? Enter your blog URL: http://jacquesthibodeau.com
✔ Configuring Ghost
✔ Setting up instance
+ sudo useradd --system --user-group ghost
+ sudo chown -R ghost:ghost /var/www/ghost/content
✔ Setting up "ghost" system user
✔ Setting up "ghost" mysql user
+ sudo mv /tmp/jacquesthibodeau-com/jacquesthibodeau.com.conf /etc/nginx/sites-available/jacquesthibodeau.com.conf
+ sudo ln -sf /etc/nginx/sites-available/jacquesthibodeau.com.conf /etc/nginx/sites-enabled/jacquesthibodeau.com.conf
+ sudo nginx -s reload
✔ Setting up Nginx
? Enter your email (For SSL Certificate) myemail@mail.com
+ sudo mkdir -p /etc/letsencrypt
+ sudo ./acme.sh --install --home /etc/letsencrypt
+ sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --server letsencrypt --domain jacquesthibodeau.com --webroot /var/www/ghost/system/nginx-root --reloadcmd "nginx -s reload" --accountemail thibo.jacques@gmail.com
+ sudo openssl dhparam -dsaparam -out /etc/nginx/snippets/dhparam.pem 2048
+ sudo mv /tmp/ssl-params.conf /etc/nginx/snippets/ssl-params.conf
+ sudo mv /tmp/jacquesthibodeau-com/jacquesthibodeau.com-ssl.conf /etc/nginx/sites-available/jacquesthibodeau.com-ssl.conf
+ sudo ln -sf /etc/nginx/sites-available/jacquesthibodeau.com-ssl.conf /etc/nginx/sites-enabled/jacquesthibodeau.com-ssl.conf
+ sudo nginx -s reload
✔ Setting up SSL
+ sudo mv /tmp/jacquesthibodeau-com/ghost_jacquesthibodeau-com.service /lib/systemd/system/ghost_jacquesthibodeau-com.service
+ sudo systemctl daemon-reload
✔ Setting up Systemd
+ sudo systemctl is-active ghost_jacquesthibodeau-com
+ sudo systemctl start ghost_jacquesthibodeau-com
+ sudo systemctl is-enabled ghost_jacquesthibodeau-com
+ sudo systemctl enable ghost_jacquesthibodeau-com --quiet
✔ Starting Ghost
Ghost uses direct mail by default. To set up an alternative email method read our docs at https://ghost.org/docs/config/#mail
------------------------------------------------------------------------------
Ghost was installed successfully! To complete setup of your publication, visit:
http://jacquesthibodeau.com/ghost/
------------------------------------------------------------------------------
For any further commands, please switch to the ghost-mgr user to manage Ghost.
sudo -i -u ghost-mgr
------------------------------------------------------------------------------
Any thoughts on how to resolve this? Otherwise I can get an SSL certificate for my “www.” domain. Thanks!
EDIT: I also noticed that despite my website working with https://, I get the following message in the membership section of Ghost:
Not sure why?