2016-10-24 10:11:02 -05:00
<!DOCTYPE html>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
2017-08-02 19:22:16 -05:00
< title > Fixes you need after upgrading Ubuntu from 14.04 to 16.04< / title >
2016-10-24 10:11:02 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
< / head >
< body >
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-10-24 10:11:02 -05:00
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2017-08-02 19:22:16 -05:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "fixes-you-need-after-upgrading-ubuntu-from-1404-to-1604" > Fixes you need after upgrading Ubuntu from 14.04 to 16.04< / h1 >
2016-10-24 10:11:02 -05:00
< div class = "toc" >
< ul >
2017-08-02 19:22:16 -05:00
< li > < a href = "#fixes-you-need-after-upgrading-ubuntu-from-1404-to-1604" > Fixes you need after upgrading Ubuntu from 14.04 to 16.04< / a > < ul >
2017-03-21 05:00:32 -06:00
< li > < a href = "#apache" > Apache< / a > < / li >
2016-10-24 10:11:02 -05:00
< li > < a href = "#postfix" > Postfix< / a > < / li >
2017-01-29 01:52:42 -06:00
< li > < a href = "#iredapd" > iRedAPD< / a > < / li >
2017-01-30 22:26:27 -06:00
< li > < a href = "#roundcube-webmail" > Roundcube webmail< / a > < / li >
2017-01-29 01:52:42 -06:00
< li > < a href = "#php-optional" > PHP [OPTIONAL]< / a > < ul >
< li > < a href = "#nginx-and-php-fpm" > Nginx and php-fpm< / a > < / li >
< / ul >
< / li >
2017-10-16 11:00:05 -05:00
< li > < a href = "#fail2ban" > Fail2ban< / a > < / li >
2016-10-24 10:11:02 -05:00
< / ul >
< / li >
< / ul >
< / div >
2017-03-21 05:00:32 -06:00
< h2 id = "apache" > Apache< / h2 >
< p > Ubuntu 16.04 ships Apache 2.4, there's no mysql auth module for Apache
available, so you must disable all mysql auth related settings in Apache
config files. For example:< / p >
< ul >
< li > /etc/apache2/apache2.conf< / li >
< li > /etc/apache2/conf-available/awstats.conf< / li >
< li > /etc/apache2/conf-available/cluebringer.conf< / li >
< / ul >
2016-10-24 10:11:02 -05:00
< h2 id = "postfix" > Postfix< / h2 >
2017-01-29 01:52:42 -06:00
< pre > < code > postconf -e daemon_directory='/usr/lib/postfix/sbin'
2016-10-24 10:11:02 -05:00
postconf -e shlib_directory='/usr/lib/postfix'
< / code > < / pre >
< ul >
< li > Incorrect < code > daemon_directory< / code > causes Postfix cannot start.< / li >
< li > Incorrect < code > shlib_directory< / code > causes Postfix cannot find pcre/mysql/pgsql/ldap modules.< / li >
< / ul >
2017-01-29 01:52:42 -06:00
< h2 id = "iredapd" > iRedAPD< / h2 >
< p > iRedAPD requires package < code > python-pymysql< / code > :< / p >
< pre > < code > apt -y install python-pymysql
< / code > < / pre >
2017-01-30 22:26:27 -06:00
< h2 id = "roundcube-webmail" > Roundcube webmail< / h2 >
< p > Make sure you have settings below in Roundcube config file < code > config/config.inc.php< / code > :< / p >
< pre > < code > // Required if you're running PHP 5.6 or later
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
// Required if you're running PHP 5.6 or later
$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
< / code > < / pre >
2016-10-24 10:11:02 -05:00
< h2 id = "php-optional" > PHP [OPTIONAL]< / h2 >
< blockquote >
< p > NOTE: This step is toally optional if you're fine with old PHP release.< / p >
< / blockquote >
< p > php was not upgraded to 7.0 automatically, have to install them manually:< / p >
< pre > < code > apt-get install php-json php-gd php-mcrypt php-curl mcrypt php-intl php-xml php-mbstring php-mysql libapache2-mod-php
2017-01-29 01:52:42 -06:00
< / code > < / pre >
< h3 id = "nginx-and-php-fpm" > Nginx and php-fpm< / h3 >
< p > If you're running Nginx, you must install package < code > php-fpm< / code > too:< / p >
< pre > < code > apt install php-fpm
< / code > < / pre >
< p > php-fpm daemon socket file is changed:< / p >
< ul >
< li > old one: < code > /var/run/php-fpm.socket< / code > < / li >
< li > new one: < code > /var/run/php/php7.0-fpm.sock< / code > < / li >
< / ul >
< p > iRedMail hard-codes php-fpm socket file in < code > /etc/nginx/nginx.conf< / code > or
2017-10-16 11:00:05 -05:00
< code > /etc/nginx/conf.d/default.conf< / code > , you must update them to use new socket file.< / p >
< h2 id = "fail2ban" > Fail2ban< / h2 >
< p > After upgrading Fail2ban, it will fail to start due to duplicate parameter
< code > port =< / code > in file < code > /etc/fail2ban/jail.conf< / code > under section < code > [pam-generic]< / code > like
below:< / p >
< pre > < code > [pam-generic]
...
port = all
...
port = anyport
< / code > < / pre >
< p > Please comment out either one of them, then Fail2ban should be happy to start.< / p > < div class = "footer" >
2017-11-16 21:48:44 -06:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://bitbucket.org/zhb/iredmail-docs/src" > BitBucket repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2016-10-24 10:11:02 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2016-10-24 10:11:02 -05:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2016-10-24 10:11:02 -05:00
< / script >
< / body > < / html >