I wanted to test my nextcloud install with php7 on Debian Jessie before moving to a full upgrade to stretch. I used current dotdeb packages of 7.0 and a2dismod php5 and activated php7 as suggested in an older thread in this forum.
after Apache2 restart nothing works, neither webinterface nor client connect. When moving back to php5 it works again.
I provide my apache2 error logs below, anymore info needed?
Nextcloud version: 12
Operating system and version: Debian jessie 8.8
apache2 error log:
I’m not a programmer but shouldn’t it be “nextcloud” instead of “owncloud”?
[Sun Jun 18 23:35:49.370344 2017] [:error] [pid 18212] [client 22.214.171.124:58880] PHP Fatal error: Uncaught Error: Call to undefined function OC\Log\json_encode() in /var/www/owncloud/lib/private/Log/File.php:120\nStack trace:\n#0$
I migrated from owncloud one year ago. I haven’t changed the folder’s name since.
thanks @tflidd for that remark. I fixed it by doing apt-get install php7.0-json --reinstall (since it was already installed before)
I also needed to install php7.0-fpm and run the command a2enconf php7.0-fpm
after that, it works like a charm