Upgrade question Ubuntu 16.04 to 18.04 server upgrade

Everything is running fine under 16.04 and plan to upgrade to 18.04 .
I do the following:
$ sudo apt update
$ sudo apt upgrade

Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
libvpx3 libzip4
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
nginx-core
The following NEW packages will be installed:
libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
libnginx-mod-http-geoip libnginx-mod-http-image-filter
libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
nginx-full
The following packages will be upgraded:
nginx nginx-common
2 upgraded, 11 newly installed, 1 to remove and 0 not upgraded.
Need to get 922 kB of archives.
After this operation, 926 kB of additional disk space will be used.

It ask me it will remove nginx-core and upgrades/install some new nginx files.
How shall I proceed? What changes or modifications do I need to do?
I know I have to fix:
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

Nextcloud version 14.0.3
Operating system and version Ubuntu 16.04 LTS
nginx version: nginx/1.10.3 (Ubuntu)
PHP version 7.0

1 Like

Solved. Followed the 16.04 to 18.04 instructions. After sudo apt upgrade entered Y, N, N but it was at old 16.04 php7.0 and had to do a 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

18.04 uses php7.2

This a Nginx web server.
It worked.

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

Thank you so much! This is invaluable! I tried a bunch of other suggestions, but this actually works; amazing!

Apparently there is still something missing, it looks like the html is rendered (login works etc.), but the css is missing? Do you have any idea?

Great that it helped. Then it was not a wast of time to document it.

I got it fully working with that. No idea if the css is missing.

Had the same troubles, tried for months on and off, gave up. THANK you! worked flawlessly …