HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Upgrading an ISPConfig3 server from Debian Lenny to Squeeze (http://www.howtoforge.com/forums/showthread.php?t=51296)

Hans 7th February 2011 13:21

Upgrading an ISPConfig3 server from Debian Lenny to Squeeze
 
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.

edge 7th February 2011 13:34

Hi Hans,

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

Hans 7th February 2011 14:23

@edge,

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-volat.../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

Then:
apt-get install dpkg aptitude apt


And finally:
apt-get dist-upgrade

That's it!

Hans 7th February 2011 18:01

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.

edge 7th February 2011 21:25

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.

till 7th February 2011 21:53

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.

edge 7th February 2011 22:14

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.

till 7th February 2011 22:21

Quote:

I understand, but the site(s) showing the warning(s) stopped doing what they were supposed to do.
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.

Hans 7th February 2011 22:22

@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/virtualiza...an-lenny-amd64

I must be aware of several things as well as you can see here: http://www.debian.org/releases/stabl...l#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).


All times are GMT +2. The time now is 02:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.