For reasons of compatibility and availability of future versions of ISPadmin, you have to maintain your Debian Linux version updated. This article will show you how.
First you need to find out which Linux version you are currently using. To do so, use this command.
cat /etc/debian_version
You may expect four possible scenarios based on the result of the command.
1) 7.x Current version of ISPadmin, no need for any updates System support from Debian side was announced until May, 2018.
2) 6.x.x If your version is 6, you may continue using the system, however, system updates for Debian 6 will end in February, 2016. It means no security patches will be issued, among others, and you will have to look after the system security yourself. If you want to switch to newer version, we recommend system migration instead of sole distribution upgrade.
3) 5.0.x (x represents number between 0 and 10) In this case just follow the instructions on update of debian 5 to debian 6 below.
4) 4.0 If your version is Debian 4.0, you will not be able to update Linux version without serious problems so you will need to re-install Linux from the installation DVD available at http://download.ispadmin.eu, and migrate data afterwards. You can have the migration done by our technical support, or do it yourself according to the migration instructions.
Update of Debian 5 to Debian 6
1) Enter sources to /etc/apt/sources.list as follows:
nano /etc/apt/sources.list
deb-src http://ftp.cz.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib
deb http://packages.dotdeb.org squeeze all
2) Preparation for Linux update
gpg --keyserver keys.gnupg.net --recv-key E9C74FEEA2098A6E
gpg -a --export E9C74FEEA2098A6E | apt-key add -
apt-get update
3) Upgrade from Linux 5 Lenny to Linux 6 Squeeze
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" --force-yes -fuy dist-upgrade
4) Download of utilities necessary for update of Apache and Nagios and their application
wget http://update.ispadmin.eu/migration/php.ini-apache -O /etc/php5/apache2/php.ini
wget http://update.ispadmin.eu/migration/nagios-etc.tgz -O /root/nagios-etc.tgz
wget http://update.ispadmin.eu/migration/nagios-htdocs.tgz -O /root/nagios-htdocs.tgz
rm -rf /etc/nagios3/*
tar xvfz /root/nagios-etc.tgz -C /etc/nagios3/
tar xvfz /root/nagios-htdocs.tgz -C /usr/share/nagios3/htdocs/
rm /root/nagios-*
sed '/\?>/d' /tmp/config.php >/tmp/config2.php
mv /tmp/config2.php /data/support/ispadmin/config/config.php
echo "NAGIOS_SECRET = nagios3" >> /data/support/ispadmin/config/config.php
echo "?>" >> /data/support/ispadmin/config/config.php
sed 's/backup\//backup\/:\/usr\/share\/nagios3\/htdocs\//' /etc/apache2/httpd.conf >/tmp/httpd.conf
mv /tmp/httpd.conf /etc/apache2/httpd.conf
5) Restart Apach and Nagios
/etc/init.d/nagios restart
6) If update caused charset encoding problems in web interface, modify /data/support/ispadmin/config/config.php and /data/support/ispadmin_support/config/config.php - add row MYSQL_CHARSET=latin1
nano /data/support/ispadmin/config/config.php
MYSQL_CHARSET=latin1