The following document is tested in Ubuntu 14.04, so we recommend that you use Ubuntu 14.04 as your server.
NOTE:
If you are using Ubuntu 14.04, you can use the following command to install all the dependency that Seafile requires at one time.
sudo apt-get install openjdk-7-jre poppler-utils libreoffice \ libreoffice-script-provider-python libpython2.7 python-pip mysql-server \ python-setuptools python-imaging python-mysqldb sudo pip install boto
CentOS 6.6:
wget https://bootstrap.pypa.io/get-pip.py sudo python get-pip.py sudo yum install java-1.7.0-openjdk poppler-utils libreoffice libreoffice-headless libreoffice-pyuno python-dev python-setuptools python-imaging MySQL-python mysql-server.x86_64 sudo pip install boto sudo /etc/init.d/mysqld start
For more information please see bellow.
On Ubuntu/Debian:
sudo apt-get install openjdk-7-jre
On CentOS/Red Hat:
sudo yum install java-1.7.0-openjdk
Note: Since version 3.1.12, java 1.7 is required, please check your java version by java -version
. If not, please change the default java version.
We need poppler-utils for full text search of pdf files.
On Ubuntu/Debian:
sudo apt-get install poppler-utils
On CentOS/Red Hat:
sudo yum install poppler-utils
Libreoffice 4.1+ and Python-uno library are needed to enable office files online preview. If you don't install them, the office documents online preview will be disabled.
On Ubuntu/Debian:
sudo apt-get install libreoffice libreoffice-script-provider-python
For older version of Ubuntu:
sudo apt-get install libreoffice python-uno
On Centos/RHEL:
sudo yum install libreoffice libreoffice-headless libreoffice-pyuno
For other Linux distro: Installation of LibreOffice on Linux
Also, you may need to install fonts for your language, especially for Asians, otherwise the office/pdf document may not display correctly.
For example, Chinese users may wish to install the WenQuanYi series of truetype fonts:
# For ubuntu/debian
sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
First make sure your have installed python 2.7
sudo easy_install pip
sudo pip install boto
If you receive an error about "Wheel installs require setuptools >= ...", run this between the pip and boto lines above
sudo pip install setuptools --no-use-wheel --upgrade
sudo apt-get install libpython2.7
See Download and Setup Seafile Server With MySQL.
Put the license you get under the top level diretory. In our wiki, we use the diretory /data/haiwen/
as the top level directory.
tar xf seafile-pro-server_1.8.0_x86-64.tar.gz
Now you have:
haiwen
├── seafile-license.txt
└── 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-server_1.8.0_x86-86.tar.gz
; After uncompressing, the folder is seafile-server-1.7.0
seafile-pro-server_1.8.0_x86-86.tar.gz
; After uncompressing, the folder is seafile-pro-server-1.7.0
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 in setting up the service, please check Common problems in setting up Seafile server.
After you have succesfully setup Seafile Professional Server, you would have a directory layout like this:
#tree haiwen -L 2
haiwen
├── seafile-license.txt # license file
├── ccnet # configuration files
│ ├── ccnet.conf
│ ├── mykey.peer
│ ├── PeerMgr
│ └── seafile.ini
├── pro-data # data specific for professional version
│ └── seafevents.conf
├── seafile-data
│ └── seafile.conf
├── seafile-pro-server-1.8.0
│ ├── reset-admin.sh
│ ├── runtime
│ ├── seafile
│ ├── seafile.sh
│ ├── seahub
│ ├── seahub-extra
│ ├── seahub.sh
│ ├── setup-seafile.sh
│ ├── setup-seafile-mysql.py
│ ├── setup-seafile-mysql.sh
│ └── upgrade
├── seahub-data
│ └── avatars # for user avatars
├── seahub.db
├── seahub_settings.py # seahub config file
At this point, the basic setup of Seafile Professional Server is done.
You may want to read more about Seafile Professional Server: