====== Debian Update ===== ===== Version Info ===== ^ispCP Version |1.0.7 RC1 | ^INSTALL Script|2.7 | ^Maintainer |ispCP DevTeam | ^Linux Distros |Debian Lenny (4), Squeeze (5) | ^Last Update |04.08.2010 | ===== The Upgrade Process ===== ==== 0. Before starting ==== **WARNING:** ispCP ω can only be updated from post 1.0.0. If you have a version prior 1.0.0 (final release) installed, update to ispCP ω 1.0.0 first. **NOTE:** Debian Etch is not longer supported. Make sure you are logged in as root and MySQL is running. ==== 1. Download, Untar or unzip the distribution files to a secure directory: ==== # cd /usr/local/src wget http://mesh.dl.sourceforge.net/sourceforge/ispcp/ispcp-omega-1.0.7-rc1.tar.bz2 # tar xjvf ispcp-omega-1.0.7-rc1.tar.bz2 \\ ==== 2. Change to the newly created directory: ==== # cd ./ispcp-omega-1.0.7 \\ ==== 3. Install the required modules ==== First update your system: # aptitude update && aptitude safe-upgrade # aptitude install lsb-release # aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`) \\ Make sure you have added the non-free into your /etc/apt/sources.list: deb http://ftp.debian.org/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free -> if you get to the courier screen select 'no' to web directories\\ -> if you get to the postfix screen select 'internet site' and then type 'root' for mail. If you've set debian up correctly on install your domain should be already on screen. Select 'no' to force sync updates.\\ -> if you get to the proftpd screen, select 'standalone'\\ -> if you get to the rootkithunter screen, select two time 'yes' \\ ==== 4. Stop the ispcp_deamon and build the System by using make: ==== # /etc/init.d/ispcp_daemon stop # make install \\ ==== 5. Backup files - VERY IMPORTANT POINT==== # cp -v /var/www/ispcp/engine/ispcp-db-keys.pl /tmp/ispcp/var/www/ispcp/engine/ # cp -v /var/www/ispcp/gui/include/ispcp-db-keys.php /tmp/ispcp/var/www/ispcp/gui/include/ # cp -v /var/www/ispcp/gui/themes/user_logos/* /tmp/ispcp/var/www/ispcp/gui/themes/user_logos/ # cp -TvR /var/www/ispcp/gui/domain_default_page /tmp/ispcp/var/www/ispcp/gui/domain_default_page # cp -v /var/www/ispcp/gui/tools/pma/config.inc.php /tmp/ispcp/var/www/ispcp/gui/tools/pma/ # cp -v /var/www/ispcp/gui/tools/webmail/data/* /tmp/ispcp/var/www/ispcp/gui/tools/webmail/data/ Prior 1.0.3: # cp -v /var/www/ispcp/engine/messager/ispcp-db-keys.pl /tmp/ispcp/var/www/ispcp/engine/messenger/ After 1.0.3: # cp -v /var/www/ispcp/engine/messenger/ispcp-db-keys.pl /tmp/ispcp/var/www/ispcp/engine/messenger/ After 1.0.5: # cp -TvR /var/www/ispcp/gui/domain_disable_page /tmp/ispcp/var/www/ispcp/gui/domain_disable_page \\ ==== 6. Delete old files to avoid security risks: ==== # rm -Rf /var/www/ispcp/engine/ # rm -Rf /var/www/ispcp/gui/{admin,client,include,orderpanel,themes,reseller}/ # rm -Rf /var/www/ispcp/gui/tools/{pma/,filemanager/,webmail/,index.php} # rm -Rf /var/www/ispcp/gui/{*.php,favicon.ico,robots.txt} \\ ==== 7. Copy /usr and /var directories into your system (you may make backups) ==== # cp -Rv /tmp/ispcp/usr/* /usr/ # cp -Rv /tmp/ispcp/var/* /var/ \\ ==== 8. Backup ispcp.conf and copy the /etc directory into your system (you may make backups): ==== # mv -v /etc/ispcp/ispcp.conf /etc/ispcp/ispcp.old.conf # cp -Rv /tmp/ispcp/etc/* /etc/ \\ ==== 9. Now it's time to update your installation. Change into the engine directory: ==== # cd /var/www/ispcp/engine/setup ==== 10. Start the engine update: ==== # perl ispcp-update ==== 11. Update ispCP ω step-by-step ==== If you get no error, all went good; if you get one, look at http://isp-control.net/forum to solve the problem. ==== 12. Clean the temporary folders: ==== # rm -fR /tmp/ispcp/