I’m trying install Ghost in local, I have problem as bellow:
ghostlab@Mongodb:/var/www/ghost$ ghost install
Checking system Node.js version
Checking logged in user
Checking current folder permissions
System checks failed with message: ‘Linux version is not Ubuntu 16, 18, or 20’
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend usingghost install local
instead.
? Continue anyway? Yes
System stack check skipped
Checking system compatibility [skipped]
Checking for a MySQL installation
Checking memory availability
Checking free space
Checking for latest Ghost version
Setting up install directory
Downloading and installing Ghost v3.36.0
Finishing install process
? Enter your blog URL: http://localhost:2368
? Enter your MySQL hostname: localhost
? Enter your MySQL username: root
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: ghost_prod
Configuring Ghost
Setting up instance
- sudo chown -R ghost:ghost /var/www/ghost/content
? Sudo Password [hidden]
Setting up “ghost” system user
? Do you wish to set up “ghost” mysql user? Yes
Setting up “ghost” mysql user
child_process.js:674
throw err;
^Error: Command failed: service --status-all 2> /dev/null
at checkExecSyncError (child_process.js:635:11)
at execSync (child_process.js:671:15)
at /usr/lib/node_modules/ghost-cli/node_modules/systeminformation/lib/processes.js:114:26
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
status: 127,
signal: null,
output: [ null, Buffer(0) [Uint8Array] , Buffer(0) [Uint8Array] ],
pid: 3009,
stdout: Buffer(0) [Uint8Array] ,
stderr: Buffer(0) [Uint8Array]
}
Ghost doctor said that:
ghostlab@Mongodb:/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
System checks failed with message: ‘Linux version is not Ubuntu 16, 18, or 20’
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend usingghost install local
instead.
? Continue anyway? Yes
System stack check skipped
Checking system compatibility [skipped]
Checking for a MySQL installation
- sudo systemctl is-active ghost_localhost
Validating config
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking binary dependencies
Checking free space
One or more errors occurred.
- ProcessError
Message: Command failed: /bin/sh -c sudo -S -p ‘#node-sudo-passwd#’ systemctl is-active ghost_localhost
unknown
Exit code: 3
Debug Information:
OS: Debian GNU/Linux, v8
Node Version: v12.19.0
Ghost Version: 3.36.0
Ghost-CLI Version: 1.15.0
Environment: production
Command: ‘ghost doctor’Additional log info available in: /home/ghostlab/.ghost/logs/ghost-cli-debug-2020-10-22T02_28_46_816Z.log
Try running ghost doctor to check your system for known issues.
You can always refer to Ghost-CLI - A fully loaded tool for installation and configuration for troubleshooting.
I see that ghost service doesn’t exist in system
ghostlab@Mongodb:/var/www/ghost$ ls /lib/systemd/system/ghost
ls: cannot access /lib/systemd/system/ghost: No such file or directory
How can I fix this problem?