I’ve been trying to deploy my Sage 10 site for a few days now. It’s my first site made with the framework, and also the first time I’m using Trellis.
It keeps breaking at one of two steps:
- Unable to start service php8.2-fpm
- missing nginx config files from h5pb (e.g. cache_expiration.conf)
I’m able to resolve the first issue by doing:
sudo apt purge php8.2-fpm
sudo apt install php8.2-fpm
However, frustratingly it happens every time I provision again (which is all the time because of the second issue).
I tried rebooting and updating everything on the server, but it does not help. Since I’m using a relatively unknown cloud provider (Contabo), I decided to follow the official guide and use trellis droplet create
and bought a completely clean droplet, that was set up by the trellis cli itself. It also failed on the exact same issue:
RUNNING HANDLER [common : reload php-fpm] **************************************
fatal: [178.62.201.164]: FAILED! => {"changed": false, "msg": "Unable to start service php8.2-fpm: Job for php8.2-fpm.service failed because the control process exited with error code.\nSee \"systemctl status php8.2-fpm.service\" and \"journalctl -xe\" for details.\n"}
I also tried the same thing with a completely blank site, and the same thing happens. I found this thread: Unable to start php8.2-fpm on Ubuntu 20.04 - #3 by Chriis, but I’m on the latest LTS (and the user wasn’t able to find a solution even when they upgraded).