<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Seafile%3A_download_%26_instalasi</id>
	<title>Seafile: download &amp; instalasi - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Seafile%3A_download_%26_instalasi"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Seafile:_download_%26_instalasi&amp;action=history"/>
	<updated>2026-04-17T13:10:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Seafile:_download_%26_instalasi&amp;diff=39447&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Download and setup seafile server  This manual explains how to setup and run Seafile server from a pre-built package. Table of Contents          Download         Deploying and Directory La...</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Seafile:_download_%26_instalasi&amp;diff=39447&amp;oldid=prev"/>
		<updated>2014-01-21T22:58:49Z</updated>

		<summary type="html">&lt;p&gt;New page: Download and setup seafile server  This manual explains how to setup and run Seafile server from a pre-built package. Table of Contents          Download         Deploying and Directory La...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Download and setup seafile server&lt;br /&gt;
&lt;br /&gt;
This manual explains how to setup and run Seafile server from a pre-built package.&lt;br /&gt;
Table of Contents&lt;br /&gt;
&lt;br /&gt;
        Download&lt;br /&gt;
        Deploying and Directory Layout&lt;br /&gt;
        Setting Up Seafile Server&lt;br /&gt;
            Prerequisites&lt;br /&gt;
            Setup&lt;br /&gt;
        Running Seafile Server&lt;br /&gt;
            Before Running&lt;br /&gt;
            Starting Seafile Server and Seahub Website&lt;br /&gt;
                Run Seahub on another port&lt;br /&gt;
        Stopping and Restarting Seafile and Seahub&lt;br /&gt;
                Stopping&lt;br /&gt;
                Restarting&lt;br /&gt;
                When the Scripts Fail&lt;br /&gt;
        That's it!&lt;br /&gt;
&lt;br /&gt;
Download&lt;br /&gt;
&lt;br /&gt;
Download the latest server package.&lt;br /&gt;
&lt;br /&gt;
#check if your system is x86 (32bit) or x86_64 (64 bit)&lt;br /&gt;
uname -m      &lt;br /&gt;
&lt;br /&gt;
#download for 32bit &lt;br /&gt;
wget http://seafile.googlecode.com/files/seafile-server_{version}_i386.tar.gz&lt;br /&gt;
#or for 64bit&lt;br /&gt;
wget http://seafile.googlecode.com/files/seafile-server_{version}_x86-64.tar.gz  &lt;br /&gt;
&lt;br /&gt;
Deploying and Directory Layout&lt;br /&gt;
&lt;br /&gt;
NOTE: If you place the Seafile data directory in external storage, such as NFS, CIFS mount, you should not use SQLite as the database, but use MySQL instead. Please follow this manual to setup Seafile server.&lt;br /&gt;
&lt;br /&gt;
Supposed your organization's name is &amp;quot;haiwen&amp;quot;, and you've downloaded seafile-server_1.4.0_* into your home directory. We suggest you to layout your deployment as follows :&lt;br /&gt;
&lt;br /&gt;
mkdir haiwen  &lt;br /&gt;
mv seafile-server_* haiwen&lt;br /&gt;
cd haiwen&lt;br /&gt;
# after moving seafile-server_* to this directory&lt;br /&gt;
tar -xzf seafile-server_*&lt;br /&gt;
mkdir installed&lt;br /&gt;
mv seafile-server_* installed&lt;br /&gt;
&lt;br /&gt;
Now you should have the following directory layout&lt;br /&gt;
&lt;br /&gt;
#tree haiwen -L 2&lt;br /&gt;
haiwen&lt;br /&gt;
├── installed&lt;br /&gt;
│   └── seafile-server_1.4.0_x86-64.tar.gz&lt;br /&gt;
└── seafile-server-1.4.0&lt;br /&gt;
    ├── reset-admin.sh&lt;br /&gt;
    ├── runtime&lt;br /&gt;
    ├── seafile&lt;br /&gt;
    ├── seafile.sh&lt;br /&gt;
    ├── seahub&lt;br /&gt;
    ├── seahub.sh&lt;br /&gt;
    ├── setup-seafile.sh&lt;br /&gt;
    └── upgrade&lt;br /&gt;
