-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensuring correct ~/.config folder ownership fails on shared hosting #867
Comments
The folder that Ghost is taking ownership of should be your (the current user) home folder. If the current user isn't able to write to their home folder, Ghost needs to make it writable because other commands depend on configuration that's stored there (e.g You should be able to have ghost skip doing so by ensuring you can write to your home folder. |
In this shared hosting I have right and read access on the user home folder but a .config folder already exists owned by the root user... |
The only time Ghost can learn about an installation is when you install it ➡ the installation metadata is saved to in the |
That's sad because I CAN run Ghost on this shared hosting. But I can't install it if I don't manualy edit the pre-check. |
Similarly, is there any documentation about installing on shared hosting, as in no access to root/sudo? I could do development installs 1.x but could never get production installs working, I'm not sure if 2.x is different. |
@llakssz You need to edit the |
@L3o-pold Thanks, I manage to install 2.x like this: The pre-checks.js file you mention is for the install process (I think), but I have completed that stage and am just trying to start ghost. |
Happy that you manage to install it. |
@L3o-pold I can probably add something in that allows you to skip the pre-checks. Thinking about something similar to how you can skip the node-version check with |
closes TryGhost#867 - add GHOST_CLI_PRE_CHECKS environment variable that can be set to 'false' to skip pre checks
closes TryGhost#867 - add GHOST_CLI_PRE_CHECKS environment variable that can be set to 'false' to skip pre checks
closes #867 - add GHOST_CLI_PRE_CHECKS environment variable that can be set to 'false' to skip pre checks
@L3o-pold added the environment variable skip in - the fix should be released as part of Ghost-CLI 1.10 once that happens (should hopefully be in the next couple of weeks) |
Summary
On a shared hosting we do not own root user. Ghost will fail during the install because it check that current user has right on the ~/.config folder.
I don't understand why because it don't seems to be required during the install.
I successfully install Ghost on this shared hosting by commenting this step.
Steps to Reproduce
ghost install
Technical details
This is automatically output by Ghost-CLI if an error occurs, please copy & paste:
ghost install
Log
I do not own the root password... Could we remove this check or making it optional?
The text was updated successfully, but these errors were encountered: