Nextcloud not working - Service Unavailable

Please check if there are custom templates:
Does the dir /etc/e-smith/templates-custom/etc/httpd/conf.d/zz_nextcloud.conf exist and are there files in it?

Does it work if you expand the template?

expand-template /etc/httpd/conf.d/zz_nextcloud.conf

yes ther is a file in it ā€œ10baseā€
after expandig it and a reboot nextcloud is not working and I had to start php manualy.
also the problem in my other thred was there again.

Please move the ā€œ10baseā€ file away and expand the template again.
You have an old custom template that overrides the new configuration of Nextcloud.

mv /etc/e-smith/templates-custom/etc/httpd/conf.d/zz_nextcloud.conf ~
expand-template /etc/httpd/conf.d/zz_nextcloud.conf

Please also check if there are other custom templates in /etc/e-smith/templates-custom/…

…which will continue to break Let’s Encrypt for that virtual host. But at least it will avoid the problem with the wrong version of PHP.

I thought the custom template is the initial problem?
Isn’t it also the cause of the wrong letsencrypt line?

Indeed, right you are–I thought I’d checked my own templates and seen that the line in question wasn’t there, but now that I look I see that isn’t the case. So yes, the problem in both cases was a custom template fragment. Wonder what it was doing there in the first place.

1 Like

Maybe it was created to have a more recent PHP version in Nextcloud.

Thank you this was it.
I have no clue why I had this custom template there. :man_shrugging:

1 Like