# Upgrade question Ubuntu 16.04 to 18.04 server upgrade

**URL:** <https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559>\
**Category:** ℹ️ Support\
**Created:** [October 21, 2018, 12:04pm UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559 "2018-10-21T12:04:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick0525](https://help.nextcloud.com/letter_avatar/patrick0525/32/5_5575768a8748004e209b776fc1b2916d.png) [@patrick0525](https://help.nextcloud.com/u/patrick0525)\
**Post date:** [October 21, 2018, 12:04pm UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/1 "2018-10-21T12:04:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patrick0525](https://help.nextcloud.com/letter_avatar/patrick0525/32/5_5575768a8748004e209b776fc1b2916d.png) [@patrick0525](https://help.nextcloud.com/u/patrick0525)\
**Post date:** [October 21, 2018, 8:21pm UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/2 "2018-10-21T20:21:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![iteco](https://help.nextcloud.com/user_avatar/help.nextcloud.com/iteco/32/15922_2.png) [@iteco](https://help.nextcloud.com/u/iteco)\
**Post date:** [May 10, 2019, 11:38am UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/3 "2019-05-10T11:38:46Z")

</div>

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)](https://iteco.fi/ubuntu-upgrade-from-16-04-to-18-04-messed-up-nextcloud-installation/) if somebody else would have the same problems.

Briefly it is:

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

2. Fix php setup with command:

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

---

<div class="post-metadata">

**Author:** ![dreamflasher](https://help.nextcloud.com/letter_avatar/dreamflasher/32/5_5575768a8748004e209b776fc1b2916d.png) [@dreamflasher](https://help.nextcloud.com/u/dreamflasher)\
**Post date:** [June 11, 2019, 7:22pm UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/4 "2019-06-11T19:22:32Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![iteco](https://help.nextcloud.com/user_avatar/help.nextcloud.com/iteco/32/15922_2.png) [@iteco](https://help.nextcloud.com/u/iteco)\
**Post date:** [June 15, 2019, 9:01pm UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/5 "2019-06-15T21:01:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![enrgyxprt](https://help.nextcloud.com/letter_avatar/enrgyxprt/32/5_5575768a8748004e209b776fc1b2916d.png) [@enrgyxprt](https://help.nextcloud.com/u/enrgyxprt)\
**Post date:** [October 13, 2019, 7:56pm UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/6 "2019-10-13T19:56:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 8:04am UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/7 "2024-12-04T08:04:02Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 3:29pm UTC](https://help.nextcloud.com/t/upgrade-question-ubuntu-16-04-to-18-04-server-upgrade/39559/8 "2024-12-09T15:29:12Z")

</div>


