Download and Setup Seafile Professional Server

Preparation" class="reference-link">Preparation

The following document is tested with Ubuntu 16.04 and CentOS 7. We recommend that use Ubuntu 16.04 or CentOS 7 for your server.

Now when we release a new version, we will always provide 2 compressed files, for example:

  • seafile-pro-server_6.3.1_x86-64_Ubuntu.tar.gz, is compiled in Ubuntu 16.04 enviroment.

  • seafile-pro-server_6.3.1_x86-64_CentOS.tar.gz, is compiled in CentOS 7 enviroment.

If you are using Ubuntu 16.04/Debian server, please use seafile-pro-server_6.3.1_x86-64_Ubuntu.tar.gz, for CentOS 7 please use seafile-pro-server_6.3.1_x86-64_CentOS.tar.gz.

Install thirdpart Requirements

For Ubuntu 16.04:

  1. sudo apt-get install openjdk-8-jre poppler-utils libpython2.7 python-pip \
  2. mysql-server python-setuptools python-imaging python-mysqldb python-memcache python-ldap \
  3. python-urllib3
  4. sudo pip install boto requests
  5. sudo ln -sf /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java /usr/bin/

For CentOS 7:

  1. wget https://bootstrap.pypa.io/get-pip.py
  2. sudo python get-pip.py
  3. sudo yum install java-1.7.0-openjdk poppler-utils python-setuptools \
  4. python-imaging MySQL-python mariadb-server python-memcached python-ldap \
  5. python-urllib3
  6. sudo pip install boto requests
  7. sudo /etc/init.d/mysqld start

For more information please see bellow.

Minimum System Requirements

  • A Linux server with 2GB RAM

Install Java Runtime Environment (JRE)

On Debian:

  1. sudo apt-get install openjdk-7-jre

On Ubuntu 16.04:

  1. sudo apt-get install openjdk-8-jre
  2. sudo ln -sf /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java /usr/bin/

On CentOS/Red Hat:

  1. sudo yum install java-1.7.0-openjdk

Install poppler-utils

The package poppler-utils is required for full text search of pdf files.

On Ubuntu/Debian:

  1. sudo apt-get install poppler-utils

On CentOS/Red Hat:

  1. sudo yum install poppler-utils

Install Python libraries

First make sure your have installed Python 2.7

  1. sudo easy_install pip
  2. sudo pip install boto

If you receive an error about “Wheel installs require setuptools >= …”, run this between the pip and boto lines above

  1. sudo pip install setuptools --no-use-wheel --upgrade

Install all libraries required by the Community Edition

See Download and Setup Seafile Server With MySQL.

Download and Setup Seafile Professional Server" class="reference-link">Download and Setup Seafile Professional Server

Get the license

Put the license you got under the top level diretory. In our wiki, we use the diretory /data/haiwen/ as the top level directory. If you’re using the free Pro Edition with three users you don’t need a license file.

Download & uncompress Seafile Professional Server" class="reference-link">Download & uncompress Seafile Professional Server

  1. tar xf seafile-pro-server_1.8.0_x86-64.tar.gz

Now you have:

  1. haiwen
  2. ├── seafile-license.txt
  3. └── seafile-pro-server-1.8.0/

You should notice the difference between the names of the Community Server and Professional Server. Take the 1.8.0 64bit version as an example:

  • Seafile Community Server tarball is seafile-server_1.8.0_x86-86.tar.gz; After uncompressing, the folder is seafile-server-1.8.0
  • Seafile Professional Server tarball is seafile-pro-server_1.8.0_x86-86.tar.gz; After uncompressing, the folder is seafile-pro-server-1.8.0

Setup

The setup process of Seafile Professional Server is the same as the Seafile Community Server. See Download and Setup Seafile Server With MySQL.

If you have any problem with setting up the service, please check Common problems in setting up Seafile server.

After you have succesfully setup Seafile Professional Server, you have a directory layout like this:

  1. #tree haiwen -L 2
  2. haiwen
  3. ├── seafile-license.txt # license file
  4. ├── ccnet # configuration files
  5. ├── mykey.peer
  6. ├── PeerMgr
  7. └── seafile.ini
  8. ├── conf
  9. └── ccnet.conf
  10. └── seafile.conf
  11. └── seahub_settings.py
  12. └── seafevents.conf
  13. ├── pro-data # data specific for professional version
  14. ├── seafile-data
  15. ├── seafile-pro-server-1.8.0
  16. ├── reset-admin.sh
  17. ├── runtime
  18. ├── seafile
  19. ├── seafile.sh
  20. ├── seahub
  21. ├── seahub-extra
  22. ├── seahub.sh
  23. ├── setup-seafile.sh
  24. ├── setup-seafile-mysql.py
  25. ├── setup-seafile-mysql.sh
  26. └── upgrade
  27. ├── seahub-data
  28. └── avatars # for user avatars
  29. ├── seahub.db

Performance turning

If you have more than 50 Seafile users, we highly recommend to add memcached. This is going to speedup Seahub (the web front end) significantly.

Done" class="reference-link">Done

At this point, the basic setup of Seafile Professional Server is done.

You may want to read more about Seafile Professional Server: