Php help issue after updating ubuntu server

You are on Ubuntu 20.04 ?

1 Like

Yes Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)

This ubuntu is bundled with php 7.4 by default you can’t install php7.3 by just apt install you have to install a non official repo for this.

Search for install php7.3 ubuntu 20.04

1 Like

How do I update from CLI?

You can’t because you don’t have php7.3 the upgrade process can’t be lunched

1 Like

So what can I do?

Reinstall on Debian 10 or similar.

Or pay someone to manage nextcloud for you.

Or upgrade to v18.

2 Likes

Follow a how to install php7.3 on ubuntu 20.04
Then migrate then uninstall 7.3

1 Like

I am not just running nextcloud i am running a lot more on my server,

OK so your option is to upgrade to v18 or figure out how to downgrade to 7.3.

1 Like

How could I downgrade to 7.3?

Upgrading ubuntu when you have a lot of thing on your server is silly.
Ubuntu have always the last software, then your service won’t like the last php7.4 because they rely on old versions

1 Like

I don’t use 20.04 and I doubt very many people here do. Try finding the .deb packages and manually install them.

1 Like

what is a .deb package?

Reinstall on 18.04 or debian 10 or upgrade to v18.

Other then that you need to hire someone to do this for you.

1 Like

Nate can still upgrade. He just has to go through a manual upgrade and it doesn’t sound like he can do that task.

Rock and hard place. Don’t upgrade your OS again without testing first.

1 Like

Ok i have leaned my lessen on not upgrading my os.

Hello
Bad idea, you should upgrade your OS but you have to inquire before. Nextcloud is not a apt package on debian or Ubuntu, as a consequence, there may be compatibility issues. In the official NextCloud doc, (https://docs.nextcloud.com/server/18/admin_manual/installation/system_requirements.html ), Ubuntu 20.04 is not recommended. Maybe because the doc is not up to date, we cannot know. So lets the NextCloud Team updating the doc to be sure that the last version of whatever is compatible.

1 Like

See the method 2 for installing php7.3

Try to find .deb files for every php7.3 extensions

1 Like

googled “ubuntu 20.04 php 7.2”

first hit seems legit

Follow the steps described below

1: add the PPA maintained by Ondrej Surý

sudo add-apt-repository ppa:ondrej/php

2: update the system

sudo apt update

3: install PHP versions 7.2

sudo apt install php7.2

4: Select the standard version of PHP

sudo update-alternatives --set php /usr/bin/php7.2

5: Disable version 7.4 or the one you are using

sudo a2dismod php7.4

6: enable version 7.2

sudo a2enmod php7.2

7: Restart the apache server

sudo systemctl restart apache2

Hope this helps!

ps. i run NC 18 with php 7.4 on ubuntu 16.04 using the above steps to get the latest php

pps. if you need more instructions, install these modules too

apt install libapache2-mod-php7.2 php7.2-cli php7.2-common php7.2-mbstring php7.2-gd php7.2-intl php7.2-xml php7.2-mysql php7.2-zip php7.2-dev php7.2-curl php7.2-fpm php7.2-json php7.2-bz2 php7.2-ldap
1 Like