From 4f959ee9ae6290d47a0cfb812a64d818ee663f68 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Sun, 29 Jan 2017 15:52:42 +0800 Subject: [PATCH] Update doc for upgrading Ubuntu 14.04 to 16.04. --- en_US/upgrade/0-upgrade.ubuntu.14.04-16.04.md | 26 ++++++++++++++++- html/upgrade.ubuntu.14.04-16.04.html | 28 +++++++++++++++++-- 2 files changed, 50 insertions(+), 4 deletions(-) diff --git a/en_US/upgrade/0-upgrade.ubuntu.14.04-16.04.md b/en_US/upgrade/0-upgrade.ubuntu.14.04-16.04.md index 1912cd4e..bbc98721 100644 --- a/en_US/upgrade/0-upgrade.ubuntu.14.04-16.04.md +++ b/en_US/upgrade/0-upgrade.ubuntu.14.04-16.04.md @@ -5,13 +5,21 @@ ## Postfix ``` -postconf -e daemon_directory='/usr/lib/postfix/sbin’ +postconf -e daemon_directory='/usr/lib/postfix/sbin' postconf -e shlib_directory='/usr/lib/postfix' ``` * Incorrect `daemon_directory` causes Postfix cannot start. * Incorrect `shlib_directory` causes Postfix cannot find pcre/mysql/pgsql/ldap modules. +## iRedAPD + +iRedAPD requires package `python-pymysql`: + +``` +apt -y install python-pymysql +``` + ## PHP [OPTIONAL] > NOTE: This step is toally optional if you're fine with old PHP release. @@ -21,3 +29,19 @@ php was not upgraded to 7.0 automatically, have to install them manually: ``` apt-get install php-json php-gd php-mcrypt php-curl mcrypt php-intl php-xml php-mbstring php-mysql libapache2-mod-php ``` + +### Nginx and php-fpm + +If you're running Nginx, you must install package `php-fpm` too: + +``` +apt install php-fpm +``` + +php-fpm daemon socket file is changed: + +* old one: `/var/run/php-fpm.socket` +* new one: `/var/run/php/php7.0-fpm.sock` + +iRedMail hard-codes php-fpm socket file in `/etc/nginx/nginx.conf` or +`/etc/nginx/conf.d/default.conf`, you must update them to use new socket file. diff --git a/html/upgrade.ubuntu.14.04-16.04.html b/html/upgrade.ubuntu.14.04-16.04.html index 6949f376..6352336b 100644 --- a/html/upgrade.ubuntu.14.04-16.04.html +++ b/html/upgrade.ubuntu.14.04-16.04.html @@ -20,13 +20,17 @@

Postfix

-
postconf -e daemon_directory='/usr/lib/postfix/sbin’
+
postconf -e daemon_directory='/usr/lib/postfix/sbin'
 postconf -e shlib_directory='/usr/lib/postfix'
 
@@ -34,13 +38,31 @@ postconf -e shlib_directory='/usr/lib/postfix'
  • Incorrect daemon_directory causes Postfix cannot start.
  • Incorrect shlib_directory causes Postfix cannot find pcre/mysql/pgsql/ldap modules.
  • +

    iRedAPD

    +

    iRedAPD requires package python-pymysql:

    +
    apt -y install python-pymysql
    +
    +

    PHP [OPTIONAL]

    NOTE: This step is toally optional if you're fine with old PHP release.

    php was not upgraded to 7.0 automatically, have to install them manually:

    apt-get install php-json php-gd php-mcrypt php-curl mcrypt php-intl php-xml php-mbstring php-mysql libapache2-mod-php
    -
    + +

    Nginx and php-fpm

    +

    If you're running Nginx, you must install package php-fpm too:

    +
    apt install php-fpm
    +
    + +

    php-fpm daemon socket file is changed:

    + +

    iRedMail hard-codes php-fpm socket file in /etc/nginx/nginx.conf or +/etc/nginx/conf.d/default.conf, you must update them to use new socket file.