Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| fr:movim [2019/10/19 13:08] – créée Deed | fr:movim [2021/12/03 18:19] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| Test VM Xen Buster | Test VM Xen Buster | ||
| - | | + | **Note, je n'ai pas réussi à faire fonctionner dans une VM derrière la VM proxy mais sur VM direct oui** |
| + | ===== Dépendance ===== | ||
| + | | ||
| + | |||
| + | |||
| + | ===== Movim Préparation ===== | ||
| + | |||
| + | cd /var/www/ | ||
| + | git clone https:// | ||
| + | cd movim/ | ||
| + | curl -sS https:// | ||
| + | mkdir log && mkdir cache && mkdir public/ | ||
| + | |||
| + | ===== Database ===== | ||
| + | <code bash> | ||
| + | sudo -u postgres createuser -P movim_user | ||
| + | sudo -u postgres createdb -O movim_user movim_db | ||
| + | |||
| + | cd movim/ | ||
| + | cp db.example.inc.php db.inc.php | ||
| + | |||
| + | nano db.inc.php | ||
| + | </ | ||
| + | ===== Droits ===== | ||
| + | chown www-data movim && chown www-data movim/ | ||
| + | |||
| + | ===== Installation ===== | ||
| + | sudo -u www-data php composer.phar install | ||
| + | sudo -u www-data php composer.phar movim: | ||
| + | |||
| + | ===== Nginx ===== | ||
| + | < | ||
| + | server { | ||
| + | listen 80; | ||
| + | server_name movim.exemple.net; | ||
| + | |||
| + | access_log | ||
| + | error_log | ||
| + | |||
| + | root / | ||
| + | index index.html index.php; | ||
| + | |||
| + | location ~ \.php$ { | ||
| + | include snippets/ | ||
| + | fastcgi_pass unix:/ | ||
| + | } | ||
| + | |||
| + | location /ws/ { | ||
| + | proxy_pass http:// | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection " | ||
| + | include proxy_params; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | ===== Daemon ===== | ||
| + | sudo -u www-data php daemon.php start --url={public url of your pod} --port={port used by the daemon} | ||
| + | |||
| + | |||
| + | nano / | ||
| + | systemctl daemon-reload | ||
| + | systemctl enable movim.service | ||
| + | <code bash> | ||
| + | [Unit] | ||
| + | Description=Movim daemon | ||
| + | After=apache2.service network.target local-fs.target | ||
| + | |||
| + | [Service] | ||
| + | User=www-data | ||
| + | Type=simple | ||
| + | Environment=PUBLIC_URL=http:// | ||
| + | Environment=WS_PORT=8080 | ||
| + | EnvironmentFile=-/ | ||
| + | ExecStart=/ | ||
| + | WorkingDirectory=/ | ||
| + | StandardOutput=syslog | ||
| + | SyslogIdentifier=movim | ||
| + | PIDFile=/ | ||
| + | Restart=on-failure | ||
| + | RestartSec=10 | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | </ | ||
| + | |||
| + | nano / | ||
| + | < | ||
| + | # Configuration parameters for movim daemon startup | ||
| + | |||
| + | # Public URL the Movim instance is reachable at | ||
| + | PUBLIC_URL=http:// | ||
| + | |||
| + | # Port to use for WebSocket connection | ||
| + | WS_PORT=8080 | ||
| + | |||
| + | </ | ||
| {{tag> | {{tag> | ||





