====== Installation de sympa sur une redhat ======
===== Compte sympa =====
# groupadd -g 503 sympa
# useradd -g 503 -u 503 sympa
# chmod 755 /home/sympa
===== Logs =====
==== /etc/rsyslog.conf ====
Ajout dans /etc/rsyslog.conf
# Save sympa messages
local1.* /var/log/sympa.log
==== Rotation des logs ====
Sous **/etc/logrotate.d**
=== Décommenter mysql ===
/var/log/mysqld.log {
create 640 mysql mysql
notifempty
daily
rotate 3
missingok
compress
postrotate
# just if mysqld is really running
if test -x /usr/bin/mysqladmin && \
/usr/bin/mysqladmin ping &>/dev/null
then
/usr/bin/mysqladmin flush-logs
fi
endscript
}
=== Créer sympa ===
/var/log/sympa.log {
notifempty
missingok
postrotate
/bin/kill -HUP `cat /home/sympa/sympa.pid 2> /dev/null` 2> /dev/null || true
endscript
}
===== Installation packages =====
==== Abonnement au canaux redhat (subscribed channels) ====
https://rhn.redhat.com
* RHEL Server Supplementary (v. 6 64-bit x86_64)
* RHEL Server Debuginfo (v.6 for x86_64)
* RHEL Server Optional Debuginfo (v.6 x86_64)
* Red Hat Common (for RHEL 6 Server x86_64)
* RHEL Server Optional (v. 6 64-bit x86_64)
==== Nouveaux packages installés ====
* **PHP** : php -- php-mysql -- php-ldap -- php-devel -- php-devel -- php-mysql -- php-pear -- php-soap --
* **MYSQL** : mysql-devel -- mysql-server
* **APACHE** : httpd-devel -- mod_perl-devel
* Autres : **gcc** -- **gettext-devel** -- **libxml2-devel**
==== Modules Perl installés ====
[[installation:perl|Listes des modules installés]]
===== Applicatifs à installer =====
==== MHonarc ====
http://www.mhonarc.org/
Sous /usr/local/INSTALL/APPLI, télécharger le package rpm, MHonArc-2.6.19-1.noarch.rpm.
Avec un utilitaire md5 vérifier la checksum md5.
# rpm -Uvh MHonArc-2.6.19-1.noarch.rpm
Préparation... ########################################### [100%]
1:MHonArc ########################################### [100%]
==== mysql ====
Il faut que le package mysql-server soit installé
# mysql_install_db
# /etc/init.d/mysqld start
# perl -MCPAN -e shell
cpan[2]> install DBD::mysql
# mysql_secure_installation
# vi /etc/my.cnf
[mysqld]
.......
max_allowed_packet=32M
==== apache ====
[[installation:virtual#modifier_le_ficher_etc_httpd_conf_httpdconf|Modifier le fichier httpd.conf]]
==== FCGID ====
http://httpd.apache.org/download.cgi#mod_fcgid
# tar xvfz mod_fcgid-2.3.9.tar.gz
# cd mod_fcgid-2.3.5
# ./configure.apxs
# make
# make install
Pour fcgid puisse atteindre /var/log/httpd/fcgid_shm/sock
# chown apache:apache /var/log/httpd/
# chown apache:apache /tmp/fcgid
Vérifier dans /etc/sympa/sympa.conf
use_fast_cgi 1
==== Postfix et aliases ====
[[installation:messagerie| configuration de postfix et alias]]
==== shibboleth ====
[[documentation:shibboleth:shibboleth|Installation de shibboleth]]
==== Clamav ====
[[:clamav| Installation de clamav]]
===== Installation de sympa =====
Télécharger la dernière version de sympa
http://www.sympa.org/manual/installing-sympa#installing_sympa
# tar xvfz sympa-6.xx.xx.tar.gz
# ./configure
# make
# make install
# ~sympa/bin/sympa_wizard.pl
===== Installation de la base de données sympa =====
http://www.sympa.org/manual/database#creating_a_sympa_database
Si base de donnée ne s'est pas installée.
# ~sympa/bin/sympa.pl test_database_message_buffer
info Configuration file read, default log level 0
notice Sympa 6.1.22 started
Sympa is going to store messages bigger and bigger to test the limit with its database. This may be very long
maxtest: 210
barmax: 535500
Test storing and removing of a 420 kB message (step 1 out of 50)
.........[OK. Done in 0.02 sec]
.................................................
Test storing and removing of a 21000 kB message (step 50 out of 50)
.........[OK. Done in 0.78 sec]
Total size transfered: 100% [==]D 0h00m27sThe maximum message size (21000 Ko) testing was successful
# /etc/init.d/mysqld start
# mysql -u root -p grant all on sympa.* to sympa@localhost identified by 'PASSWORD';
===== Authentification =====
Voir [[configuration:authentification|auth.conf]]
===== Upgrade =====
# ./configure
# make
# /etc/init.d/sympa stop
# make install
# /home/sympa/bin/sympa_wizard.pl --check
# /home/sympa/bin/sympa.pl --upgrade
# /etc/init.d/sympa start