So I just installed Ghost 2 with this url : How to install & setup Ghost on Ubuntu 16.04, 18.04, 20.04 or 22.04
I’m using ubuntu 16.04
The install command worked fine, but then start just hang
michael@bernier:/var/www/ghost$ ghost doctor
Checking system Node.js version
Checking logged in user
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking operating system compatibility
Checking for a MySQL installation
- sudo systemctl is-active ghost_bernier-im-1
- sudo systemctl reset-failed ghost_bernier-im-1
Validating config
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
michael@bernier:/var/www/ghost$ ghost start - sudo systemctl is-active ghost_bernier-im-1
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions - sudo systemctl is-active ghost_bernier-im-1
Validating config
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability - sudo systemctl start ghost_bernier-im-1
☴ Starting Ghost^C
I tried ghost run with this result:
The ghost run
command is used by the configured Ghost process manager and for debugging. If you’re not running this to debug something, you should run ghost start
instead.
- sudo node current/index.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module ‘/var/www/ghost/current/index.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Ghost log is empty
node -v
v10.16.0
ghost -v
Ghost-CLI version: 1.11.0
Ghost version: 2.23.4 (at /var/www/ghost)