Hmm, if you used the ownCloud provided packages it is best to save the config files and the nextcloud folder itself before you move over. The ānormalā packages (not owncloud-files) installs something in the etc/apache folder: etc/apache2/conf-available/owncloud.conf - might be good to have a look at what that is and how it helps 
Otherwise, save the nextcloud folder and you should be good.