tech:notes_seafile_apache_redhat7_memcached_mysql
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_seafile_apache_redhat7_memcached_mysql [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_seafile_apache_redhat7_memcached_mysql [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes install Seafile Apache RedHat7 Memcached MySQL/ | ||
| + | |||
| + | ## Install Seafile avec MySQL / MariaDB | ||
| + | |||
| + | MySQL doit être démarré | ||
| + | |||
| + | Voir : | ||
| + | * http:// | ||
| + | * http:// | ||
| + | |||
| + | ~~~bash | ||
| + | yum install python-distribute python-imaging MySQL-python python-memcached python-ldap | ||
| + | |||
| + | #adduser --system seafile --shell / | ||
| + | adduser --group --system --disabled-password seafile | ||
| + | su - seafile -s /bin/bash | ||
| + | |||
| + | mkdir foo1 | ||
| + | cd foo1 | ||
| + | wget https:// | ||
| + | tar xvf ../ | ||
| + | |||
| + | Seafile avec MySQL Voir http:// | ||
| + | |||
| + | ./ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | La 1er fois lancer | ||
| + | |||
| + | ~~~bash | ||
| + | ./ | ||
| + | ~~~ | ||
| + | |||
| + | Puis (c'est à cette étape que compte admin sera crée) | ||
| + | `./ | ||
| + | ~~~bash | ||
| + | ./seahub.sh start | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Arrêt | ||
| + | ~~~bash | ||
| + | ./seahub.sh stop | ||
| + | ./ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Install de memcached | ||
| + | |||
| + | Voir http:// | ||
| + | |||
| + | ~~~bash | ||
| + | yum install memcached | ||
| + | systemctl enable memcached | ||
| + | systemctl start memcached | ||
| + | ~~~ | ||
| + | |||
| + | `seahub_settings.py` | ||
| + | ~~~python | ||
| + | CACHES = { | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | } | ||
| + | } | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Conf Apache | ||
| + | |||
| + | Voir http:// | ||
| + | |||
| + | `/ | ||
| + | ~~~apache | ||
| + | < | ||
| + | ServerName www.myseafile.com | ||
| + | # Use " | ||
| + | # Use " | ||
| + | DocumentRoot / | ||
| + | Alias / | ||
| + | |||
| + | RewriteEngine On | ||
| + | |||
| + | < | ||
| + | Require all granted | ||
| + | </ | ||
| + | |||
| + | # | ||
| + | # seafile fileserver | ||
| + | # | ||
| + | ProxyPass /seafhttp http:// | ||
| + | ProxyPassReverse /seafhttp http:// | ||
| + | RewriteRule ^/seafhttp - [QSA,L] | ||
| + | | ||
| + | # WebDAV | ||
| + | # We use http proxy, since SeafDAV is incompatible with FCGI proxy in Apache 2.4. | ||
| + | # | ||
| + | ProxyPass /seafdav http:// | ||
| + | ProxyPassReverse /seafdav http:// | ||
| + | |||
| + | # | ||
| + | # seahub | ||
| + | # | ||
| + | SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape | ||
| + | SetEnvIf Authorization " | ||
| + | ProxyPass / fcgi:// | ||
| + | </ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | ./ | ||
| + | ./seahub.sh start-fastcgi | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Conf Webdav (Lecteur réseau) | ||
| + | |||
| + | http:// | ||
| + | |||
| + | Voir conf Apache au dessus | ||
| + | |||
| + | `conf/ | ||
| + | ~~~ini | ||
| + | [WEBDAV] | ||
| + | enabled = true | ||
| + | port = 8080 | ||
| + | fastcgi = false | ||
| + | share_name = /seafdav | ||
| + | ~~~ | ||
| + | |||
