Line 53: |
Line 53: |
| NB: you will need new version of sqlite 3.7.17-9.el6.sme from smecontribs.; need to add this in Requires of the seafile-server rpms<syntaxhighlight lang="bash"> | | NB: you will need new version of sqlite 3.7.17-9.el6.sme from smecontribs.; need to add this in Requires of the seafile-server rpms<syntaxhighlight lang="bash"> |
| yum update sqlite --enablerepo=smedev,smecontribs | | yum update sqlite --enablerepo=smedev,smecontribs |
| + | </syntaxhighlight>also will need to update spec file of seafile server : |
| + | |
| + | Requires: /usr/bin/ccnet-init<syntaxhighlight lang="bash"> |
| + | yum install ccnet --enablerepo=smecontribs,smedev |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
Line 88: |
Line 92: |
| scl enable python27 "pip install openpyxl" | | scl enable python27 "pip install openpyxl" |
| scl enable python27 "pip install pytz" | | scl enable python27 "pip install pytz" |
− | scl enable python27 "pip install django-compressor django-post_office gunicorn flup" | + | scl enable python27 "pip install django-post_office " |
| + | scl enable python27 "pip install django-picklefield " |
| + | scl enable python27 "pip install gunicorn " |
| + | scl enable python27 "pip install flup " |
| + | scl enable python27 "pip install jsonfield " |
| + | scl enable python27 "pip install Pillow " |
| scl enable python27 "pip install python-dateutil" | | scl enable python27 "pip install python-dateutil" |
| </syntaxhighlight>NB, rpm installation of python-six is too old for dateutile : <syntaxhighlight> | | </syntaxhighlight>NB, rpm installation of python-six is too old for dateutile : <syntaxhighlight> |
Line 100: |
Line 109: |
| Uninstalling six-1.3.0: | | Uninstalling six-1.3.0: |
| | | |
− | </syntaxhighlight> | + | </syntaxhighlight> |
| + | the following needs gcc |
| + | |
| + | <syntaxhighlight lang="bash"> |
| + | yum install gcc intltool libtool glib2-devel |
| + | yum install python27-python-devel --enablerepo=centos-sclo-rh |
| + | scl enable python27 "pip install django-compressor " |
| + | yum remove gcc cpp cloog-ppl mpfr ppl autoconf automake gettext-devel gettext-libs libart_lgpl libgcj glib2-devel |
| + | yum remove python27-python-devel scl-utils-build |
| + | </syntaxhighlight>----------------------------------------------------------------- |
| + | |
| + | <nowiki>-----------------------------------------------------------------</nowiki> |
| + | |
| + | Your seafile server configuration has been finished successfully. |
| + | |
| + | <nowiki>-----------------------------------------------------------------</nowiki> |
| + | |
| + | <nowiki>-----------------------------------------------------------------</nowiki> |
| + | |
| + | To start/stop seafile server: |
| + | |
| + | $ cd /opt/seafile |
| + | |
| + | $ seafile-admin { start | stop } |
| + | |
| + | If you have any problem, refer to |
| + | |
| + | Seafile server manual: <nowiki>https://github.com/haiwen/seafile/wiki</nowiki> |
| + | |
| + | Seafile discussion group: <nowiki>https://groups.google.com/forum/?fromgroups#!forum/seafile</nowiki> |
| + | |
| + | Seafile website: <nowiki>http://www.seafile.com</nowiki> |
| + | |
| + | for more information. |
| | | |
| ==== startup scripts and sme related db ==== | | ==== startup scripts and sme related db ==== |
| | | |
| ==== configuration ==== | | ==== configuration ==== |
| + | |
| + | ==== Start server ==== |
| + | <syntaxhighlight lang="bash"> |
| + | cd /opt/rh/python27/root/usr/lib/python2.7/site-packages/ |
| + | ln /usr/lib/python2.6/site-packages/seaserv seaserv -s |
| + | ln /usr/lib/python2.6/site-packages/seafile seafile -s |
| + | ln /usr/lib/python2.6/site-packages/ccnet ccnet -s |
| + | cd /opt/rh/python27/root/usr/lib64/python2.7/site-packages/ |
| + | ln /usr/lib64/python2.6/site-packages/pysearpc pysearpc -s |
| + | |
| + | scl enable python27 bash |
| + | mkdir /opt/seafile/; |
| + | cd /opt/seafile/; |
| + | mkdir seafile-server/ |
| + | mkdir seafile-server/runtime |
| + | cd seafile-server/ |
| + | ln /usr/share/seafile-seahub seahub -s |
| + | cd /opt/seafile/ |
| + | |
| + | export PYTHONPATH=/usr/share/seafile-seahub/thirdpart |
| + | |
| + | seafile-admin setup |
| + | </syntaxhighlight> |
| | | |
| === Installation === | | === Installation === |
Line 111: |
Line 176: |
| latter you will be able to do this: | | latter you will be able to do this: |
| yum --enablerepo=smecontribs install smeserver-seafile-server {{#var:smecontribname}} | | yum --enablerepo=smecontribs install smeserver-seafile-server {{#var:smecontribname}} |
− |
| |
− |
| |
| | | |
| === Uninstall === | | === Uninstall === |