Working directory is not a recognisable Ghost installation

Hi there,

For testing, everything is okay when I setup Ghost on Amazon EC2 and also Azure using Bitnami. But, manual installation on Azure always get error.

I followed this guide step by step: How to install & setup Ghost on Ubuntu 16.04, 18.04, 20.04 or 22.04. After run sudo npm install ghost-cli@latest -g and then ghost doctor, always get this error:

Working directory is not a recognisable Ghost installation.

I am using Ubuntu 16.04 B1S package, see https://azure.microsoft.com/en-us/pricing/details/virtual-machines/linux/

Using Bitnami, Azure B1S package is not listed. I choose this package because it’s free. So, could someone help me how to install Ghost in Azure on B1S package?

Thanks in advance.

That’s because you don’t have Ghost installed in that directory.
You need to create installation directory… like /var/www/ghost and set proper permissions, do ghost install then you won’t get this error.

No, I double check about that. I followed this guide too: How to install & setup Ghost on Ubuntu 16.04, 18.04, 20.04 or 22.04

All of my Ghost installations is full working on AWS EC2, but not in Azure B1S package. I mean, this is not the first time for me.

I can provide log if need it. But, how to do it?

1 Like

Sorry to hear that. Someone with more technical expertise may help you.

This is additional info from me. After run ghost version, here the result:

secret@serverme:~$ ghost version
Ghost-CLI version: 1.9.8
secret@serverme:~$

Then, I run dpkg -l, this is the result:

.
.
.

ii  fuse                      2.9.4-1ubuntu3.1  amd64             Filesystem in Userspace
ii  gawk                      1:4.1.3+dfsg-0.1  amd64             GNU awk, a pattern scanning and processing language
ii  gcc-5-base:amd64          5.4.0-6ubuntu1~16 amd64             GCC, the GNU Compiler Collection (base package)
ii  gcc-6-base:amd64          6.0.1-0ubuntu1    amd64             GCC, the GNU Compiler Collection (base package)
ii  gdisk                     1.0.1-1build1     amd64             GPT fdisk text-mode partitioning tool
ii  geoip-database            20160408-1        all               IP lookup command line tools that use the GeoIP library
ii  gettext-base              0.19.7-2ubuntu3.1 amd64             GNU Internationalization utilities for the base system
ii  gir1.2-glib-2.0:amd64     1.46.0-3ubuntu1   amd64             Introspection data for GLib, GObject, Gio and GModule
ii  git                       1:2.7.4-0ubuntu1. amd64             fast, scalable, distributed revision control system
ii  git-man                   1:2.7.4-0ubuntu1. all               fast, scalable, distributed revision control system (ma
ii  gnupg                     1.4.20-1ubuntu3.3 amd64             GNU privacy guard - a free PGP replacement
ii  gpgv                      1.4.20-1ubuntu3.3 amd64             GNU privacy guard - signature verification tool
ii  grep                      2.25-1~16.04.1    amd64             GNU grep, egrep and fgrep
ii  groff-base                1.22.3-7          amd64             GNU troff text-formatting system (base system component
ii  grub-common               2.02~beta2-36ubun amd64             GRand Unified Bootloader (common files)
ii  grub-gfxpayload-lists     0.7               amd64             GRUB gfxpayload blacklist
ii  grub-pc                   2.02~beta2-36ubun amd64             GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin               2.02~beta2-36ubun amd64             GRand Unified Bootloader, version 2 (PC/BIOS binaries)
ii  grub2-common              2.02~beta2-36ubun amd64             GRand Unified Bootloader (common files for version 2)
ii  gzip                      1.6-4ubuntu1      amd64             GNU compression utilities
ii  hdparm                    9.48+ds-1ubuntu0. amd64             tune hard disk parameters for high performance
.
.
.
.

No Ghost-CLI on the list. Is that normal?

Ghost-CLI is an NPM package as far as I understand (not a developer so I might be saying smth stupid here) and not a Linux package.

You should try npm list -g in your user directory to check the packages installed there.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.