It’s running perfectly. - But I have got a new server with Ubuntu 22.04.
The problem is “ghost-cli” can’t find nginx on my ubuntu 22.04 server.
Setting up “ghost” mysql user
Nginx is not installed. Skipping Nginx setup. Setting up Nginx [skipped]
Nginx setup task was skipped, skipping SSL setup Setting up SSL [skipped]
I know ubuntu 22.04 is not supported yet, but I hope I can make the move to my new server now without going back to ubuntu 20.04!
I’m thinking copy/editing my old vhost file from my old server and removing the SSL part from the file!
After this, I will make my own vhost file on the new server, and then using certbot to create the SSL cert!
Ubuntu 22.04 is not a supported platform, whereas 20.04 is. Moreover, 20.04 is supported until 2025.
Ubuntu do not recommend LTS users upgrade until, at least, the first point release later this year, so I’d say it’s premature to use 22.04 on production just now.
Personally, I’d wait until the 18.04 LTS is EOL before considering the upgrade. By then Ghost support for 22.04.1 is likely.
Here’s the code that checks if Nginx is installed:
If you use systemctl status '*nginx*', do you see that nginx.service is running? It should say “active (running)” in the output. If the service name is something other than nginx.service, then you can set an environment variable to reflect the name of your service
I can’t spot the issue, but it’s clear from what I’ve seen so far that the issue is not the environment, but that the check for the environment is broken. You can find this file stored somewhere on your drive:
(try locate extensions/index.js)
You can edit the isSupported() function so that it just contains return true; and then try again.
Eventually the Ghost devs will test with Ubuntu 22.04 and fix this check.
One thing I looked into was whether there was a bug in the systeminformation module that’s being used to list system services. But I see no evidence of that in that project’s history or issue track. I also tested the latest version of systeminformation locally. Finally, I checked that ghost-cli is depending on the newest version of the module, so there shouldn’t be an issue there either.