пятница, 15 августа 2008 г.

VHCS2 on Ubuntu 6.06 LTS (Dapper)

 



The box this blog is hosted on was running an aged Ubuntu Breezy 5.10 - as support for that version was stopped some time ago I thought it a good idea to upgrade to 6.06 LTS (Dapper). So a quick edit of the /etc/apt/sources.list changing every mention of 'breezy' to 'dapper', a 'sudo apt-get update' and finally a 'sudo apt-get dist upgrade' and we were off.


No major dramas - after a reboot it all came back up, web was working, mysql was working - all looked fine. However, inbound and outbound email had died - the mail.info log was full of messages from postfix stating "delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused". After a lot of head scratching and poking around on google it became clear that postfix couldn't hand the email over to amavis for virus checking. This was because the upgrade to Dapper had installed a new version of amavis which had kindly renamed the old amavis config in /etc/amavis to 'amavisd.conf.disabled' - the fact this file existed stopped amavis from starting (a fact revealed by running "amavisd status") - simply removing the file and restarting the amavis service did the trick and postfix started working again.


BUT email still wasn't appearing in the inbox, something else in the process had failed too. More head scratching, more google research and the culprit was revealed to be spamassasin. Checking the spamassasin install (run "spamd --help") showed it was missing the libio-socket-ssl-perl package - a quick apt-get install later followed by a spamassasin service restart and we were back in business!


A browse through the VHCS2 log files revealed another issue which was solved by editing /var/www/vhcs2/engine/vhcs2_common_code.pl and adding ‘keysize’ => 32, to the section starting with "my $cipher = Crypt::CBC -> new(".


The final problem to solve was that the webmail interface had stopped working, when a user attempted to logon to their webmail account they got "ERROR (2): Header may not contain more than a single header, new line detected. (/webmail/inc/inc.php:169) " - this turned out to be simple to fix. Edit inc.php and find the section that reads;

Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT\r\n".
"Cache-Control: no-cache\r\n".
"Cache-Control: must-revalidate")

And remove the "\r\n" from the first two lines.

Комментариев нет: