Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th July 2013, 02:51
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default Debian: Upgrading from Lenny -> Squeeze -> Wheezy

Disclaimer: By no means do I take responsibility if your setup gets borked beyond repair. Keep backups of dbispconfig, customer-data (mail, web, sql) before you proceed (especially of /etc/ as you might want configs later, cert files).

The upgrade guide from howtoforge is pretty good, and that's what I base my findings on.
This guide is for the earlybirds who started with ispconfig 3 back in lenny, carried over to squeeze and now want Wheezy.

This wont be a step to step guide and requires some in depth knowledge of ISPconfig and Debian. It's basicly just to save some time not having to google or do tests yourself.

Lenny to Squeeze is quite painless. You will have to be careful about merging and updating the configs during apt-get upgrade/dist-upgrade unless you know what you are doing.
There are some pitfalls to mention with upgrade to Wheezy however.

1. apache2 will fail to start and mention something on the lines of "line 9" syntax error complaining about your listen 80. (if your kernel is older)

Googling this result yields some info about libapr1 needing to be rebuilt from source. Wrong, it's much easier to just upgrade kernel and rely on the built in libapr1 from debian repo.
Reference:
http://bghints.blogspot.se/2012/06/e...ttpd-from.html

2. You will want to remove "skip-bdb" from your my.cnf config file. It breaks upgrade.
If mysql-server is non-functional, fix this easily by apt-get install mysql-server-5.5 after the last dist-upgrade step.

3. Install php5-fpm packages and other php packages (just copy paste it from the perfect setup guides) .

4. (the most annoying step) If you use ispconfig 3 and used courier-imap/pop in the past.
Dont expect courier to work "at all" without major difficulties.

Save yourself some time and just get dovecot installed. You will want to purge postfix, amavisd-new, spamassassin, clamav, spamc, courier* and anyother mailrelated packages from old install instructions and then just do it from scratch (ispconfig update will be used to regenerate the postfix/amavis configs necessary). Follow the perfect setup wheezy guide from scratch on the mail step.
Install dovecot.
Generate new smtpd.key and smtpd.cert in /etc/postfix . (dovecot wont start without it, and ispconfig upgrade doesnt create it manually, only the install would but you dont want to run that as it'd probably overwrite and reset your ispconfig db).

Use the conversion script till wrote to configure ispconfig for dovecot instead. (see resources below)

Pitfalls: If your install is old, then ISPconfig 3 never created the GRANT for 127.0.0.1 for ispconfig database user. This is the issue that someone experienced in this bugtrack ticket ( http://bugtracker.ispconfig.org/inde...s&task_id=2373 ) although Till just says the setup is wrong, it's actually because legacy systems didnt properly setup GRANTS for host 127.0.0.1 only for "localhost" .

Add it to mysql grants and flush privileges.
GRANT SELECT, INSERT, UPDATE, DELETE ON dbispconfig.* TO 'ispconfig'@'127.0.0.1' IDENTIFIED BY 'yourpassword';

Install dovecot, reinstall squirrelmail (if you use it).
Add chown ispconfig -R the data and tmp dir in /var/lib/squirrelmail or confs cant be created through ispconfig.

5. Now download the ispconfig 3 install package, unzip it, go to install folder and run php -q update.php .
Re-run permissions , services and stuff.

Restart services that might've had issues with mysql, check the log files. If you see any issues go back and look over what you might've missed.

If anyone has something to add that I might've missed, please feel free to say.

It should be pretty easy to migrate from any other mysql integrated ftp server to any newer ones.
I havent yet tried to migrate from mydns to bind but Ill try this later if I find mydns breaking too much. ( This is a Q for Till, how to properly migrate from mydns to bind while keeping all the zones?)


Resources: Migrate your courier /var/vmail structure to dovecot /var/vmail Maildir structure
http://www.howtoforge.com/forums/sho...080#post281080
(use the remote api)

http://www.howtoforge.com/forums/showthread.php?t=51295 (Lenny to Squeeze, proftpd pitfalls)
__________________
http://www.xh.se

Last edited by Norman; 15th July 2013 at 10:50.
Reply With Quote
The Following User Says Thank You to Norman For This Useful Post:
Turbanator (17th July 2013)
Sponsored Links
  #2  
Old 17th July 2013, 01:31
Turbanator Turbanator is offline
Senior Member
 
Join Date: Jun 2008
Posts: 220
Thanks: 23
Thanked 16 Times in 16 Posts
Default

Code:
I havent yet tried to migrate from mydns to bind but Ill try this later if I find mydns breaking too much. ( This is a Q for Till, how to properly migrate from mydns to bind while keeping all the zones?)
I am wanting to do this i the next few days before I upgrade Lenny to Squeeze. I've found a few threads but nothing concrete.
Reply With Quote
  #3  
Old 21st July 2013, 03:46
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default

Some more notes:
Dovecot is quite picky about selfsigned certificates.
I would recommend to sign both postfix and dovecot certificates by one of the cheapest thirdparty signers.

Means dovecot wont complain anymore about the certs.
__________________
http://www.xh.se
Reply With Quote
  #4  
Old 23rd July 2013, 19:22
Turbanator Turbanator is offline
Senior Member
 
Join Date: Jun 2008
Posts: 220
Thanks: 23
Thanked 16 Times in 16 Posts
 
Default

Here are the steps from Till on mydns->bind

1) Stop ynad uninstall mydns
2) Install bind and switch dns server to bind in ispconfig under System > server config
3) run the ispconfig update with reconfigure services
4) login to ispconfig and run the resync (Tools > resync) for the dns records.
5) Check the file /var/log/syslog for errors. Mydns is more fault tolerant then bind in some cases, so it might be that bind complains about syntax issues in some zones. Check the zones in ispconfig dns module and correct the issues.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation just stops, and dies. cosmicsafari Installation/Configuration 3 19th July 2011 11:24
Upgrading Lenny -> Squeeze having ispconfig in mind yanosz General 2 8th July 2011 02:35
Upgrading XEN-environment from Debian Lenny to Squeeze Hans Suggest HOWTO 1 3rd March 2011 20:33
Upgrading Debian Lenny ISPConfig2 server to Debian Squeeze. Hans Installation/Configuration 1 13th February 2011 13:18
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 19:20


All times are GMT +2. The time now is 18:58.


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