&lt;br /&gt;
The benefit of this layout is that&lt;br /&gt;
&lt;br /&gt;
    We can place all the config files for Seafile server inside &amp;quot;haiwen&amp;quot; directory, making it easier to manage.&lt;br /&gt;
    When you upgrade to a new version of Seafile, you can simply untar the latest package into &amp;quot;haiwen&amp;quot; directory. In this way you can reuse the existing config files in &amp;quot;haiwen&amp;quot; directory and don't need to configure again.&lt;br /&gt;
&lt;br /&gt;
Setting Up Seafile Server&lt;br /&gt;
Prerequisites&lt;br /&gt;
&lt;br /&gt;
The Seafile server package requires the following packages have been installed in your system&lt;br /&gt;
&lt;br /&gt;
    python 2.6 or 2.7&lt;br /&gt;
    python-setuptools&lt;br /&gt;
    python-simplejson&lt;br /&gt;
    python-imaging&lt;br /&gt;
    sqlite3&lt;br /&gt;
&lt;br /&gt;
#on Debian&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get install python2.7 python-setuptools python-simplejson python-imaging sqlite3&lt;br /&gt;
&lt;br /&gt;
Setup&lt;br /&gt;
&lt;br /&gt;
cd seafile-server-*&lt;br /&gt;
./setup-seafile.sh  #run the setup script &amp;amp; answer prompted questions&lt;br /&gt;
&lt;br /&gt;
If some of the prerequisites are not installed, the seafile initialization script will ask you to install them.&lt;br /&gt;
&lt;br /&gt;
The script will guide you through the settings of various configuration options.&lt;br /&gt;
Seafile configuration options Option 	Description 	Note&lt;br /&gt;
server name 	Name of this seafile server 	3-15 characters, only English letters, digits and underscore ('_') are allowed&lt;br /&gt;
server ip or domain 	The IP address or domain name used by this server 	Seafile client program will access the server with this address&lt;br /&gt;
ccnet server port 	The TCP port used by ccnet, the underlying networking service of Seafile 	Default is 10001. If it's been used by other service, you can set it to another port.&lt;br /&gt;
seafile data dir 	Seafile stores your data in this directory. By default it'll be placed in the current directory. 	The size of this directory will increase as you put more and more data into Seafile. Please select a disk partition with enough free space.&lt;br /&gt;
seafile server port 	The TCP port used by Seafile to transfer data 	Default is 12001. If it's been used by other service, you can set it to another port.&lt;br /&gt;
httpsever port 	The TCP port used by Seafile httpserver 	Default is 8082. If it's been used by other service, you can set it to another port.&lt;br /&gt;
seahub admin email 	Admin account for seafile website 	&lt;br /&gt;
seahub admin password 	Password for website admin 	&lt;br /&gt;
&lt;br /&gt;
If the setup is successful, you'll see the following output&lt;br /&gt;
&lt;br /&gt;
Now you should have the following directory layout :&lt;br /&gt;
&lt;br /&gt;
#tree haiwen -L 2&lt;br /&gt;
haiwen&lt;br /&gt;
├── ccnet               # configuration files&lt;br /&gt;
│   ├── ccnet.conf&lt;br /&gt;
│   ├── mykey.peer&lt;br /&gt;
│   ├── PeerMgr&lt;br /&gt;
│   └── seafile.ini&lt;br /&gt;
├── installed&lt;br /&gt;
│   └── seafile-server_1.4.0_x86-64.tar.gz&lt;br /&gt;
├── seafile-data        &lt;br /&gt;
│   └── seafile.conf&lt;br /&gt;
├── seafile-server-1.4.0  # active version &lt;br /&gt;
│   ├── reset-admin.sh&lt;br /&gt;
│   ├── runtime&lt;br /&gt;
│   ├── seafile&lt;br /&gt;
│   ├── seafile.sh&lt;br /&gt;
│   ├── seahub&lt;br /&gt;
│   ├── seahub.sh&lt;br /&gt;
│   ├── setup-seafile.sh&lt;br /&gt;
│   └── upgrade&lt;br /&gt;
├── seahub-data&lt;br /&gt;
│   └── avatars&lt;br /&gt;
├── seahub.db&lt;br /&gt;
├── seahub_settings.py   # optional config file&lt;br /&gt;
└── seahub_settings.pyc&lt;br /&gt;
&lt;br /&gt;
Running Seafile Server&lt;br /&gt;
Before Running&lt;br /&gt;
&lt;br /&gt;
Since Seafile uses persistent connection between client and server, if you have a large number of clients , you should increase Linux file descriptors by ulimit before start seafile, like:&lt;br /&gt;
&lt;br /&gt;
ulimit -n 30000&lt;br /&gt;
&lt;br /&gt;
Starting Seafile Server and Seahub Website&lt;br /&gt;
&lt;br /&gt;
Under seafile-server-1.4.0 directory, run the following commands&lt;br /&gt;
&lt;br /&gt;
    Start seafile:&lt;br /&gt;
