97 lines
4.2 KiB
HTML
97 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>Upgrade Ubuntu from 18.04 to 20.04</title>
|
|
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="navigation">
|
|
<a href="https://www.iredmail.org" target="_blank">
|
|
<img alt="iRedMail web site"
|
|
src="./images/logo-iredmail.png"
|
|
style="vertical-align: middle; height: 30px;"
|
|
/>
|
|
<span>iRedMail</span>
|
|
</a>
|
|
// <a href="./index.html">Document Index</a></div><h1 id="upgrade-ubuntu-from-1804-to-2004">Upgrade Ubuntu from 18.04 to 20.04</h1>
|
|
<div class="toc">
|
|
<ul>
|
|
<li><a href="#upgrade-ubuntu-from-1804-to-2004">Upgrade Ubuntu from 18.04 to 20.04</a><ul>
|
|
<li><a href="#upgrade-iredmail-to-the-latest-stable-release-first">Upgrade iRedMail to the latest stable release first</a></li>
|
|
<li><a href="#upgrade-os">Upgrade OS</a></li>
|
|
<li><a href="#upgrade-dovecot-config-files">Upgrade Dovecot config files</a></li>
|
|
<li><a href="#re-upgrade-iredapd-iredadmin-pro-mlmmjadmin-to-the-latest-release">Re-upgrade iRedAPD, iRedAdmin(-Pro), mlmmjadmin to the latest release</a></li>
|
|
<li><a href="#configurations">Configurations</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="admonition warning">
|
|
<p class="admonition-title">Warning</p>
|
|
<p>THIS IS A DRAFT DOCUMENT, DO NOT APPLY IT.</p>
|
|
</div>
|
|
<h3 id="upgrade-iredmail-to-the-latest-stable-release-first">Upgrade iRedMail to the latest stable release first</h3>
|
|
<p>Before upgrading server OS, it's better upgrade iRedMail to the latest stable
|
|
release first. You can find <a href="./iredmail.releases.html">all upgrade tutorials here</a>.</p>
|
|
<h3 id="upgrade-os">Upgrade OS</h3>
|
|
<p>After you have latest iRedMail release running, it's ok to upgrade server OS
|
|
with command <code>do-release-upgrade</code> now.</p>
|
|
<h3 id="upgrade-dovecot-config-files">Upgrade Dovecot config files</h3>
|
|
<p>Dovecot 2.3 breaks some configurations used in Dovecot 2.2, please follow our
|
|
tutorial to upgrade its config files:</p>
|
|
<ul>
|
|
<li><a href="https://docs.iredmail.org/upgrade.dovecot.2.2-2.3.html">Upgrade Dovecot from 2.2.x to 2.3.x</a></li>
|
|
</ul>
|
|
<h3 id="re-upgrade-iredapd-iredadmin-pro-mlmmjadmin-to-the-latest-release">Re-upgrade iRedAPD, iRedAdmin(-Pro), mlmmjadmin to the latest release</h3>
|
|
<p>After upgraded server OS, please re-upgrade iRedAPD, iRedAdmin(-Pro) and
|
|
mlmmjadmin even you're already running the latest versions before upgrading
|
|
OS, their upgrade scripts will help fix some issues caused by OS upgrade.</p>
|
|
<ul>
|
|
<li><a href="./upgrade.iredapd.html">Upgrade iRedAPD</a></li>
|
|
<li><a href="./migrate.or.upgrade.iredadmin.html">Upgrade iRedAdmin(-Pro)</a></li>
|
|
<li><a href="./upgrade.mlmmjadmin.html">Upgrade mlmmjadmin</a></li>
|
|
</ul>
|
|
<h2 id="configurations">Configurations</h2>
|
|
<ul>
|
|
<li><code>/etc/php/7.4/fpm/pool.d/www.conf</code></li>
|
|
</ul>
|
|
<pre><code>[inet]
|
|
user = www-data
|
|
group = www-data
|
|
|
|
listen = 127.0.0.1:9999
|
|
listen.owner = www-data
|
|
listen.group = www-data
|
|
listen.mode = 0660
|
|
|
|
; IP addresses must be separated by comma, and no space between comma and ip.
|
|
listen.allowed_clients = 127.0.0.1
|
|
|
|
pm = dynamic
|
|
pm.max_children = 200
|
|
pm.start_servers = 10
|
|
pm.min_spare_servers = 5
|
|
pm.max_spare_servers = 10
|
|
pm.max_requests = 500
|
|
|
|
pm.status_path = /php-fpm-status
|
|
ping.path = /php-fpm-ping
|
|
|
|
request_terminate_timeout = 60s
|
|
|
|
access.log = /var/log/php-fpm/access.log
|
|
slowlog = /var/log/php-fpm/slow.log
|
|
request_slowlog_timeout = 10s
|
|
</code></pre>
|
|
|
|
<ul>
|
|
<li><code>/etc/nginx/conf-available/php-fpm.conf</code>:</li>
|
|
</ul>
|
|
<pre><code>upstream php_workers {
|
|
server 127.0.0.1:9999;
|
|
}
|
|
</code></pre><div class="footer">
|
|
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">GitHub 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://github.com/iredmail/docs/archive/master.zip">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>
|
|
</div></body></html> |