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
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
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.