label_alt_logo
2019-01-15

Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS

by Alexander Mahr

Since version 18.1 KeyHelp also supports the operating system Ubuntu 18.04 LTS.

Do you run your KeyHelp on a server with Ubuntu 16.04 LTS and want to take advantage of the optimized Ubuntu 18.04 LTS? With this guide, we give you the opportunity to update the software by yourself and provide you with the required script and detailed instructions. Please do not hesitate to contact us if you have any questions or need assistance.




Such instructions are also available for the older operating system versions of Debian and Ubuntu.
Further information can be found here.

ATTENTION: After you have started the script and confirmed the start of the upgrade with [ENTER], all the steps described here must be completed. If you cancel the current process, any changes already made must be undone manually.

ATTENTION: An ongoing upgrade process should always be monitored. Please keep the terminal window open for the duration of the upgrade. You should consider running the upgrade using the screen command to prevent the SSH session from being accidentally terminated.

ATTENTION: Although extensively tested, a previous backup of the server should always be performed.

 


 

Upgrade guide

 

Preparation

Download the script with this command:

wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_ubuntu_upgrade_16_to_18_php7 -O keyhelp_ubuntu_upgrade_16_to_18.php

Afterwards start script with:

php keyhelp_ubuntu_upgrade_16_to_18.php

1.)
Follow the instructions of the script. It will automatically run necessary tasks in preparation for the upgrade. Your current operating system will be updated.

2.)
During the execution of the script, the control of the program flow is transferred to "do-release-upgrade". Please follow the instructions of the program and answer the questions (see below). Note that depending on the services installed on your server, you may receive further questions.

  • Continue running under SSH? ⇒ yes
  • Note SSH ⇒ [ENTER]
  • Disable third-party package sources ⇒ [ENTER]
  • Do you want to start the upgrade? ⇒ yes
  • Configuration file »/etc/default/grub« ⇒ Keep your currently-installed version
  • Configuration file »/etc/apache2/apache2.conf« ⇒ Keep your currently-installed version
  • Configuration file »/etc/apache2/mods-available/mine.conf« ⇒ Keep your currently-installed version
  • Configuration file »/etc/nagios/nrpe.cfg« ⇒ Keep your currently-installed version
  • Configuration file »/etc/ssh/sshd_config« ⇒ Keep your currently-installed version
  • Configuration file »/etc/awstats/awstats.conf« ⇒ Keep your currently-installed version
  • Configuration file »/etc/dovecot/conf.d/10-ssl.conf« ⇒ Keep your currently-installed version
  • Configuration file »/etc/init.d/proftpd« ⇒ Keep your currently-installed version
  • Configuration file »/etc/apt/apt.conf.d/50unattended-upgrades.ucftmp« ⇒ Keep your currently-installed version
  • Configuration file »/etc/postfix-policyd-spf-python/policyd-spf.conf« ⇒ Keep your currently-installed version
  • Remove obsolete packages? ⇒ yes
  • Restart required ⇒ yes

3.)
Please execute the following command after the restart:

phpenmod ioncube

Afterwards restart the script again with:

php keyhelp_ubuntu_upgrade_16_to_18.php 

4.)
Follow the script's instructions. This last step completes the upgrade. Your system will then restart.

In this step, the web server configuration files are rewritten. Any web server error messages that may appear can be ignored in this step and are reasoned in the order in which the pending tasks must be processed. After all tasks have been completed, these errors no longer exist.

Congratulations, you now use KeyHelp with Ubuntu LTS 18.04!