PHP too updated? not too sure please help?

Hey, just come over to nextcloud from owncloud with the auto-migration tool. I have set everything up by the video but I have encountered an error whenever i go to the website that the server should be located at where it just displays the message of:

“This version of Nextcloud is not compatible with > PHP 7.2.
You are currently running 7.2.34-21+ubuntu20.04.1+deb.sury.org+1.”

I have lots of data on the cloud server and that was our backup and dont want to lose it. Does anyone know what commands i would need to run to fix this as I am a complete noob :laughing:
(Server run on an old tower pc running ubuntu 20.04)

Let me know if you need any more details

Any help much appreciated, thanks for your time :slight_smile:

Sounds like you are NOT running the latest version of nextcloud. Try updating.

I just upgraded via the webscript from owncloud 10.4 to nextcloud 10.2 and now get:
“This version of Nextcloud is not compatible with > PHP 7.2.
You are currently running 7.2.34-18+0~20210223.60+debian10~1.gbpb21322.”
when trying to do web access
I do not know how to upgrade Nextcloud as I have no access to the web interface.

Any help is appreciated!