-
-
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
nginx and ssl setup fails due to assuming presence of certain /etc/nginx directories #1821
Comments
I'll try to submit a simple PR for this if I can :) |
Any maintainers in the house...? |
Our bot has automatically marked this issue as stale because there has not been any activity here in some time. The issue will be closed soon if there are no further updates, however we ask that you do not post comments to keep the issue open if you are not actively working on a PR. We keep the issue list minimal so we can keep focus on the most pressing issues. Closed issues can always be reopened if a new contributor is found. Thank you for understanding 🙂 |
Still here, PR hasn't been seen either I guess... |
Our bot has automatically marked this issue as stale because there has not been any activity here in some time. The issue will be closed soon if there are no further updates, however we ask that you do not post comments to keep the issue open if you are not actively working on a PR. We keep the issue list minimal so we can keep focus on the most pressing issues. Closed issues can always be reopened if a new contributor is found. Thank you for understanding 🙂 |
Summary
The nginx part of the setup process fails as the Ghost CLI relies on the presence of the
/etc/nginx/sites-available
folder and the SSL part fails due to the reliance on the presence of the/etc/nginx/snippets
folder. I assume this reliance is because of how Ubuntu and some other package repositories maintain this convention in their version of nginx in their PPA.The reliance can be seen here on /etc/nginx/sites-available and sites-enabled and here on /etc/nginx/snippets which throw errors
Reproduce by installing nginx from nginx.org for Ubuntu, or the corresponding distro's pre-built package. Even before running
ghost setup
orghost install
, you can see that the two folders do not exist. Ghost-CLI does not create these directories either, but assume their presence. This can be fixed by simply creating them withmkdir -p
.The underlying cause is that different package repositories distribute nginx with different configuration patterns. Some have a
conf.d/*.conf
pattern (official nginx.org release), some have thesites-available, sites-enabled
pattern (older releases that follow this Apache-like style), some have neither and have only the defaultnginx.conf
file (RHEL does this, and the core nginx source code has only this as well).Both problems are solved simply by creating those directories before running ghost, so
sudo mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled /etc/nginx/snippets
resolves this.Steps to Reproduce
/etc/nginx/sites-available
and/etc/nginx/snippets
folder. For Ubuntu, follow these steps. Logs below are from nginx-1.24.0ghost install
, orghost install --no-setup
followed byghost setup
Log file
First, the nginx part:
Then, the SSL part"
Technical details
This is automatically output by Ghost-CLI if an error occurs, please copy & paste:
Bug submission checklist
Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.
The text was updated successfully, but these errors were encountered: