You are here
Just Mie - Sun, 2022/01/02 - 13:31
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?
Forum:
Solution found
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:
https://www.turnkeylinux.org/comment/50598#comment-50598
Be careful with this info
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 :)
Hmm, I wonder what the issue is/was?
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.
Issue
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.
Ok, now worries! :)
Sounds like a plan...! :)
Sounds like a plan...! :)
I agree completely. Why fix something that isn't actually broken?!
Hmm, that's strange? Maybe a missing dependency?!
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:
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:
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)
Turnkey Nextcloud 17.1 ISO?
found the culprit
Thanks for posting back with your fix!
Thanks for posting back with your fix!
It sounds like there were some PHP modules/libraries missing from your install. I've actually just posted some updated instructions on installing a newer PHP version. It's probably too late for you now, but the first part of that ("Set PHP version to install and collect current PHP version & packages") should ensure that all the same PHP modules/libraries that are installed for the default PHP version, should be installed for the new PHP version.
Thanks
Upgrade PHP7.3 to 8.X through Webmin & CLI
My Idiots Guide: for people who have no idea what their doing but still need to Linux it out...
Upgrading TurnKey Linux PHP to PHP 8.0
On your PC
=======================
On the TurnKey Linux machine CLI:
[NOTE: the following will not work for some reason on Webmin for me]
=======================
on the WordPress Appliance Services Window: Click Enter to Quit
Login as root
Run the following commands one line at a time:
Restart the Machine by typing:
after reboot run to confirm php version:
and if it liked what you've been in putting it should look something like this:
Note the PHP 8.1.13
REF:
By Josphat Mutai - November 20, 2021
https://computingforgeeks.com/how-to-install-php-on-debian-linux/
Add new comment