Ci-dessous, les différences entre deux révisions de la page.
Both sides previous revision Révision précédente Prochaine révision | Révision précédente Prochaine révision Both sides next revision | ||
si:movim [2019/02/12 20:17] pitchum [Pré-requis APT] |
si:movim [2019/02/12 20:24] pitchum [Movim] |
||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
Chez parinux le serveur XMPP est [[si:ejabberd]]. | Chez parinux le serveur XMPP est [[si:ejabberd]]. | ||
+ | |||
+ | ===== Maintenance ===== | ||
+ | |||
+ | ==== Logs utiles ==== | ||
+ | |||
+ | <code bash>journalctl -f -u movim</code> | ||
+ | |||
+ | <code bash>journalctl -f -u php7.3-fpm</code> | ||
+ | |||
+ | <code bash>tail -f /var/log/apache2/movim.access.log</code> | ||
+ | |||
+ | ==== Relancer Movim ==== | ||
+ | |||
+ | <code bash>systemctl restart movim</code> | ||
+ | |||
+ | |||
===== Installation ===== | ===== Installation ===== | ||
Ligne 91: | Ligne 107: | ||
systemctl status movim | systemctl status movim | ||
</code> | </code> | ||
+ | |||
+ | ==== Configurer apache et php-fpm ==== | ||
+ | |||
+ | Créer le fichier ///etc/apache2/sites-available/movim.conf// : | ||
+ | |||
+ | <file /etc/apache2/sites-available/movim.conf> | ||
+ | <VirtualHost *:80> | ||
+ | ServerName movim.parinux.org | ||
+ | DocumentRoot /var/www/movim/public_html | ||
+ | |||
+ | ProxyPreserveHost On | ||
+ | <LocationMatch .*\.php> | ||
+ | SetHandler "proxy:unix:/run/php/movim.sock|fcgi://localhost/" | ||
+ | </LocationMatch> | ||
+ | ProxyPass /ws/ ws://localhost:8080/ | ||
+ | |||
+ | LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy | ||
+ | CustomLog /var/log/apache2/movim.access.log proxy | ||
+ | ErrorLog /var/log/apache2/movim.error.log | ||
+ | </VirtualHost> | ||
+ | </file> | ||
+ | |||
+ | Activer cette config : | ||
+ | |||
+ | <code bash>a2ensite movim.conf</code> | ||
+ | |||
+ | Créer le fichier ///etc/php/7.3/fpm/pool.d/movim.conf// : | ||
+ | |||
+ | <file /etc/php/7.3/fpm/pool.d/movim.conf> | ||
+ | [movim] | ||
+ | user = movim | ||
+ | group = movim | ||
+ | listen = /run/php/movim.sock | ||
+ | listen.owner = www-data | ||
+ | listen.group = www-data | ||
+ | pm = dynamic | ||
+ | pm.max_children = 5 | ||
+ | pm.start_servers = 2 | ||
+ | pm.min_spare_servers = 1 | ||
+ | pm.max_spare_servers = 3 | ||
+ | </file> | ||
+ | |||
+ | Et relancer php-fpm : | ||
+ | |||
+ | <code bash>systemctl restart php7.3-fpm</code> | ||
+ | |||
+ | Et vérifier que le fichier ///run/php/movim.sock// est bien présent et appartient à www-data:www-data. | ||
+ | |||
+ | Relancer apache : | ||
+ | |||
+ | <code bash>systemctl restart apache2</code> |