Skip to main content

Ghost CMS: Notes

ghost logo light

https://ghost.org/ — A Headless, Open-Source CMS.

Try ghost on AWS Lightsail

$ which ghost
/opt/bitnami/apps/ghost/bin/ghost

Ghost CLI

ghost ls
ghost log
ghost doctor
cd /opt/bitnami/ghost
sudo su ghost -c "ghost ls"
sudo su ghost -c "ghost version"
sudo su ghost -c "ghost doctor"
sudo su ghost -c "ghost backup"
sudo su ghost -c "ghost check-update"
sudo su ghost -c "ghost update"

Start/Stop services

sudo /opt/bitnami/ctlscript.sh status
sudo /opt/bitnami/ctlscript.sh start
sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/ctlscript.sh restart
$ pwd
/opt/bitnami/apps/ghost/htdocs
$ ghost version
Ghost-CLI version: 1.14.1
Ghost version: 3.28.0 (at /opt/bitnami/apps/ghost/htdocs)
$ ghost doctor
✔ Checking system Node.js version
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Checking for a MySQL installation
Instance is currently running
ℹ Validating config [skipped]
✔ Checking memory availability
✔ Checking binary dependencies
$ ghost check-update
New major version available: 4.6.4
$ ghost update
You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run `npm install -g ghost-cli@latest` to upgrade.

✔ Checking system Node.js version
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking for available migrations
✔ Checking for latest Ghost version
✖ Downloading and updating Ghost to v4.6.4
A SystemError occurred.

Message: Ghost v4.6.4 is not compatible with the current Node version.

Debug Information:
    OS: Debian GNU/Linux, v10
    Node Version: v10.22.0
    Ghost Version: 3.28.0
    Ghost-CLI Version: 1.14.1
    Environment: production
    Command: 'ghost update'

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.
$ sudo npm install -g ghost-cli@latest
sudo npm install -g ghost-cli@latest

> yarn@1.22.10 preinstall /opt/bitnami/nodejs/lib/node_modules/ghost-cli/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)

/opt/bitnami/nodejs/bin/ghost -> /opt/bitnami/nodejs/lib/node_modules/ghost-cli/bin/ghost
+ ghost-cli@1.17.3
added 419 packages from 207 contributors in 18.742s

Admin panel: https://ipaddress/ghost/

Popular posts from this blog

Powershell: Get-History

Get-History - Gets a list of the commands entered during the current session.

MSSQL: Fix error 'Consistency validation for SQL Server registry keys'

While installing Microsof SQL Server 2012, I ran into the following error. "The SQL Server registry keys from a prior installation cannot be modified. To continue, see SQL Server Setup documentation about how to fix registry keys." How to fix Replace the D:\x64\FixSqlRegistryKey_x86.exe file with the original file from the ENU\SQLFULL_ENU.iso file downloading from Microsoft Download Center. This ISO file is 4.2GB. So you can click FixSqlRegistryKey_x86.exe to download this file only. After replacing that file, press Re-run to check. All rules are passed.

Powershell: Check Bad Logon

get-aduser -Filter {BadLogonCount -ne 0} -properties * | select SamAccountName,BadLogonCount,BadPasswordTime,BadPwdCount,@{name='badPasswordTimeDT'; expression={[datetime]::fromFileTime($_.badPasswordTime)}} | sort BadPasswordTime | FT