Outils pour utilisateurs

Outils du site


tech:notes_seafile_apache_redhat7_memcached_mysql

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:notes_seafile_apache_redhat7_memcached_mysql [2025/11/11 20:56] Jean-Baptistetech:notes_seafile_apache_redhat7_memcached_mysql [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Web Partage Stockage Python}}
 +
 +# Notes install Seafile Apache RedHat7 Memcached MySQL/MariaDB
 +
 +## Install Seafile avec MySQL / MariaDB
 +
 +MySQL doit être démarré
 +
 +Voir :
 +* http://manual.seafile.com/deploy/using_mysql.html
 +* http://www.tecmint.com/install-seafile-in-linux/
 +
 +~~~bash
 +yum install python-distribute python-imaging MySQL-python python-memcached python-ldap
 +
 +#adduser --system seafile --shell /sbin/nologin -m
 +adduser --group --system --disabled-password seafile
 +su - seafile -s /bin/bash
 +
 +mkdir foo1
 +cd foo1
 +wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_5.1.2_x86-64.tar.gz
 +tar xvf ../seafile-server_5.1.2_x86-64.tar.gz
 +
 +Seafile avec MySQL Voir http://manual.seafile.com/deploy/using_mysql.html
 +
 +./setup-seafile-mysql.sh
 +~~~
 +
 +
 +La 1er fois lancer 
 +
 +~~~bash
 +./seafile.sh start
 +~~~
 +
 +Puis (c'est à cette étape que compte admin sera crée)
 +`./seahub.sh start <port>` Site Web. Port par défaut : TCP 8000
 +~~~bash
 +./seahub.sh start
 +~~~
 +
 +
 +Arrêt
 +~~~bash
 +./seahub.sh stop
 +./seafile.sh stop
 +~~~
 +
 +
 +## Install de memcached
 +
 +Voir http://manual.seafile.com/deploy/add_memcached.html
 +
 +~~~bash
 +yum install memcached
 +systemctl enable memcached
 +systemctl start memcached
 +~~~
 +
 +`seahub_settings.py`
 +~~~python
 +CACHES = {
 +    'default': {
 +        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
 +        'LOCATION': '127.0.0.1:11211',
 +    }
 +}
 +~~~
 +
 +
 +## Conf Apache
 +
 +Voir http://manual.seafile.com/deploy/deploy_with_apache.html
 +
 +`/etc/httpd/conf.d/sea-foo1.conf`
 +~~~apache
 +<VirtualHost *:80>
 +    ServerName www.myseafile.com
 +    # Use "DocumentRoot /var/www/html" for Centos/Fedora
 +    # Use "DocumentRoot /var/www" for Ubuntu/Debian
 +    DocumentRoot /var/www/html
 +    Alias /media  /home/seafile/foo1/seafile-server-latest/seahub/media
 +
 +    RewriteEngine On
 +
 +    <Location /media>
 +        Require all granted
 +    </Location>
 +
 +    #
 +    # seafile fileserver
 +    #
 +    ProxyPass /seafhttp http://127.0.0.1:8082 # retry=0
 +    ProxyPassReverse /seafhttp http://127.0.0.1:8082
 +    RewriteRule ^/seafhttp - [QSA,L]
 +    
 +    # WebDAV
 +    # We use http proxy, since SeafDAV is incompatible with FCGI proxy in Apache 2.4.
 +    #
 +    ProxyPass /seafdav http://127.0.0.1:8080/seafdav # retry=0
 +    ProxyPassReverse /seafdav http://127.0.0.1:8080/seafdav
 +
 +    #
 +    # seahub
 +    #
 +    SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
 +    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
 +    ProxyPass / fcgi://127.0.0.1:8000/ # retry=0
 +</VirtualHost>
 +~~~
 +
 +
 +~~~bash
 +./seafile.sh start
 +./seahub.sh start-fastcgi
 +~~~
 +
 +
 +## Conf Webdav (Lecteur réseau)
 +
 +http://manual.seafile.com/extension/webdav.html
 +
 +Voir conf Apache au dessus
 +
 +`conf/seafdav.conf`
 +~~~ini
 +[WEBDAV]
 +enabled = true
 +port = 8080
 +fastcgi = false
 +share_name = /seafdav
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki