Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
current:installation [2017/10/29 09:57] sj |
current:installation [2021/03/09 19:28] sj |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Installation ==== | ==== Installation ==== | ||
- | |||
- | Notes for Debian/ | ||
Debian and Ubuntu users please see the [[: | Debian and Ubuntu users please see the [[: | ||
Line 10: | Line 8: | ||
* openssl | * openssl | ||
- | * MariaDB, | + | * MySQL 5.5+, MariaDB |
- | * [[http:// | + | * [[http:// |
- | * php 5.3+ (with the following modules: LDAP, GD, Memcache, PDO, MySQL, CURL) | + | * php 7.x (with the following modules: LDAP, GD, Memcache, PDO, MySQL, CURL, Zip) |
* a rewriting rule capable webserver, eg. apache, lighttpd, nginx, ... (in case of apache be sure to enable the rewrite module) | * a rewriting rule capable webserver, eg. apache, lighttpd, nginx, ... (in case of apache be sure to enable the rewrite module) | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* mpstat utility (eg. the ' | * mpstat utility (eg. the ' | ||
- | * python | + | * python3 |
**Highly recommended: | **Highly recommended: | ||
- | * tcp_wrappers | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 55: | Line 52: | ||
Note that piler stores all emails and attachments as separate files. You may tweak inode ratio, if necessary. | Note that piler stores all emails and attachments as separate files. You may tweak inode ratio, if necessary. | ||
+ | |||
+ | See [[https:// | ||
+ | |||
**Create a dedicated and non-privileged user to run piler** | **Create a dedicated and non-privileged user to run piler** | ||
Line 60: | Line 60: | ||
< | < | ||
groupadd piler | groupadd piler | ||
- | useradd -g piler -m -s /bin/sh -d /var/piler piler | + | useradd -g piler -m -s /bin/bash -d /var/piler piler |
usermod -L piler | usermod -L piler | ||
chmod 755 /var/piler | chmod 755 /var/piler | ||
Line 70: | Line 70: | ||
tar zxvf piler-x.y.z.tar.gz | tar zxvf piler-x.y.z.tar.gz | ||
cd piler-x.y.z | cd piler-x.y.z | ||
- | ./ | + | ./configure --localstatedir=/ |
- | | + | |
- | | + | |
- | --enable-tcpwrappers | + | |
make | make | ||
su -c 'make install' | su -c 'make install' | ||
Line 85: | Line 81: | ||
< | < | ||
- | sed ' | + | sed -i ' |
</ | </ | ||
**Compiling on FreeBSD** | **Compiling on FreeBSD** | ||
- | FreeBSD is supported from build 881 (since 2014.07.21), | + | FreeBSD is supported from build 881 (since 2014.07.21). |
+ | |||
+ | Update: from 1.3.2 (since 2017.10.29) piler uses the epoll event polling method, which is Linux-only. For FreeBSD you must download (or checkout) | ||
You also need the following packages from either the ports collection, or install them from whatever source: | You also need the following packages from either the ports collection, or install them from whatever source: | ||
Line 106: | Line 104: | ||
LDFLAGS=" | LDFLAGS=" | ||
--localstatedir=/ | --localstatedir=/ | ||
- | --with-database=mysql | + | --with-database=mysql |
- | --enable-tcpwrappers | + | |
gmake clean all | gmake clean all | ||
</ | </ | ||
Line 118: | Line 115: | ||
Important! The ' | Important! The ' | ||
+ | |||
+ | If you have sphinx 2.2.x or less, then be sure to fix etc/ | ||
< | < | ||
Line 155: | Line 154: | ||
/ | / | ||
</ | </ | ||
+ | |||
+ | Notes on the X-Envelope-To: | ||
+ | |||
+ | When set (and the default is as seen below) it will hide such header lines from regular users on the GUI, only auditors are allowed to see such header line. | ||
+ | |||
+ | < | ||
+ | $config[' | ||
+ | </ | ||
+ | |||
+ | |||
If you have Exim, then add the following at the beginning of the routers-section: | If you have Exim, then add the following at the beginning of the routers-section: | ||
Line 173: | Line 182: | ||
</ | </ | ||
- | **IMPORTANT! Make sure you never lose/ | + | **IMPORTANT! Make sure you never lose/ |