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