I installed Nextcloud with Caddy by following the instructions found here:
The setup works great. But, I would like to upgrade php from 7.0 to 7.1 or 7.2.
I have tried a few of the upgrade tutorials on the web, but none seem to work for me. How do you guys suggest I go about upgrading PHP from 7.0 to 7.1 or 7.2 with Caddy and Nextcloud? Thanks in advance.
Depending on how you’ve set up your fastcgi directive, you won’t need to change anything.
Once you upgrade PHP, the newer version will be listening (at either the standard PHP-FPM port 9000, or the unix socket on disk). You’d essentially be swapping out the older version for the newer version in place.
You might have needed to change something if you’d used Docker (again, depending on the method you used to reference the PHP-FPM listener upstream), but the guide has you install all these programs directly on the host, so it’s just a matter of running the upgrade via your package manager.