Skip to content
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

Ghost install did not create system/nginx-root folder #1761

Closed
mawann opened this issue Apr 24, 2023 · 1 comment
Closed

Ghost install did not create system/nginx-root folder #1761

mawann opened this issue Apr 24, 2023 · 1 comment

Comments

@mawann
Copy link

mawann commented Apr 24, 2023

The ghost install went perfectly without any errors. But at the end of the installation process, the system/nginx-root folder was not created.

I am using:
Ubuntu 20.04.6 LTS.
mysql Ver 15.1 Distrib 10.3.38-MariaDB
Node.js v16.20.0.
Ghost-CLI version: 1.24.0

mawan@vps:/var/www/domain.com/ghost$ ghost install

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org

✔ Checking system Node.js version - found v16.20.0
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v5.44.0
✔ Finishing install process
? Enter your blog URL: https://www.domain.com
? Enter your MySQL hostname: 127.0.0.1
? Enter your MySQL username: mawan_ghost
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: mawan_ghost
✔ Configuring Ghost
✔ Setting up instance
+ sudo chown -R ghost:ghost /var/www/domain.com/ghost/content
✔ Setting up "ghost" system user
ℹ Setting up "ghost" mysql user [skipped]
? Do you wish to set up Nginx? Yes
+ sudo mv /tmp/www-domain-id/www.domain.com.conf /etc/nginx/sites-available/www.domain.com.conf
+ sudo ln -sf /etc/nginx/sites-available/www.domain.com.conf /etc/nginx/sites-enabled/www.domain.com.conf
+ sudo nginx -s reload
✔ Setting up Nginx
? Do you wish to set up SSL? No _(I use Cloudflare's proxy)._
ℹ Setting up SSL [skipped]
? Do you wish to set up Systemd? Yes
+ sudo mv /tmp/www-domain-id/ghost_www-domain-id.service /lib/systemd/system/ghost_www-domain-id.service
+ sudo systemctl daemon-reload
✔ Setting up Systemd
+ sudo systemctl is-active ghost_www-domain-id
? Do you want to start Ghost? Yes
+ sudo systemctl start ghost_www-domain-id
+ sudo systemctl is-enabled ghost_www-domain-id
+ sudo systemctl enable ghost_www-domain-id --quiet
✔ Starting Ghost

Ghost uses direct mail by default. To set up an alternative email method read our docs at https://ghost.org/docs/config/#mail

------------------------------------------------------------------------------

Ghost was installed successfully! To complete setup of your publication, visit:

https://www.domain.com/ghost/

When I tried to open https://www.domain.com/ghost/, an error message appeared: 404 Not Found

I checked the contents of the folder.
This was the result.

mawan@vps:/var/www/domain.com/ghost$ ls
config.production.json  content  current  versions

There was no system/nginx-root folder!
This was what appeared when I run Ghost Doctor.

mawan@vps:/var/www/domain.com/ghost$ ghost doctor

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org

┌──────────────────────────────────────────────────────────────────────────────────┐
│Warning: MySQL 8 will be the required database in the next major release of Ghost.│
│     Make sure your database is up to date to ensure forwards compatibility.      │
└──────────────────────────────────────────────────────────────────────────────────┘

✔ Checking system Node.js version - found v16.20.0
✔ 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 system compatibility
✔ Checking for a MySQL installation
+ sudo systemctl is-active ghost_www-domain-com
? Sudo Password [hidden]
Instance is currently running
ℹ Validating config [skipped]
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
✔ Checking systemd unit file
✔ Checking systemd node version - found v16.20.0

Excuse me. My English is bad.

@mawann mawann changed the title Ghost install does not create system/nginx-root folder Ghost install did not create system/nginx-root folder Apr 24, 2023
@mawann
Copy link
Author

mawann commented Apr 24, 2023

I reinstalled Ubuntu then reinstalled Ghost from scratch. Problem solved.

@mawann mawann closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant