Php help issue after updating ubuntu server

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