Outils pour utilisateurs

Outils du site


linux:mailpiler

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
linux:mailpiler [2022/12/19 13:34] rootlinux:mailpiler [2023/03/27 13:08] (Version actuelle) – [Installation de Piler] root
Ligne 28: Ligne 28:
 quit;</code> quit;</code>
  
 +===== Installation de Piler =====
  
 +<code bash>wget https://bitbucket.org/jsuto/piler/downloads/piler-1.4.1.tar.gz
 +tar xvzf piler-1.4.1.tar.gz</code>
  
 +<code bash>./configure --localstatedir=/var \
 +--with-database=mysql \
 +--enable-tcpwrappers \
 +--enable-memcached
 +make
 +make install
 +ldconfig</code>
  
 +<code bash>nano /usr/local/etc/piler/manticore.conf.dist</code>
 + et retirer network_timeout
  
  
-apt install libtre5 +<code bash>make postinstall</code> 
-wget https://bitbucket.org/jsuto/piler/downloads/piler_1.3.12-focal-eb2b22b2_amd64.deb + Please enter the webserver groupname [apache] www-data 
-wget http://mirrors.kernel.org/ubuntu/pool/universe/libz/libzip/libzip5_1.5.1-0ubuntu1_amd64.deb+ Please enter smtp relay []
  
-dpkg -i libzip5_1.5.1-0ubuntu1_amd64.deb +Faire un backup du keyfile: /usr/local/etc/piler/piler.key
-dpkg -i piler_1.3.12-focal-eb2b22b2_amd64.deb+
  
-cp /etc/piler/piler.conf.dist /etc/piler/piler.conf +<code bash>nano /usr/local/etc/piler/piler.conf</code> 
-nano /etc/piler/piler.conf+ modifier le hostid
  
-hostid=piler.yourdomain.com +touch /usr/local/etc/piler/MANTICORE
-listen_addr=0.0.0.0 +
-listen_port=2525 +
-mysqldb=piler +
-mysqlpwd=verystrongpassword +
-mysqluser=piler+
  
 +<code bash>nano /usr/local/etc/piler/manticore.conf</code>
 +define('RT', 1);
  
 +<code bash>nano /var/piler/www/config.php</code>
 + $config['SPHINX_MAIN_INDEX'] = 'piler1';
  
-mysql -u root -p +<code bash>systemctl daemon-reload 
-create database piler character set 'utf8mb4'; +systemctl enable rc.piler.service 
-grant all privileges on piler.* to piler@localhost identified by 'verystrongpassword'; +systemctl enable rc.searchd.service 
-flush privileges; +systemctl start rc.piler.service 
-quit;+systemctl start rc.searchd.service</code>
  
-mysql -u piler -p piler < /usr/share/piler/db-mysql.sql+<code bash>nano /etc/apache2/sites-enabled/000-default.conf</code> <code apache2> DocumentRoot /var/www/piler
  
-wget http://sphinxsearch.com/files/sphinx-3.4.1-efbcc65-linux-amd64.tar.gz 
-tar xvzf sphinx-3.4.1-efbcc65-linux-amd64.tar.gz 
-cp /sphinx-3.4.1/bin/* /usr/bin 
  
 +        <Directory /var/piler/www>
 +                Require all granted
 +                AllowOverride all
 +        </Directory</code>
  
-crontab -e -u piler+<code bash> 
 +a2enmod rewrite 
 +systemctl restart apache2 
 +</code>
  
-/// A VERIFIER +<code bash> 
-5,35 * * * * /usr/local/libexec/piler/indexer.delta.sh +nano /usr/local/etc/piler/config-site.php </code><file config-site.php> 
-30   2 * * * /usr/local/libexec/piler/indexer.main.sh +$config['ENABLE_IMPORT'] = 1;</file>
-40 3 * * * /usr/local/libexec/piler/purge.sh +
-*/15 * * * * /usr/bin/indexer --config /usr/local/etc/piler/sphinx.conf --quiet tag1 --rotate +
-*/15 * * * * /usr/bin/indexer --config /usr/local/etc/piler/sphinx.conf --quiet note1 --rotate +
-*/5 * * * *  /usr/bin/find /var/piler/www/tmp -type f -name i.\* -exec rm -f {} \; +
-*/5 * * * * /usr/bin/find /var/piler/error -type f|wc -l /var/piler/stat/error +
-3 * * * * /usr/local/libexec/piler/watch_sphinx_main_index.sh +
-2 0 * * * /usr/local/libexec/piler/pilerpurge.py+
  
-/var/piler/www/+<code bash>nano /usr/local/etc/piler/piler.conf</code><file - piler.conf> 
 +archive_address=archive@mail-arch.makeitsimple.be 
 +rtindex=1 
 +sphxdb=piler1 
 +sphxhost=127.0.0.1 
 +sphxport=9306 
 +</file>
  
-/etc/piler/config-site.php</code>+Config MYSQL Recommandée: 
 +<code> 
 +innodb_buffer_pool_size = 256M 
 +innodb_flush_log_at_trx_commit=1 
 +innodb_log_buffer_size=64M 
 +innodb_log_file_size=64M 
 +innodb_read_io_threads=4 
 +innodb_write_io_threads=4 
 +innodb_log_files_in_group=2 
 + 
 +innodb_file_per_table</code> 
 + 
 +Import piler: 
 +<code bash> 
 +mkdir /etc/piler 
 +ln -s /usr/local/etc/piler/piler.conf /etc/piler/piler.conf 
 +ln -s /usr/local/bin/pilerimport /usr/bin/pilerimport 
 +/usr/local/libexec/piler/import.sh 
 +</code>
  
linux/mailpiler.1671456885.txt.gz · Dernière modification : de root