Update upgrade.ubuntu.18.04-20.04.html.

Fix incorrect python script.
This commit is contained in:
Zhang Huangbin 2021-07-17 18:14:44 +08:00
parent 34b2172e8c
commit e41e00b9c5
4 changed files with 22 additions and 6 deletions

View File

@ -147,7 +147,7 @@ We need to add new ldap attribute/value pairs for existing mail users.
```
cd /root/
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/update-ldap-dovecot-2.3.py
https://raw.githubusercontent.com/iredmail/iRedMail/master/update/ldap/update-ldap-dovecot-2.3.py
```
* Open downloaded file `update-ldap-dovecot-2.3.py`, set LDAP server
@ -167,9 +167,9 @@ You can find required LDAP credential in iRedAdmin config file or
`cn=Manager,dc=xx,dc=xx` or `cn=vmailadmin,dc=xx,dc=xx` as bind dn is ok, both
of them have read-write privilege to update mail accounts.
* Execute this script, it will add required data:
* Execute this script with Python-3, it will add required data:
```
# python update-ldap-dovecot-2.3.py
python3 update-ldap-dovecot-2.3.py
```

View File

@ -66,3 +66,11 @@ access.log = /var/log/php-fpm/access.log
slowlog = /var/log/php-fpm/slow.log
request_slowlog_timeout = 10s
```
* `/etc/nginx/conf-available/php-fpm.conf`:
```
upstream php_workers {
server 127.0.0.1:9999;
}
```

View File

@ -166,7 +166,7 @@ CREATE INDEX idx_mailbox_enablesievetls ON mailbox (enablesievetls);
<li>Download script used to update existing mail users:</li>
</ul>
<pre><code>cd /root/
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/update-ldap-dovecot-2.3.py
https://raw.githubusercontent.com/iredmail/iRedMail/master/update/ldap/update-ldap-dovecot-2.3.py
</code></pre>
<ul>
@ -186,9 +186,9 @@ bind_pw = 'password'
<code>cn=Manager,dc=xx,dc=xx</code> or <code>cn=vmailadmin,dc=xx,dc=xx</code> as bind dn is ok, both
of them have read-write privilege to update mail accounts.</p>
<ul>
<li>Execute this script, it will add required data:</li>
<li>Execute this script with Python-3, it will add required data:</li>
</ul>
<pre><code># python update-ldap-dovecot-2.3.py
<pre><code>python3 update-ldap-dovecot-2.3.py
</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>

View File

@ -84,6 +84,14 @@ 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>