&lt;br /&gt;
./seafile.sh start # Start seafile service&lt;br /&gt;
&lt;br /&gt;
    Start seahub&lt;br /&gt;
&lt;br /&gt;
./seahub.sh start &amp;lt;port&amp;gt;  # Start seahub website, port defaults to 8000&lt;br /&gt;
&lt;br /&gt;
After starting the services, you may open a web browser and types&lt;br /&gt;
&lt;br /&gt;
http://192.168.1.111:8000/&lt;br /&gt;
&lt;br /&gt;
you will be redirected to the Login page. Enter the username and password you were provided during the Seafile setup. You will then be returned to the `Myhome` page where you can create libraries.&lt;br /&gt;
&lt;br /&gt;
Congratulations! Now you have successfully setup your private Seafile server.&lt;br /&gt;
Run Seahub on another port&lt;br /&gt;
&lt;br /&gt;
If you want to run seahub in a port other than the default 8000, say 8001, you must:&lt;br /&gt;
&lt;br /&gt;
    stop the seafile server &lt;br /&gt;
&lt;br /&gt;
./seahub.sh stop&lt;br /&gt;
./seafile.sh stop&lt;br /&gt;
&lt;br /&gt;
    modify the value of SERVICE_URL in the file haiwen/ccnet/ccnet.conf, like this: (assume your ip or domain is 192.168.1.100)&lt;br /&gt;
&lt;br /&gt;
SERVICE_URL = http://192.168.1.100:8001&lt;br /&gt;
&lt;br /&gt;
    restart seafile server&lt;br /&gt;
&lt;br /&gt;
./seafile.sh start&lt;br /&gt;
./seahub.sh start 8001&lt;br /&gt;
&lt;br /&gt;
see Seafile server configuration options for more details about ccnet.conf.&lt;br /&gt;
Stopping and Restarting Seafile and Seahub&lt;br /&gt;
Stopping&lt;br /&gt;
&lt;br /&gt;
./seahub.sh stop # stop seahub website&lt;br /&gt;
./seafile.sh stop # stop seafile processes&lt;br /&gt;
&lt;br /&gt;
Restarting&lt;br /&gt;
&lt;br /&gt;
./seafile.sh restart&lt;br /&gt;
./seahub.sh restart&lt;br /&gt;
&lt;br /&gt;
When the Scripts Fail&lt;br /&gt;
&lt;br /&gt;
Most of the time, seafile.sh and seahub.sh work fine. But if they fail, you may&lt;br /&gt;
&lt;br /&gt;
    Use pgrep command to check if seafile/seahub processes are still running&lt;br /&gt;
&lt;br /&gt;
pgrep -f seafile-controller # check seafile processes&lt;br /&gt;
pgrep -f &amp;quot;manage.py run_gunicorn&amp;quot; # check seahub process&lt;br /&gt;
&lt;br /&gt;
    Use pkill to kill the processes&lt;br /&gt;
&lt;br /&gt;
pkill -f seafile-controller&lt;br /&gt;
pkill -f &amp;quot;manage.py run_gunicorn&amp;quot;&lt;br /&gt;
&lt;br /&gt;
That's it!&lt;br /&gt;
&lt;br /&gt;
That's it! Now you may want read more about seafile.&lt;br /&gt;
&lt;br /&gt;
    How to manage the server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://github.com/haiwen/seafile/wiki/Download-and-setup-seafile-server&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>