PHP 7.2 upgrade breaks NC 15


I have upgraded my LXD container, which was previously on PHP 7.0, Ubuntu 16.04 to PHP 7.2, Ubuntu 18.04.
Now, I get the following screen, when I type the URL of my nextcloud instance:

What does this garbled text mean? Is PHP somehow “not working”? Did I miss something when upgrading? I already restarted apache2 and my redis-server. The upgrade was a simple command: “do-release-upgrade”.

I see a lot of “permission denied” errors in the syslog, but I have checked the nextcloud folder twice and I have set the ownership to www-data (recursive)

My syslog file:

More Info:
d# php --version
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright © 1999-2018, by Zend Technologies

Nextcloud version:
‘version’ => ‘’


Yes, the white screen with black text you see really means that PHP is not working right now. So you need to check the PHP configuration of Ubuntu and make PHP work again.
I can’t help any further. I’m having the same issue on my test system and was too busy to check what exactly broke and how to fix it.

Somehow, it disabled Apaches PHP module when upgrading from PHP 7.0 to 7.2.

You can reenable it with:
sudo a2enmod php7.2

This fixed it for me.

1 Like

Awesome! Thank you for letting me/ us know.