Upgrading an ISPConfig3 server from Debian Lenny to Squeeze

Discussion in 'Installation/Configuration' started by Hans, Feb 7, 2011.

  1. Hans

    Hans Moderator ISPConfig Developer

    During the upgrade of my ISPConfig3 testing-server from Debian Lenny to Squeeze, one problem occurred:
    MySQL-server-5.1 could not start.

    This happend, because during the upgrade to MySQL-server5.1, i chose to keep my own /etc/my.cnf file.
    After some investifation, i found out that that the line "skip-bdb" within this file was the cause of this.

    So, if you prepair an upgrade from Lenny to Squeeze and your /etc/my.cnf file contains the line "skip-bdb", please comment it out by placing a hash-tag (#) in front of this line.
    Then your upgrade to MySQL-server5.1 will be succesful!

    Hope this info will help others too.
  2. edge

    edge Active Member Moderator

    Hi Hans,

    Long time no see.
    Can you please post exactly what you did to upgrade the Debian server to Squeeze?
  3. Hans

    Hans Moderator ISPConfig Developer


    Within /etc/apt/sources.list i changed every single word "lenny" into "squeeze".

    I also removed the the line:
    deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

    Because the sequrity upgrades will now come from the main repositories itself.
    Reference: http://lists.debian.org/debian-volatile-announce/2011/msg00000.html

    Instead of that i added the lines:

    deb http://security.debian.org/ squeeze/updates main
    deb-src http://security.debian.org/ squeeze/updates main

    After that, did an:
    apt-get update

    apt-get install dpkg aptitude apt

    And finally:
    apt-get dist-upgrade

    That's it!
    Last edited: Feb 15, 2011
  4. Hans

    Hans Moderator ISPConfig Developer

    After having a closer look to the testing server.

    You can also remove the file remove the file /etc/environment because ons Squeeze you need to use /etc/default/locale instead. The locales can be the same as they where in /etc/environment.

    It's also save to remove the file /etc/network/options
    (This file will be ingored by Debian Squeeze)

    If you don't remove /etc/environment and /etc/network/options, some warning appear during boot time.
    Last edited: Feb 7, 2011
  5. edge

    edge Active Member Moderator

    Wow.. Just done an update, but lot's of sites stopped working, so I reversed back to the old setup (Thank God for XenServer)

    PHP problems like: Deprecated: Function eregi(), warning: function.getimagesize, warning: function.filesize, and lots more.

    I will 1st need to fix the PHP problems on a test server and than go live with it.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The deprecated warnings do not indicate that something will not work in the current install. They are just for developers so that they get aware that these functions will get removed in future php versions. On a production system you should disable them in the php.ini file by setting the error level to show only errors abd warnings but no notices or deprecated messages.
  7. edge

    edge Active Member Moderator

    I understand, but the site(s) showing the warning(s) stopped doing what they were supposed to do.

    I will 1st do some more testing and make the needed PHP code changes before updating the live server.
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    This can happen when the warnings get printed on the screen and the site tries to change the headers afterwards which is impossible if something has sent to the browser already. So disabling the warnings might fix that.
  9. Hans

    Hans Moderator ISPConfig Developer

    @Edge, i'm glad you can rollback to the previous setup!

    I don't use Xenserver, but Xen from the Debian repository and the setup is described here: http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64

    I must be aware of several things as well as you can see here: http://www.debian.org/releases/stable/i386/release-notes/ch-information.en.html#xen-upgrades

    It will take some time for me to find out how i can perform an upgrade in the best way. (Until now i only upgraded testing servers, but the xen environment is a little more complicated).
    Last edited: Feb 7, 2011

Share This Page