I use the Turnkey Nextcloud LCX appliance.

Just upgraded Nextcloud to v23, and got the message that for Nextcloud v24 PHP7.3 isn't supported anymore. 
In the Trunkey repositories, PHP7.3.31 is the latest version. Can I just upgrade it from the PHP website (build it myself), or use the debian repository, or do I need to do something special to upgrade?



Missed the comment from Jeremy in another post about php. Probably had a brainfart when using the search function.

Here's the comment, and how to update PHP if you really need to:


Don't just follow the guide, and update your Nextcloud-turnkey LCX without making snapshots beforehand :)
Just bricked it a bit when applying the php update. Made a snapshot beforehand, so no harm done. Nice to be able to test it out, probably missed a php package I should've installed. I'll mess with it again when NC24 arrives :)

Jeremy Davis's picture

Glad you found the info! Although the fact that you had issues isn't ideal. Perhaps you could consider creating a new test server from a snapshot? That way you can leave your current server as is until you have confirmed you have a working process. Please feel free to post specifics of the issues you hit and I'm more than happy to do my best to help out.

Probably just forgot to add some php packages. Saw I got a PHPxxx not found error in Nextcloud, and as it was just a quick and dirty test, I didn't bother to look into it, and just reverted the snapshot.

If I have a bit of time in the coming weeks, I'll clone the container, and see what actually happens and report back.

Jeremy Davis's picture

Ok, now worries! :)
Jeremy Davis's picture

Sounds like a plan...! :)

I agree completely. Why fix something that isn't actually broken?!

Jeremy Davis's picture

The fact that the phpinfo page worked (and I assume reported php7.4 running and didn't show any errors or warnings?!) suggests that PHP itself was working as expected. Nextcloud supports PHP7.4 - in fact, their current docs note that as the minimum version. So that seems an unlikely cause of the issue. So the only thing that occurs to me is that perhaps there is a (php package) Nextcloud dependency missing?

I wasn't explicit about which PHP packages you should install because it will vary from use case to use case. I only documented how to collect the PHP packages (technically, any package that included PHP in it's name) installed and hints around how to work out what you should need to install for the newer PHP version. Perhaps that wasn't explicit enough?

A quick look at the logs might clear that up. If my guess is right (and it's a missing module), it might even be obvious what package needs to be installed? A good place to start is checking the last 20 lines of the Apache error log:

tail -20 /var/log/apache2/error.log

As you probably guessed, you can change the number to show more or less lines. It can sometimes be nice to watch the log live instead:

tail -f /var/log/apache2/error.log

Then you can refresh the page in your browser and you should see the errors appearing in the log in real time.

(Ctrl-C to exit)

Add new comment