Upgrade question Ubuntu 16.04 to 18.04 server upgrade

I had the same issue, problems with upgrading Nextcloud ubuntu host from 16.04 to 18.04. However, I had apache instead of nginx and I needed few more packages…and then some updates to config files. I documented that to my blog at Ubuntu upgrade from 16.04 to 18.04 messed up Nextcloud installation (Fixed) if somebody else would have the same problems.

Briefly it is:

  1. Upgrade Ubuntu normally (do-release-upgrade)

  2. Fix php setup with command:

    sudo apt-get install php7.2 php7.2-fpm php7.2-cli php7.2-curl php7.2-gd php7.2-mysql php7.2-gd php7.2-imagick php7.2-recode php7.2-tidy php7.2-xmlrpc php7.2-mbstring zip unzip php7.2-common php7.2-opcache php7.2-json php7.2-intl php7.2-xml php7.2-zip libapache2-mod-php7.2

  3. Edit /etc/redis/redis.conf

Uncomment rows
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 700

and change ‘unixsocketperm 700’ to ‘unixsocketperm 770’

  1. edit /var/www/nextcloud/config/config.php

so that the redis.sock will point to the same file as in redis.conf

2 Likes