How To Upgrade An Ubuntu 7.10 Server ("The Perfect Setup" + ISPConfig) To Ubuntu 8.04 LTS
How To Upgrade An Ubuntu 7.10 Server ("The Perfect Setup" + ISPConfig) To Ubuntu 8.04 LTSVersion 1.0 This article explains how you can upgrade an Ubuntu 7.10 (Gutsy Gibbon) server to Ubuntu 8.04 LTS (Hardy Heron). I'm using an Ubuntu 7.10 server, set up according to The Perfect Server - Ubuntu Gutsy Gibbon (Ubuntu 7.10) and with ISPConfig installed, with web sites, email and ftp accounts, databases, DNS records, etc., and upgrade it to Ubuntu 8.04 LTS. I do not issue any guarantee that this will work for you!
1 Preliminary NoteAs mentioned in the introduction, my Ubuntu 7.10 server is configured according to The Perfect Server - Ubuntu Gutsy Gibbon (Ubuntu 7.10) and has ISPConfig installed. I have used ISPConfig to set up web sites, email and ftp accounts, databases, DNS records, etc. I have upgraded it to Ubuntu 8.04 LTS and tested the existing web sites, email and ftp accounts, databases, DNS records, etc. as well as ISPConfig afterwards, and I have then set up new web sites, users, databases, DNS records etc. to test the functionality of the server after the distribution upgrade, and found no errors. Everything is working as expected. Please note that I'm running all commands here as the root user. You can become root by typing: sudo su
2 Distribution Upgrade To Ubuntu 8.04 LTS ServerFirst we run apt-get update to update the system's package database. Then we install the package update-manager-core: apt-get install update-manager-core To start the distribution upgrade, we type in: do-release-upgrade During the upgrade process, the system will ask a few questions which we answer as follows: root@server1:~# do-release-upgrade Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended If you continue, a additional ssh daemon will be started at port Continue [yN] <-- y (Indeed I used SSH to update the system; although the upgrade process tells us that it is not recommended to run the upgrade over SSH, I didn't have any problems; the connection was stable, and I didn't have to go to the console, nor did I have to connect my SSH client to port 9004. If you are having connection problems, please direct your SSH client to port 9004, or use the console, if you have physical access to the system.) [...] At the end of the upgrade, a system restart is required: [...] After the reboot, you can use your new Ubuntu 8.04 LTS (Hardy Heron) Server. A uname -a shows that you have a new kernel... root@server1:~# uname -a
3 Additional StepsThe distribution upgrade is now complete, but it is strongly recommended that you follow the next steps to make your setup compatible with ISPConfig:
3.1 Change The Default ShellMake sure that /bin/sh is a symlink to /bin/bash, not /bin/dash by running: ln -sf /bin/bash /bin/sh
3.2 Disable AppArmorAppArmor is a security extension (similar to SELinux) that should provide extended security. In my opinion you don't need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn't working as expected, and then you find out that everything was ok, only AppArmor was causing the problem). Therefore I disable it. We can disable it like this: /etc/init.d/apparmor stop
3.3 SaslauthdNext we must modify the saslauthd configuration a little bit, because otherwise you'll probably get errors like this one when you try to send emails: Apr 28 13:21:57 server1 postfix/smtpd[5668]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied Open /etc/default/saslauthd and make it look as follows: vi /etc/default/saslauthd # # Settings for saslauthd daemon # Please read /usr/share/doc/sasl2-bin/README.Debian for details. # # Should saslauthd run automatically on startup? (default: no) START=yes # Description of this saslauthd instance. Recommended. # (suggestion: SASL Authentication Daemon) DESC="SASL Authentication Daemon" # Short name of this saslauthd instance. Strongly recommended. # (suggestion: saslauthd) NAME="saslauthd" # Which authentication mechanisms should saslauthd use? (default: pam) # # Available options in this Debian package: # getpwent -- use the getpwent() library function # kerberos5 -- use Kerberos 5 # pam -- use PAM # rimap -- use a remote IMAP server # shadow -- use the local shadow password file # sasldb -- use the local sasldb database file # ldap -- use LDAP (configuration is in /etc/saslauthd.conf) # # Only one option may be used at a time. See the saslauthd man page # for more information. # # Example: MECHANISMS="pam" MECHANISMS="pam" # Additional options for this mechanism. (default: none) # See the saslauthd man page for information about mech-specific options. MECH_OPTIONS="" # How many saslauthd processes should we run? (default: 5) # A value of 0 will fork a new process for each connection. THREADS=5 # Other options (default: -c -m /var/run/saslauthd) # Note: You MUST specify the -m option or saslauthd won't run! # # See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information. # See the saslauthd man page for general information about these options. # # Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd" #OPTIONS="-c -m /var/run/saslauthd" OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r" Then add the postfix user to the sasl group and restart both Postfix and saslauthd: adduser postfix sasl
4 Links
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com







Recent comments
22 hours 13 min ago
23 hours 42 min ago
1 day 3 hours ago
1 day 6 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 12 hours ago