Unable to perform ghost start due to Message: The directory /home/ghost-mgr/ is not readable by other users on the system

Not able to use Ghost CLI to start ghost, due to the following error:

What I did before encounter the error?
Node version upgrade, but has already reverted back to v16.19.1

image

1) SystemError

Message: The directory /home/ghost-mgr/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.

It looks like you installed Ghost in a /home, and by default, only the folder owner has permissions in this space. Therefore, you’ll need to grant access to other users.

I fixed it with the code below, it is working fine now.

# Create directory: Change `sitename` to whatever you like
sudo mkdir -p /var/www/sitename

# Set directory owner: Replace <user> with the name of your user
sudo chown <user>:<user> /var/www/sitename

# Set the correct permissions
sudo chmod 775 /var/www/sitename

# Then navigate into it
cd /var/www/sitename
1 Like