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/

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

./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

./seahub.sh start

Arrêt

./seahub.sh stop ./seafile.sh stop

Install de memcached

Voir http://manual.seafile.com/deploy/add_memcached.html

yum install memcached systemctl enable memcached systemctl start memcached

seahub_settings.py

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

<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>
./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

[WEBDAV] enabled = true port = 8080 fastcgi = false share_name = /seafdav