Logo Khaganat

Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
fr:movim [2019/10/19 15:08] – créée Deedfr:movim [2021/12/03 19:19] (Version actuelle) – modification externe 127.0.0.1
Ligne 2: Ligne 2:
 Test VM Xen Buster Test VM Xen Buster
  
-  apt install composer php-fpm php-curl php-mbstring php-imagick php-gd php-pgsql php-xml git nginx-full+**Note, je n'ai pas réussi à faire fonctionner dans une VM derrière la VM proxy mais sur VM direct oui** 
 +===== 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 curl 
 + 
 + 
 +===== Movim Préparation ===== 
 + 
 +  cd /var/www/ 
 +  git clone https://github.com/movim/movim.git 
 +  cd movim/ 
 +  curl -sS https://getcomposer.org/installer | php 
 +  mkdir log && mkdir cache && mkdir public/cache 
 + 
 +===== Database ===== 
 +<code bash> 
 +  sudo -u postgres createuser -P movim_user 
 +  sudo -u postgres createdb -O movim_user movim_db 
 +     
 +  cd movim/config/ 
 +  cp db.example.inc.php db.inc.php  
 +   
 +  nano db.inc.php  
 +</code> 
 +===== Droits =====   
 +  chown www-data movim && chown www-data movim/public && chmod u+rwx movim 
 +   
 +===== Installation ===== 
 +  sudo -u www-data php composer.phar install 
 +  sudo -u www-data php composer.phar movim:migrate 
 + 
 +===== Nginx ===== 
 +<code> 
 +server { 
 +    listen 80; 
 +    server_name movim.exemple.net; 
 + 
 +    access_log      /var/log/nginx/movim_access.log; 
 +    error_log       /var/log/nginx/movim_error.log info; 
 + 
 +    root /var/www/movim/public/; 
 +    index index.html index.php; 
 + 
 +    location ~ \.php$ { 
 +        include snippets/fastcgi-php.conf; 
 +        fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; 
 +    } 
 + 
 +    location /ws/ { 
 +        proxy_pass http://localhost:8080/; 
 +        proxy_http_version 1.1; 
 +        proxy_set_header Upgrade $http_upgrade; 
 +        proxy_set_header Connection "Upgrade"; 
 +        include proxy_params; 
 +    } 
 +
 +</code> 
 +===== Daemon ===== 
 +  sudo -u www-data php daemon.php start --url={public url of your pod} --port={port used by the daemon}  
 + 
 + 
 +  nano /etc/systemd/system/movim.service 
 +  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://movim.kagouille.fr/ 
 +Environment=WS_PORT=8080 
 +EnvironmentFile=-/etc/default/movim 
 +ExecStart=/usr/bin/php daemon.php start --url=${PUBLIC_URL} --port=${WS_PORT} 
 +WorkingDirectory=/var/www/movim/ 
 +StandardOutput=syslog 
 +SyslogIdentifier=movim 
 +PIDFile=/run/movim.pid 
 +Restart=on-failure 
 +RestartSec=10 
 + 
 +[Install] 
 +WantedBy=multi-user.target 
 + 
 +</code> 
 + 
 +  nano /etc/default/movim 
 +<code> 
 +# Configuration parameters for movim daemon startup 
 + 
 +# Public URL the Movim instance is reachable at 
 +PUBLIC_URL=http://movim.kagouille.fr/ 
 + 
 +# Port to use for WebSocket connection 
 +WS_PORT=8080 
 + 
 +</code>
  
  
 {{tag>brouillon xmpp sociaux}} {{tag>brouillon xmpp sociaux}}
CC Attribution-Share Alike 4.0 International Driven by DokuWiki
fr/movim.1571490484.txt.gz · Dernière modification : 2021/12/03 19:18 (modification externe)

Licences Mentions légales Accueil du site Contact