Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| fr:movim [2019/10/20 12:47] – 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 ===== | ===== Dépendance ===== | ||
| - | apt install composer php-fpm php-curl php-mbstring php-imagick php-gd php-pgsql php-xml git nginx-full sudo postgresql postgresql-contrib | + | apt install composer php-fpm php-curl php-mbstring php-imagick php-gd php-pgsql php-xml git nginx-full sudo postgresql postgresql-contrib |
| Ligne 15: | Ligne 16: | ||
| ===== Database ===== | ===== Database ===== | ||
| + | <code bash> | ||
| sudo -u postgres createuser -P movim_user | sudo -u postgres createuser -P movim_user | ||
| sudo -u postgres createdb -O movim_user movim_db | sudo -u postgres createdb -O movim_user movim_db | ||
| Ligne 21: | Ligne 23: | ||
| cp db.example.inc.php db.inc.php | cp db.example.inc.php db.inc.php | ||
| | | ||
| - | | + | |
| + | </ | ||
| ===== Droits ===== | ===== Droits ===== | ||
| chown www-data movim && chown www-data movim/ | chown www-data movim && chown www-data movim/ | ||
| | | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | sudo -s -u www-data | + | sudo -u www-data php composer.phar install |
| - | | + | |
| - | php composer.phar movim: | + | |
| ===== Nginx ===== | ===== 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 ===== | ===== Daemon ===== | ||
| - | sudo -s -u www-data | + | 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> | ||





