ownCloud is WedDAV-based solution for storing and sharing on-line your data, files, images, video, music, calendars and contacts. You can have your ownCloud instance up and running in 5 minutes with Alpine!
Currently ownCloud is available only from edge/main repository (upcoming Alpine 2.5). So, make sure you have it in /etc/apk/repositories. We will install it together with PostgreSQL and lighttpd. SQLite and Apache are also supported (not tested though).
# apk add owncloud-pgsql lighttpd
The web server user needs to have ownership on the following dirs:
# chown -R lighttpd.lighttpd /etc/owncloud # chown -R lighttpd.lighttpd /usr/share/webapps/owncloud/apps # chown -R lighttpd.lighttpd /var/lib/owncloud/data
Make sure you have FastCGI enabled in /etc/lighttpd/lighttpd.conf:
Consider adding the following line for additional security to the owncloud configuration file, where the password database is stored:
url.access-deny = ("config.php")
Start the web server and PostgreSQL:
# /etc/init.d/lighttpd start # /etc/init.d/postgresql start
Create a Postgresql user and database for ownCloud:
# psql -U postgres postgres=# CREATE USER owncloud WITH PASSWORD '<%STRONG_PASSWORD%>'; postgres=# CREATE DATABASE owncloud; postgres=# GRANT ALL ON DATABASE owncloud TO owncloud; postgres=# \q
If you need any third party plugins, install the 3rdparty package:
# apk add owncloud-plugins
Some large apps, such as texteditor and videoviewer are in separate package too:
# apk add owncloud-texteditor owncloud-videoviewer
Finish Installation and Go!
Point your browser at http://<%MY_SERVER_IP%>/owncloud and follow the on-screen instructions to complete the installation, supplying the PostgreSQL user and password created before.
There are clients available for many platforms, Android included: