For those of you who didn’t know, Seafile is a open source cloud storage software. It offers file sharing and syncing for individual users and groups, it provides client side encryption and easy access from mobile devices. Also easily integrated with local services such as LDAP and WebDAV or can be deployed using advanced network services and databases like MySQL, SQLite, PostgreSQL, Memcached, Nginx or Apache Web Server.
This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Seafile on CentOS 6.
Install Seafile on CentOS 6
Step 1. First, Install required packages.
yum -y update
yum -y install python-imaging MySQL-python python-simplejson python-setuptools
Step 2. Download and install the latest version of Seafile.
Create a new user that will be used to run the seafile services:
You need to download the last relase of Seafile:
tar xfz seafile-server_4.0.6_x86-64.tar.gz
Run this script which will create the required databases and directories for the Seafile server and and answer all questions using the following configuration options, after the script verifies the existence of all Python required modules:
After Seafile server successfully installs, it will generate some useful information such as what ports needs to be open on your Firewall to allow external connection and what scripts to handle in order to start the server.
Step 3. Configure Iptables or firewall
# nano /etc/sysconfig/iptables
-A INPUT -p udp -m state --state NEW --dport 8000 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --dport 8000 -j ACCEPT
Restart iptables to apply rules using the following command:
service iptables restart
Step 4. Starting the Seafile services.
Now run the ‘seafile.sh’ and ‘seahub.sh’ scripts to start the Seafile server.
su - seafile
Step 5. Accessing Seafile.
Seafile will be available on HTTP port 8000 by default. Open your favorite browser and navigate to http://yourdomain.com:8000 or http://server-ip:8000. Enter the admin email id and password to login which you have created at the time of installation. If you are using a firewall, please open port 8000 to enable access to the control panel.
Congratulation’s! You have successfully installed Seafile. Thanks for using this tutorial for installing Seafile open source cloud storage on CentOS 6 system.